xsl-list
[Top] [All Lists]

RE: disable-output-escaping in xsl:attribute

2004-10-22 01:09:13
Hi,

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?

You can't, because DOE doesn't work for attribute nodes, only for text nodes. 
There are extensions in some processors that allow you to use DOE with 
xsl:attribute, refer to Sablotron documentation.

Cheers,

Jarno - Hocico: Spirits of crime (bestializtik mix by Dulce Liquido)


<Prev in Thread] Current Thread [Next in Thread>