[xsl] &

Subject: [xsl] &
From: Marco <spinmar@xxxxxxxxx>
Date: Wed, 21 Mar 2007 12:15:07 +0100
Hi,
I'm having a problem with this sequence of chars.
I'm using libxslt as xslt engine processor.
I have a xml document with:

......
<NODE n="1" url="url1" visible_url="url2?escape&amp;amp;chars"></NODE>
..........

In my xsl, I have:

<A onmouseout="cs()" href="{./@url}"><xsl:attribute name="onmouseover"><xsl:text>return ss('visit </xsl:text><xsl:value-of select="./@visible_url" disable-output-escaping="yes" /><xsl:text>')</xsl:text></xsl:attribute>TITLE</A><br />
<font size="-1"><span class="test">BODY</span><br />
<a HREF="{./@url}"><font size="-1"><xsl:value-of select="./@visible_url" disable-output-escaping="yes"/></font></a>
</font>


...........

The problem is that when I use <xsl:value-of select="./@visible_url" disable-output-escaping="yes"/> I obtain

url2?escape&amp;chars and in my page I see url2?escape&chars

and it's ok;
the problem is the onmouseover attribute where I get:

url2?escape&amp;amp;chars and in my page I see url2?escape&amp;chars

Why I'm getting two different values for the same input and same operation?
I'd like to obtain always url2?escape&amp;chars.
Any solution?

Best regards

Current Thread