Diwaker Gupta wrote:
> I'm writing a template which contains a <script> tag. Often <script> tags are 
> enclosed within regular HTML comments (<!-- and -->) to deal with browser 
> incompatibilities and so on. I'm trying to achieve this using xsl:comments in 
> my templates. However, it seems xsl:comments are completely ignored while 
> processing templates. I'm trying this:
> 
> <xsl:template name="custom-headers-head">
>  <meta name="author" content="Diwaker Gupta"/>
>         <xsl:comment>this never shows up</xsl:comment>
> </xsl:template>
> 
> The <meta> stuff comes out fine, but the xsl:comment is never rendered in the 
> HTML output. Any clues?

That is one of our serious bugs in the forrest_07 release.
All comments were not coming all the way through to output.
This seemed to happen suddenly in the months leading up to
the release.

http://issues.apache.org/jira/browse/FOR-555
"xml comments are no longer generated or are stripped"

-David

Reply via email to