Re: [xslt] bug or feature



Le 03/09/01 18:34:40, Daniel Veillard a écrit :
> > 			<xsl:attribute name="xxx">
> > 				<xsl:value-of select="@test" disable-output-escaping="yes"
> />
> 
>   That it's a bug: disable-output-escaping is not handled for attribute
> values, can you register it on bugzilla.gnome.org (module libxslt) so
> I don't forget it ?

No.
The spec states that "it is an error for output escaping to be disabled for
a text node that is used for something else than a text node in the result
tree. Thus, it is an error to disable output escaping for an xsl:value-of
or xsl:text element that is used to generate the string-value of a comment,
processing instruction or an attribute node; [...] an XSLT processor may
signal the error; if it does not signal the error, it must recover by
ignoring the disable-output-escaping attribute."

The bug is somewhere else:
> >         <bar xxx="b&amp;#38;b"/>

It should be "b&amp;b" or "b&#38;b" if the input is "b&amp;b" or "b&#38;b"
(the actual value is "b&b", that must be escaped)

Tom.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]