You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2004/09/26 11:51:56 UTC
svn commit: rev 47238 - incubator/lenya/trunk/src/webapp/lenya/xslt/util
Author: andreas
Date: Sun Sep 26 02:51:55 2004
New Revision: 47238
Modified:
incubator/lenya/trunk/src/webapp/lenya/xslt/util/strip_namespaces.xsl
Log:
don't remove namespace URIs
Modified: incubator/lenya/trunk/src/webapp/lenya/xslt/util/strip_namespaces.xsl
==============================================================================
--- incubator/lenya/trunk/src/webapp/lenya/xslt/util/strip_namespaces.xsl (original)
+++ incubator/lenya/trunk/src/webapp/lenya/xslt/util/strip_namespaces.xsl Sun Sep 26 02:51:55 2004
@@ -15,21 +15,17 @@
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()}" namespace="{namespace-uri()}">
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates/>
+ </xsl:element>
</xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
+
+</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org