Author: ruwan
Date: Wed Jul 28 16:56:36 2010
New Revision: 980123

URL: http://svn.apache.org/viewvc?rev=980123&view=rev
Log:
fixing the migration XSLT to take priority executors into account

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=980123&r1=980122&r2=980123&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
 Wed Jul 28 16:56:36 2010
@@ -42,26 +42,26 @@ This is the synapse migration xslt which
 
 </xsl:text>
             <xsl:for-each select="syn:* | synNew:* | comment()">
-                <xsl:if test="local-name()='sequence' or 
local-name()='localEntry' or local-name()='proxy' or local-name()='task' or 
local-name()='endpoint' or local-name()='eventSource' or 
local-name()='registry'">
+                <xsl:if test="local-name()='sequence' or 
local-name()='localEntry' or local-name()='proxy' or local-name()='task' or 
local-name()='endpoint' or local-name()='eventSource' or 
local-name()='priorityExecutor' or local-name()='registry'">
                     <xsl:apply-templates select="."/>
                     <xsl:text>
 
 </xsl:text>
                 </xsl:if>
-                <xsl:if test="self::comment() and 
(local-name(following-sibling::*[position()=1])='localEntry' or 
local-name(following-sibling::*[position()=1])='proxy' or 
local-name(following-sibling::*[position()=1])='task' or 
local-name(following-sibling::*[position()=1])='sequence' or 
local-name(following-sibling::*[position()=1])='endpoint' or 
local-name(following-sibling::*[position()=1])='eventSource' or 
local-name(following-sibling::*[position()=1])='registry')">
+                <xsl:if test="self::comment() and 
(local-name(following-sibling::*[position()=1])='localEntry' or 
local-name(following-sibling::*[position()=1])='proxy' or 
local-name(following-sibling::*[position()=1])='task' or 
local-name(following-sibling::*[position()=1])='sequence' or 
local-name(following-sibling::*[position()=1])='endpoint' or 
local-name(following-sibling::*[position()=1])='eventSource' or 
local-name(following-sibling::*[position()=1])='priorityExecutor' or 
local-name(following-sibling::*[position()=1])='registry')">
                     <xsl:copy-of select="self::comment()" 
xml:space="preserve"/>
                     <xsl:text>
 </xsl:text>
                 </xsl:if>
             </xsl:for-each>
-            <xsl:if test="not(syn:sequen...@name='main'] or 
synNew:sequen...@name='main']) and (count(syn:*[local-name()!='sequence' and 
local-name()!='localEntry' and local-name()!='proxy' and local-name()!='task' 
and local-name()!='endpoint' and local-name()!='eventSource' and 
local-name()!='registry']) + count(synNew:*[local-name()!='sequence' and 
local-name()!='localEntry' and local-name()!='proxy' and local-name()!='task' 
and local-name()!='endpoint' and local-name()!='eventSource' and 
local-name()!='registry']))!=0">
+            <xsl:if test="not(syn:sequen...@name='main'] or 
synNew:sequen...@name='main']) and (count(syn:*[local-name()!='sequence' and 
local-name()!='localEntry' and local-name()!='proxy' and local-name()!='task' 
and local-name()!='endpoint' and local-name()!='eventSource' and 
local-name()!='registry']) + count(synNew:*[local-name()!='sequence' and 
local-name()!='localEntry' and local-name()!='proxy' and local-name()!='task' 
and local-name()!='endpoint' and local-name()!='eventSource' and 
local-name()!='priorityExecutor' and local-name()!='registry']))!=0">
                 <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:* | comment()">
-                        <xsl:if test="local-name()!='sequence' and 
local-name()!='localEntry' and local-name()!='proxy' and local-name()!='task' 
and local-name()!='endpoint' and local-name()!='eventSource' and 
local-name()!='registry'">
+                        <xsl:if test="local-name()!='sequence' and 
local-name()!='localEntry' and local-name()!='proxy' and local-name()!='task' 
and local-name()!='endpoint' and local-name()!='eventSource' and 
local-name()!='priorityExecutor' and local-name()!='registry'">
                             <xsl:choose>
                                 <xsl:when test="self::comment()">
-                                    <xsl:if 
test="local-name(following-sibling::*[position()=1])!='localEntry' and 
local-name(following-sibling::*[position()=1])!='sequence' and 
local-name(following-sibling::*[position()=1])!='proxy' and 
local-name(following-sibling::*[position()=1])!='task' and 
local-name(following-sibling::*[position()=1])!='endpoint' and 
local-name(following-sibling::*[position()=1])!='eventSource' and 
local-name(following-sibling::*[position()=1])!='registry'">
+                                    <xsl:if 
test="local-name(following-sibling::*[position()=1])!='localEntry' and 
local-name(following-sibling::*[position()=1])!='sequence' and 
local-name(following-sibling::*[position()=1])!='proxy' and 
local-name(following-sibling::*[position()=1])!='task' and 
local-name(following-sibling::*[position()=1])!='endpoint' and 
local-name(following-sibling::*[position()=1])!='eventSource' and 
local-name(following-sibling::*[position()=1])!='priorityExecutor' and 
local-name(following-sibling::*[position()=1])!='registry'">
                                         <xsl:copy-of select="self::comment()" 
xml:space="preserve"/>
                                     </xsl:if>
                                 </xsl:when>


Reply via email to