[jboss-svn-commits] JBL Code SVN: r31021 - labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/xsl.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Jan 11 12:59:39 EST 2010
Author: whitingjr
Date: 2010-01-11 12:59:39 -0500 (Mon, 11 Jan 2010)
New Revision: 31021
Added:
labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/xsl/convert-xml-to-csv.xsl
Log:
Added stylesheet to convert the results to a CSV file.
Added: labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/xsl/convert-xml-to-csv.xsl
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/xsl/convert-xml-to-csv.xsl (rev 0)
+++ labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/xsl/convert-xml-to-csv.xsl 2010-01-11 17:59:39 UTC (rev 31021)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output omit-xml-declaration="yes" method="text" encoding="UTF-8" />
+
+ <xsl:template match="/">
+ <xsl:text>category,gross,net,gross-average,net-average</xsl:text>
+ <xsl:for-each select="/analysis/summary-analysis/*/frame/methodDuration">
+ <xsl:text>
+ </xsl:text>
+ <xsl:text><xsl:value-of select="name(../..)"/> </xsl:text>
+ <xsl:text>,</xsl:text>
+ <xsl:text><xsl:value-of select="./gross"/></xsl:text>
+ <xsl:text>,</xsl:text>
+ <xsl:text><xsl:value-of select="net"/></xsl:text>
+ <xsl:text>,</xsl:text>
+ <xsl:text><xsl:value-of select="gross-average"/></xsl:text>
+ <xsl:text>,</xsl:text>
+ <xsl:text><xsl:value-of select="net-average"/></xsl:text>
+ </xsl:for-each>
+ </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file
More information about the jboss-svn-commits
mailing list