You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ne...@apache.org on 2007/07/24 18:55:20 UTC

svn commit: r559100 - /lenya/trunk/src/webapp/lenya/xslt/util/strip_namespaces.xsl

Author: nettings
Date: Tue Jul 24 09:55:19 2007
New Revision: 559100

URL: http://svn.apache.org/viewvc?view=rev&rev=559100
Log:
pass on xml comments (we used to eat those).
thanks to phillip green for the patch!

Modified:
    lenya/trunk/src/webapp/lenya/xslt/util/strip_namespaces.xsl

Modified: lenya/trunk/src/webapp/lenya/xslt/util/strip_namespaces.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/webapp/lenya/xslt/util/strip_namespaces.xsl?view=diff&rev=559100&r1=559099&r2=559100
==============================================================================
--- lenya/trunk/src/webapp/lenya/xslt/util/strip_namespaces.xsl (original)
+++ lenya/trunk/src/webapp/lenya/xslt/util/strip_namespaces.xsl Tue Jul 24 09:55:19 2007
@@ -36,6 +36,11 @@
     </xsl:element>
   </xsl:template>
 
+  <!-- fixme: this might be generalized to also pass on processing instructions etc...-->
+  <xsl:template match="comment()">
+    <xsl:copy/>
+  </xsl:template>
+                                          
   <!--
     Workaround to prevent the serializer from collapsing these
     elements, since browsers currently can not handle things like



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org