You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ed...@apache.org on 2005/04/13 09:56:28 UTC
svn commit: r161164 -
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/util/strip_namespaces.xsl
Author: edith
Date: Wed Apr 13 00:56:27 2005
New Revision: 161164
URL: http://svn.apache.org/viewcvs?view=rev&rev=161164
Log:
The comments shoul be copied too
Modified:
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/util/strip_namespaces.xsl
Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/util/strip_namespaces.xsl
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/util/strip_namespaces.xsl?view=diff&r1=161163&r2=161164
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/util/strip_namespaces.xsl (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/util/strip_namespaces.xsl Wed Apr 13 00:56:27 2005
@@ -15,21 +15,26 @@
limitations under the License.
-->
-<!-- $Id: strip_namespaces.xsl,v 1.1 2004/04/15 08:51:00 gregor Exp $ -->
+<!-- $Id$ -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
- <xsl:template match="*">
- <!-- remove element prefix (if any) -->
- <xsl:element name="{local-name()}">
- <!-- process attributes -->
- <xsl:for-each select="@*">
- <!-- remove attribute prefix (if any) -->
- <xsl:attribute name="{local-name()}">
- <xsl:value-of select="."/>
- </xsl:attribute>
- </xsl:for-each>
- <xsl:apply-templates/>
- </xsl:element>
+ <xsl:template match="*">
+ <!-- remove element prefix (if any) -->
+ <xsl:element name="{local-name()}">
+ <!-- process attributes -->
+ <xsl:for-each select="@*">
+ <!-- remove attribute prefix (if any) -->
+ <xsl:attribute name="{local-name()}">
+ <xsl:value-of select="."/>
+ </xsl:attribute>
+ </xsl:for-each>
+ <xsl:apply-templates/>
+ </xsl:element>
</xsl:template>
+
+ <xsl:template match="comment()">
+ <xsl:copy/>
+ </xsl:template>
+
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org