commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gu...@apache.org
Subject svn commit: r952906 - /commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.modeling.diagram/xslt/export.xsl
Date Wed, 09 Jun 2010 05:38:04 GMT
Author: guixl
Date: Wed Jun  9 05:38:04 2010
New Revision: 952906

URL: http://svn.apache.org/viewvc?rev=952906&view=rev
Log:
modify SCXML data model export XSLT file

Modified:
    commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.modeling.diagram/xslt/export.xsl

Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.modeling.diagram/xslt/export.xsl
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.modeling.diagram/xslt/export.xsl?rev=952906&r1=952905&r2=952906&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.modeling.diagram/xslt/export.xsl
(original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.modeling.diagram/xslt/export.xsl
Wed Jun  9 05:38:04 2010
@@ -11,6 +11,29 @@
 <xsl:template match="stateList">
 	<xsl:element name="state">
 		<xsl:attribute name="id"><xsl:value-of  select="@id"/></xsl:attribute>
+		<xsl:apply-templates/>
+	</xsl:element>
+</xsl:template>
+
+<xsl:template match="onEntry">
+	<xsl:element name="onEntry">
+	</xsl:element>
+</xsl:template>
+
+<xsl:template match="onExit">
+	<xsl:element name="onExit">
+	</xsl:element>
+</xsl:template>
+
+<xsl:template match="targetConnection">
+	<xsl:element name="transition">
+		<xsl:if test="@event">
+		<xsl:attribute name="event"><xsl:value-of  select="@event"/></xsl:attribute>
+		</xsl:if>
+		<xsl:if test="@cond">
+		<xsl:attribute name="cond"><xsl:value-of  select="@cond"/></xsl:attribute>
+		</xsl:if>
+		<xsl:attribute name="target"><xsl:value-of  select="@target"/></xsl:attribute>
 	</xsl:element>
 </xsl:template>
 



Mime
View raw message