forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thors...@apache.org>
Subject Re: [views] xsl:comment in templates
Date Fri, 26 Aug 2005 19:57:13 GMT
On Thu, 2005-08-25 at 21:42 -0700, 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?

http://localhost:8888/prepare.include.xhtml.index

still contains them but the stylesheet is <alias:stylesheet/> and the
<xsl:comment>. That could be the cause.

You need to add a stylesheet  in <map:match
pattern="get.contract.*.xhtml"> that transforms  <xsl:comment> to
<alias:comment>

HTH

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Mime
View raw message