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:37:44 UTC

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

Author: jbeard
Date: Sat Jun 12 19:37:44 2010
New Revision: 954081

URL: http://svn.apache.org/viewvc?rev=954081&view=rev
Log:
Fixed small bug.

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

Modified: commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/computeLCA.xsl
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/computeLCA.xsl?rev=954081&r1=954080&r2=954081&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/computeLCA.xsl (original)
+++ commons/sandbox/gsoc/2010/scxml-js/trunk/test/xslt/computeLCA.xsl Sat Jun 12 19:37:44 2010
@@ -68,11 +68,12 @@
 
 		<xsl:variable name="parent" select="$current/parent::*"/>
 
-		<c:state>
-			<xsl:value-of select="$parent/@id"/>
-		</c:state>
-
 		<xsl:if test="not($current=$end)">
+
+			<c:state>
+				<xsl:value-of select="$parent/@id"/>
+			</c:state>
+
 			<xsl:call-template name="genStateTree">
 				<xsl:with-param name="current" select="$parent"/>
 				<xsl:with-param name="end" select="$end"/>