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:41:32 UTC

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

Author: jbeard
Date: Sat Jun 12 19:41:32 2010
New Revision: 954112

URL: http://svn.apache.org/viewvc?rev=954112&view=rev
Log:
Fixed bug where only supposed to label basic states.

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

Modified: commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/numberStatesAndTransitions.xsl
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/numberStatesAndTransitions.xsl?rev=954112&r1=954111&r2=954112&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/numberStatesAndTransitions.xsl (original)
+++ commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/numberStatesAndTransitions.xsl Sat Jun 12 19:41:32 2010
@@ -15,7 +15,7 @@
 		</xsl:copy>
 	</xsl:template>
 
-	<xsl:template match="s:state | s:parallel | s:final | s:initial | s:history">
+	<xsl:template match="s:state[@c:isBasic] | s:final | s:initial | s:history">
 
 		<!-- what we want to ask is, what is his position in the nodeset that we've constructed? 
 			but we can't use position normally... can only be used wrt to the context node
@@ -25,7 +25,8 @@
 		-->
 	
 		<xsl:variable name="stateNum">
-			<xsl:number level="any" count="s:state | s:parallel | s:final | s:initial | s:history"/>
+			<xsl:number level="any" 
+				count="s:state[@c:isBasic] | s:final | s:initial | s:history"/>
 		</xsl:variable>
 
 		<!--