[jboss-svn-commits] JBL Code SVN: r36945 - 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
Mon Apr 18 12:23:00 EDT 2011


Author: whitingjr
Date: 2011-04-18 12:22:59 -0400 (Mon, 18 Apr 2011)
New Revision: 36945

Added:
   labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/src/main/resources/xsl/interaction-result-sorter.xsl
Log:
Added sorting stylesheet.

Added: labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/src/main/resources/xsl/interaction-result-sorter.xsl
===================================================================
--- labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/src/main/resources/xsl/interaction-result-sorter.xsl	                        (rev 0)
+++ labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/src/main/resources/xsl/interaction-result-sorter.xsl	2011-04-18 16:22:59 UTC (rev 36945)
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+Copyright 2011 Red Hat, Inc.
+ Red Hat licenses this file to you under the Apache License, version
+ 2.0 (the "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+   http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied.  See the License for the specific language governing
+ permissions and limitations under the License.
+  -->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+   <xsl:output indent="true" encoding="UTF-8"/>
+<!--    -->
+<!--    <xsl:template match="/">-->
+<!--      <xsl:apply-templates select="/*"/>-->
+<!--   </xsl:template>-->
+<!---->
+<!--   <xsl:template match="@*">-->
+<!--      <xsl:copy/>-->
+<!--   </xsl:template>-->
+<!--   -->
+<!--   <xsl:template match="summary|topology">-->
+<!--      <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="interaction">-->
+<!--      <xsl:element name="{name()}">-->
+<!--         <xsl:copy-of select="@*"/>-->
+<!--         <xsl:for-each select="step">-->
+<!--            <xsl:sort order="descending" select="messagesIn/deliveryTime/@avg"/>-->
+<!--            <xsl:copy-of select="."/>-->
+<!--         </xsl:for-each>-->
+<!--      </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:template match="/">
+      <xsl:element name="steps">
+	      <xsl:for-each select="/*/*/step">
+	         <xsl:sort order="descending" select="messagesIn/deliveryTime/@avg"/>
+	         <xsl:copy-of select="."/>
+	      </xsl:for-each>
+      </xsl:element>
+   </xsl:template>
+
+</xsl:stylesheet>
+
+
+
+  
\ No newline at end of file



More information about the jboss-svn-commits mailing list