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

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

Author: jbeard
Date: Sat Jun 12 19:35:41 2010
New Revision: 954064

URL: http://svn.apache.org/viewvc?rev=954064&view=rev
Log:
XSLT State implementation works now.

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

Modified: commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/AbstractStatechartGenerator.xsl
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/AbstractStatechartGenerator.xsl?rev=954064&r1=954063&r2=954064&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/AbstractStatechartGenerator.xsl (original)
+++ commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/AbstractStatechartGenerator.xsl Sat Jun 12 19:35:41 2010
@@ -131,7 +131,7 @@
 			</choose>
 		</variable>
 
-		<variable name="historyState" select="$state/history"/>
+		<variable name="historyState" select="$state/s:history"/>
 		
 		<variable name="constructorFunctionName" select="concat($stateName,'Constructor')"/>
 
@@ -181,7 +181,7 @@
 						console.log("exiting <value-of select="$stateName"/>" );
 					</if>
 
-					<if test="historyState">
+					<if test="$historyState">
 						this.historyState.lastConfiguration = currentConfiguration.slice();
 					</if>
 
@@ -479,7 +479,7 @@
 
 			var historyState = <value-of select="$historyStateReference"/>;
 
-			<if test="isDeep">
+			<if test="not($isDeep)">
 				var newConfiguration = [];
 			</if>
 
@@ -603,7 +603,7 @@
 
 
 		//set whether preempted
-		<if test="$t/@isPreempted">
+		<if test="$t/@c:isPreempted">
 			isPreempted = true;
 		</if>
 	</template>