Permalink
Browse files

Migrated out final element, transition is now imported. Only root ele…

…ment process definition and start|end states left in main xsl. Closes gh-18.
  • Loading branch information...
1 parent 1c9465d commit b9536d947d2f07de2553f006d53898fbb4d681f6 @eschabell eschabell committed Feb 14, 2011
Showing with 23 additions and 15 deletions.
  1. +1 −15 src/main/resources/jpdl3-bpmn2.xsl
  2. +22 −0 src/main/resources/transition-bpmn.xsl
@@ -11,6 +11,7 @@
<xsl:import href="state-bpmn.xsl"/>
<xsl:import href="decision-bpmn.xsl"/>
<xsl:import href="forkjoin-bpmn.xsl"/>
+ <xsl:import href="transition-bpmn.xsl"/>
<xsl:output method="xml" />
@@ -66,21 +67,6 @@
</endEvent>
</xsl:template>
- <xsl:template match="jpdl:transition">
- <sequenceFlow>
- <xsl:attribute name="id">
- <xsl:text>flow_</xsl:text>
- <xsl:value-of select="../@name" />
- </xsl:attribute>
- <xsl:attribute name="sourceRef">
- <xsl:value-of select="../@name" />
- </xsl:attribute>
- <xsl:attribute name="targetRef">
- <xsl:value-of select="@to" />
- </xsl:attribute>
- </sequenceFlow>
- </xsl:template>
-
<!-- Strip the white space from the result. -->
<xsl:template match="text()">
<xsl:value-of select="normalize-space()" />
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:jpdl="urn:jbpm.org:jpdl-3.2"
+ xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL">
+
+ <xsl:template match="jpdl:transition">
+ <sequenceFlow>
+ <xsl:attribute name="id">
+ <xsl:text>flow_</xsl:text>
+ <xsl:value-of select="../@name" />
+ </xsl:attribute>
+ <xsl:attribute name="sourceRef">
+ <xsl:value-of select="../@name" />
+ </xsl:attribute>
+ <xsl:attribute name="targetRef">
+ <xsl:value-of select="@to" />
+ </xsl:attribute>
+ </sequenceFlow>
+ </xsl:template>
+
+</xsl:stylesheet>

0 comments on commit b9536d9

Please sign in to comment.