Author: guixl
Date: Sun Jun 20 09:06:28 2010
New Revision: 956334
URL: http://svn.apache.org/viewvc?rev=956334&view=rev
Log:
Finish SCXML data model export function, but we still need test case to
validate data model define and document export function
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=956334&r1=956333&r2=956334&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
Sun Jun 20 09:06:28 2010
@@ -82,6 +82,12 @@
</xsl:element>
</xsl:template>
+<xsl:template match="donedata">
+ <xsl:element name="donedata">
+ <xsl:apply-templates/>
+ </xsl:element>
+</xsl:template>
+
<xsl:template match="subParallel">
<xsl:element name="parallel">
<xsl:if test="@id">
@@ -128,11 +134,66 @@
<xsl:attribute name="expr"><xsl:value-of
select="@expr"/></xsl:attribute>
</xsl:element>
</xsl:when>
+ <xsl:when test="@xsi_type='org.apache.commons.scxml_ExtenExecContent'">
+
+ </xsl:when>
+ <xsl:when test="@xsi_type='org.apache.commons.scxml_Validate'">
+ <xsl:element name="validate">
+ <xsl:attribute name="location"><xsl:value-of
select="@location"/></xsl:attribute>
+ <xsl:attribute name="schema"><xsl:value-of
select="@schema"/></xsl:attribute>
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="@xsi_type='org.apache.commons.scxml_Cancel'">
+ <xsl:element name="cancel">
+ <xsl:attribute name="sendid"><xsl:value-of
select="@sendid"/></xsl:attribute>
+ <xsl:attribute name="sendidexpr"><xsl:value-of
select="@sendidexpr"/></xsl:attribute>
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="@xsi_type='org.apache.commons.scxml_Send'">
+ <xsl:element name="send">
+ <xsl:attribute name="event"><xsl:value-of
select="@event"/></xsl:attribute>
+ <xsl:attribute name="eventexpr"><xsl:value-of
select="@eventexpr"/></xsl:attribute>
+ <xsl:attribute name="target"><xsl:value-of
select="@target"/></xsl:attribute>
+ <xsl:attribute name="targetexpr"><xsl:value-of
select="@targetexpr"/></xsl:attribute>
+ <xsl:attribute name="type"><xsl:value-of
select="@type"/></xsl:attribute>
+ <xsl:attribute name="typeexpr"><xsl:value-of
select="@typeexpr"/></xsl:attribute>
+ <xsl:attribute name="id"><xsl:value-of
select="@id"/></xsl:attribute>
+ <xsl:attribute name="idlocation"><xsl:value-of
select="@idlocation"/></xsl:attribute>
+ <xsl:attribute name="delay"><xsl:value-of
select="@delay"/></xsl:attribute>
+ <xsl:attribute name="delayexpr"><xsl:value-of
select="@delayexpr"/></xsl:attribute>
+ <xsl:attribute name="namelist"><xsl:value-of
select="@namelist"/></xsl:attribute>
+ <xsl:attribute name="hints"><xsl:value-of
select="@hints"/></xsl:attribute>
+ <xsl:attribute name="hintsexpr"><xsl:value-of
select="@hintsexpr"/></xsl:attribute>
+ </xsl:element>
+ </xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
+<xsl:template match="elseif">
+ <xsl:element name="elseif">
+ <xsl:attribute name="cond"><xsl:value-of
select="@cond"/></xsl:attribute>
+ </xsl:element>
+</xsl:template>
+
+<xsl:template match="else">
+ <xsl:element name="else">
+ </xsl:element>
+</xsl:template>
+
+<xsl:template match="param">
+ <xsl:element name="param">
+ <xsl:attribute name="name"><xsl:value-of
select="@name"/></xsl:attribute>
+ <xsl:attribute name="expr"><xsl:value-of
select="@expr"/></xsl:attribute>
+ </xsl:element>
+</xsl:template>
+
+<xsl:template match="finalize">
+ <xsl:element name="finalize">
+ </xsl:element>
+</xsl:template>
+
<xsl:template match="dataModel">
<xsl:element name="datamodel">
<xsl:if test="@schema">