Author: ruwan
Date: Mon Jul 12 05:15:52 2010
New Revision: 963190

URL: http://svn.apache.org/viewvc?rev=963190&view=rev
Log:
Adding the ability to change the namespace to the migration XSLT

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=963190&r1=963189&r2=963190&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 05:15:52 2010
@@ -21,7 +21,15 @@
 <!--
 This is the synapse migration xslt which will migrate the configuration from 
the 1.x version to the 2.x compatible version 
 -->
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
+                xmlns:syn="http://ws.apache.org/ns/synapse";>
+
+  <xsl:template match="syn:*">
+      <xsl:element name="{name()}" 
namespace="http://synapse.apache.org/ns/2010/04/configuration";>
+          <xsl:copy-of select="@*"/>
+          <xsl:apply-templates/>
+      </xsl:element>
+  </xsl:template>
 
   <xsl:template match="/ | @* | node() | text() | processing-instruction()">
          <xsl:copy>


Reply via email to