commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbe...@apache.org
Subject svn commit: r954071 - /commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/triggers.xsl
Date Sat, 12 Jun 2010 19:36:32 GMT
Author: jbeard
Date: Sat Jun 12 19:36:32 2010
New Revision: 954071

URL: http://svn.apache.org/viewvc?rev=954071&view=rev
Log:
Slight refinement to the previous commit.

Modified:
    commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/triggers.xsl

Modified: commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/triggers.xsl
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/triggers.xsl?rev=954071&r1=954070&r2=954071&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/triggers.xsl (original)
+++ commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/triggers.xsl Sat Jun 12 19:36:32 2010
@@ -13,11 +13,10 @@
 		 generated id is equal to the generated id of the
 		 first of the key members with the same surname-->
 
-		<xsl:for-each
-			select="//s:transition[generate-id(.)=
-			generate-id(key('events',@event)[1])]">
+		<xsl:variable name="uniqueEvents" select="//s:transition[generate-id(.)=generate-id(key('events',@event)[1])]/@event"/>
 
-			<xsl:value-of select="@event"/>     <!--show the grouping-->
+		<xsl:for-each select="$uniqueEvents">
+			<xsl:value-of select="."/>     <!--show the grouping-->
 			<xsl:text>&#10;</xsl:text>
 		</xsl:for-each>
 	</xsl:template>



Mime
View raw message