[jboss-svn-commits] JBL Code SVN: r36936 - labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/src/main/resources/xsl.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Apr 14 10:35:56 EDT 2011
Author: whitingjr
Date: 2011-04-14 10:35:56 -0400 (Thu, 14 Apr 2011)
New Revision: 36936
Modified:
labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/src/main/resources/xsl/failed-run-problem-iteration-sorter.xsl
Log:
Added target to sort detailed results files.
Modified: labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/src/main/resources/xsl/failed-run-problem-iteration-sorter.xsl
===================================================================
--- labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/src/main/resources/xsl/failed-run-problem-iteration-sorter.xsl 2011-04-14 14:35:08 UTC (rev 36935)
+++ labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/src/main/resources/xsl/failed-run-problem-iteration-sorter.xsl 2011-04-14 14:35:56 UTC (rev 36936)
@@ -1,24 +1,49 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output cdata-section-elements="environment" indent="true" encoding="UTF-8"/>
<xsl:template match="/">
- <xsl:apply-templates />
+ <xsl:apply-templates select="/*"/>
</xsl:template>
- <xsl:template match="summary">
- <xsl:copy>
- <xsl:apply-templates />
- </xsl:copy>
+ <xsl:template match="@*">
+ <xsl:copy/>
</xsl:template>
- <xsl:template match="interaction">
- <xsl:copy>
- <xsl:for-each select="step">
- <xsl:sort select="messagesIn/deliveryTime/@avg" order="descending"/>
- <xsl:copy/>
+ <xsl:template match="benchmark|satellite|environment|process">
+ <xsl:element name="{name()}">
+ <xsl:copy-of select="@*"/>
+ <xsl:value-of select="child::text()"/>
+ <xsl:apply-templates select="./*"/>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="agent">
+ <xsl:element name="{name()}">
+ <xsl:copy-of select="@*"/>
+ <xsl:for-each select="eventhandler">
+ <xsl:sort order="descending" select="messagesIn/deliveryTime/@avg"/>
+ <xsl:copy-of select="."/>
</xsl:for-each>
- </xsl:copy>
+ </xsl:element>
</xsl:template>
+
+
+ <xsl:template match="*">
+ <xsl:choose>
+ <xsl:when test="text()">
+ <xsl:value-of select="."/>
+ <xsl:apply-templates select="./*"/>
+ </xsl:when>
+ <xsl:when test="comment()">
+ <xsl:copy />
+ </xsl:when>
+ <xsl:otherwise>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
</xsl:stylesheet>
+
More information about the jboss-svn-commits
mailing list