xsl-list
[Top] [All Lists]

[xsl] &

2007-03-21 04:20:35
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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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