Re: xsl:comment problem
Peter Van der Beken <[email protected]> Fri, 09 Mar 2007 10:09:24 +0100
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Message-ID | <[email protected]> |
Thomas Comiotto wrote:
> <style type="text/css">
> <xsl:comment>
> @import url("<xsl:value-of select="$aVariable"/>/foo/bar.css");
> </xsl:comment>
> </style>
>
>
> does output:
>
> <style type="text/css">
> <!--
> @import url("/foo/bar.css");
> -->
> </style>
Without seeing aVariable it's impossible to know if this is a bug.
> <xsl:comment>
> <foo>bar</foo>
> </xsl:comment>
>
> <!--
> bar
> -->
http://www.w3.org/TR/xslt#section-Creating-Comments:
"It is an error if instantiating the content of xsl:comment creates
nodes other than text nodes. An XSLT processor may signal the error; if
it does not signal the error, it must recover by ignoring the offending
nodes together with their content."
Peter