You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by cr...@apache.org on 2005/09/06 09:03:09 UTC
svn commit: r278932 -
/forrest/branches/forrest_07_branch/main/webapp/skins/common/xslt/html/strip_namespaces.xsl
Author: crossley
Date: Tue Sep 6 00:03:04 2005
New Revision: 278932
URL: http://svn.apache.org/viewcvs?rev=278932&view=rev
Log:
Fixes FOR-555
Copying Diwaker's patch from trunk
Modified:
forrest/branches/forrest_07_branch/main/webapp/skins/common/xslt/html/strip_namespaces.xsl
Modified: forrest/branches/forrest_07_branch/main/webapp/skins/common/xslt/html/strip_namespaces.xsl
URL: http://svn.apache.org/viewcvs/forrest/branches/forrest_07_branch/main/webapp/skins/common/xslt/html/strip_namespaces.xsl?rev=278932&r1=278931&r2=278932&view=diff
==============================================================================
--- forrest/branches/forrest_07_branch/main/webapp/skins/common/xslt/html/strip_namespaces.xsl (original)
+++ forrest/branches/forrest_07_branch/main/webapp/skins/common/xslt/html/strip_namespaces.xsl Tue Sep 6 00:03:04 2005
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright 1999-2004 The Apache Software Foundation or its licensors,
+ Copyright 1999-2005 The Apache Software Foundation or its licensors,
as applicable.
Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +16,12 @@
limitations under the License.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <!-- Fixes FOR-555. This might not be the best solution though, but it sure works -->
+ <xsl:template match="comment()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|*|text()|processing-instruction()|comment()"/>
+ </xsl:copy>
+ </xsl:template>
<xsl:template match="*">
<!-- remove element prefix (if any) -->
<xsl:element name="{local-name()}">