Author: ruwan
Date: Wed Jul 14 08:06:44 2010
New Revision: 963963

URL: http://svn.apache.org/viewvc?rev=963963&view=rev
Log:
fixing the extra comment spaces

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=963963&r1=963962&r2=963963&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 14 08:06:44 2010
@@ -74,10 +74,15 @@ This is the synapse migration xslt which
         </xsl:copy>
     </xsl:template>
 
-    <xsl:template match="comment()" xml:space="preserve">
-        <xsl:copy>
-            <xsl:apply-templates select="@* | node()" />
-        </xsl:copy>
+    <xsl:template match="comment()">
+        <xsl:choose>
+            <xsl:when 
test="local-name(following-sibling::*[position()=1])='definitions'" 
xml:space="preserve">
+                <xsl:copy-of select="." xml:space="preserve"/>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:copy/>
+            </xsl:otherwise>
+        </xsl:choose>
     </xsl:template>
 
     <xsl:template name="convertNS">


Reply via email to