Subject: Re: [xsl] &amp; From: Marco <spinmar@xxxxxxxxx> Date: Wed, 21 Mar 2007 12:53:17 +0100 |
The problem is that I don't produce the xml but I receive it from an external source.I have a xml document with:
......<NODE n="1" url="url1" visible_url="url2?escape&amp;chars"></NODE>
..
this is almost certainly a mistake in the input and if you have control
over the generation of these files, you should fix the generator to
produce
<NODE n="1" url="url1" visible_url="url2?escape&chars"></NODE>
For example I can use this one:and it's ok;
the problem is the onmouseover attribute where I get:
disable-output-escaping is defined to do nothing in attribute values. It's almost always a bad idea to use d-o-e in any case.
you need to replace & by &, in XSLT2, you could use
select="replace(@visible_url,'&amp;',' &')"
in XSLT1 you could use one of the many replace templates posted to this
list, or the faq to do the same transformation.
David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] &amp;, David Carlisle | Thread | Re: [xsl] &amp;, David Carlisle |
Re: [xsl] Tokenize comma separated , Abel Braaksma | Date | Re: [xsl] &amp;, David Carlisle |
Month |