Author: ferdinand
Date: Sun May 6 03:24:22 2007
New Revision: 535593
URL: http://svn.apache.org/viewvc?view=rev&rev=535593
Log:
Attempt to fix disappearance of processing-instructions.
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/viewvc/forrest/branches/forrest_07_branch/main/webapp/skins/common/xslt/html/strip_namespaces.xsl?view=diff&rev=535593&r1=535592&r2=535593
==============================================================================
---
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
Sun May 6 03:24:22 2007
@@ -20,9 +20,14 @@
<!-- 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:apply-templates select="@*|*|text()|comment()"/>
</xsl:copy>
</xsl:template>
+
+ <!-- If processed by rule below processing instructions disappaer -->
+ <xsl:template match="processing-instruction()">
+ <xsl:copy-of select="."/>
+ </xsl:template>
<xsl:template match="*">
<!-- remove element prefix (if any) -->