Re: [xsl] disable-output-escaping in xsl:attribute

Subject: Re: [xsl] disable-output-escaping in xsl:attribute
From: Julian Reschke <julian.reschke@xxxxxx>
Date: Fri, 22 Oct 2004 10:20:01 +0200
Stefan Borchert wrote:
Ji!
I've got the following source:
<xsl:element name="span">
 <xsl:attribute name="title">
  <xsl:text disable-output-escaping="yes">G&auml;ste</xsl:text>
 </xsl:attribute>
 <xsl:text disable-output-escaping="yes">G&auml;ste</xsl:text>
</xsl:element>

Then I process it via PHP (and Sablotron 1.0) and it produces: '<span title="G&amp;auml;ste">G&auml;ste</span>' instead of the expected '<span title="G&auml;ste">G&auml;ste</span>'.

How can I fix this?

thanks,

Stefan

Remove the disable-output-escaping directive on the attribute; it's meaningless and the processor seems to do something wrong here.


Julian

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

Current Thread