1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/benchmarks/sieve/src/main/select-time.xsl Sun Jan 24 12:08:45 2016 +0100
1.3 @@ -0,0 +1,54 @@
1.4 +<?xml version="1.0" encoding="UTF-8"?>
1.5 +<!--
1.6 +
1.7 + Back 2 Browser Bytecode Translator
1.8 + Copyright (C) 2012-2015 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
1.9 +
1.10 + This program is free software: you can redistribute it and/or modify
1.11 + it under the terms of the GNU General Public License as published by
1.12 + the Free Software Foundation, version 2 of the License.
1.13 +
1.14 + This program is distributed in the hope that it will be useful,
1.15 + but WITHOUT ANY WARRANTY; without even the implied warranty of
1.16 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.17 + GNU General Public License for more details.
1.18 +
1.19 + You should have received a copy of the GNU General Public License
1.20 + along with this program. Look for COPYING file in the top folder.
1.21 + If not, see http://opensource.org/licenses/GPL-2.0.
1.22 +
1.23 +-->
1.24 +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
1.25 + <xsl:output method="text"/>
1.26 +
1.27 + <xsl:template match="/">
1.28 + <xsl:apply-templates mode="header" select="testsuite/testcase"/><xsl:text>End
1.29 +</xsl:text>
1.30 + <xsl:apply-templates mode="value" select="testsuite/testcase"/><xsl:text>NaN
1.31 +</xsl:text>
1.32 + </xsl:template>
1.33 +
1.34 +
1.35 + <xsl:template match="testcase" mode="header">
1.36 + <xsl:if test="contains(@name,'tenThousand')">
1.37 + <xsl:if test="not(contains(@name, '[Java]'))">
1.38 + <xsl:if test="not(contains(@name, '[Compare'))">
1.39 + <xsl:value-of select="@name"/>
1.40 + <xsl:text>,</xsl:text>
1.41 + </xsl:if>
1.42 + </xsl:if>
1.43 + </xsl:if>
1.44 + </xsl:template>
1.45 +
1.46 + <xsl:template match="testcase" mode="value">
1.47 + <xsl:if test="contains(@name,'tenThousand')">
1.48 + <xsl:if test="not(contains(@name, '[Java]'))">
1.49 + <xsl:if test="not(contains(@name, '[Compare'))">
1.50 + <xsl:value-of select="@time"/>
1.51 + <xsl:text>,</xsl:text>
1.52 + </xsl:if>
1.53 + </xsl:if>
1.54 + </xsl:if>
1.55 + </xsl:template>
1.56 +
1.57 +</xsl:stylesheet>