You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by jb...@apache.org on 2010/06/12 21:36:32 UTC

svn commit: r954071 - /commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/triggers.xsl

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>