Hello Jaime,
On 19 Nov 2003 at 14:55, Jaime A Stuardo Bahamondes wrote:
Inside an XSL document I have:
<a href="JavaScript:eliminar_datos('DIR', document.frm.chkDelDir, 'una
direccion', 'las direcciones');">
Have you tried replacing the single-quotes in the above fragment with
the entity ' ?
the fact is that the sentence "una direccion" must to be written as "una
direccisn". When I write the s, garbage is shown in the web page.
Is that supposed to be a lower-case "s" or an "o" with an acute
accent?
I think it's because the single quotes are interpreted by XSL parser,
so I think the solution is to use the entity corresponding to s. If I'm
correct about the cause of the problem and the solution, which is the
entity for s? where can I find a complete set of entities?
Like I said, try replacing the single-quotes with their corresponding
entity. As for other entities, all you have to do is write "&x#"
(without the quotes, of course), followed by the unicode code for the
character you want, followed by a semi-colon. For instance, if you
look up the unicode code for "o" with an acute accent, you'll find
that it is "00F3", so the resulting entity will be "&x#00F3;" .
You can find unicode character tables for every conceivable language
at the Unicode web site: http://www.unicode.org/charts .
Cheers,
Erik
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list