forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@apache.org>
Subject Re: svn commit: r535593 - /forrest/branches/forrest_07_branch/main/webapp/skins/common/xslt/html/strip_namespaces.xsl
Date Mon, 07 May 2007 05:36:06 GMT
Did you see Cyriaque's change to this file in trunk some time ago.
At r463293 he was adding support for PHP which i presume needs to
get processing instructions from source through to output.
It might address your issue. I gather that the same template
in 0.7 was not dealing with processing instructions.
http://article.gmane.org/gmane.text.xml.forrest.cvs/7502

This seems like a strange place to be handling processing
instructions and xml comments. The FOR-555 indicate that
there is a wider issue.

-David

> 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) -->
> 
> 

Mime
View raw message