You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ru...@apache.org on 2010/07/12 18:47:24 UTC
svn commit: r963344 -
/synapse/trunk/java/modules/migrator/src/main/resources/synapse-configuration-migrator.xslt
Author: ruwan
Date: Mon Jul 12 16:47:24 2010
New Revision: 963344
URL: http://svn.apache.org/viewvc?rev=963344&view=rev
Log:
migration xslt - if the main sequence exists do not create a main sequence
Modified:
synapse/trunk/java/modules/migrator/src/main/resources/synapse-configuration-migrator.xslt
Modified: synapse/trunk/java/modules/migrator/src/main/resources/synapse-configuration-migrator.xslt
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/migrator/src/main/resources/synapse-configuration-migrator.xslt?rev=963344&r1=963343&r2=963344&view=diff
==============================================================================
--- synapse/trunk/java/modules/migrator/src/main/resources/synapse-configuration-migrator.xslt (original)
+++ synapse/trunk/java/modules/migrator/src/main/resources/synapse-configuration-migrator.xslt Mon Jul 12 16:47:24 2010
@@ -38,14 +38,16 @@ This is the synapse migration xslt which
<xsl:template match="syn:definitions | synNew:definitions" priority="1">
<xsl:element name="definitions" namespace="http://synapse.apache.org/ns/2010/04/configuration">
- <xsl:element name="sequence" namespace="http://synapse.apache.org/ns/2010/04/configuration">
- <xsl:attribute name="name">main</xsl:attribute>
- <xsl:for-each select="syn:* | synNew:*">
- <xsl:if test="local-name()!='sequence' and local-name()!='localEntry' and local-name()!='proxy' and local-name()!='task' and local-name()!='endpoint'">
- <xsl:call-template name="convertNS"/>
- </xsl:if>
- </xsl:for-each>
- </xsl:element>
+ <xsl:if test="not(syn:sequence[@name='main'] or synNew:sequence[@name='main'])">
+ <xsl:element name="sequence" namespace="http://synapse.apache.org/ns/2010/04/configuration">
+ <xsl:attribute name="name">main</xsl:attribute>
+ <xsl:for-each select="syn:* | synNew:*">
+ <xsl:if test="local-name()!='sequence' and local-name()!='localEntry' and local-name()!='proxy' and local-name()!='task' and local-name()!='endpoint'">
+ <xsl:call-template name="convertNS"/>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:element>
+ </xsl:if>
<xsl:for-each select="syn:* | synNew:*">
<xsl:if test="local-name()='sequence' or local-name()='localEntry' or local-name()='proxy' or local-name()='task' or local-name()='endpoint'">
<xsl:apply-templates select="."/>