RE: [xsl] Problems with entities

Subject: RE: [xsl] Problems with entities
From: cknell@xxxxxxxxxx
Date: Wed, 19 Nov 2003 15:11:15 -0500
Here it is (space added between ampersand and the rest of the entity to insure that it will show up, remove the space for use):

the ampersand & amp;
the greater-than symbol & gt;
the less-than symbol & lt;

Somehow, I don't think that's what you expected. Things you might expect to be entities have to be defined in you DTD, or, depending on the character encoding of your document, you might find it useful to use the character references directly. If you are using the UTF-8 encoding, for examle, the ó character is represented by ó
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Jaime A Stuardo Bahamondes <jstuardo@xxxxxxxxxxx>
Sent:     Wed, 19 Nov 2003 16:49:07 -0400
To:       <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  [xsl] Problems with entities

Hi all..

Inside an XSL document I have:

<a href="JavaScript:eliminar_datos('DIR', document.frm.chkDelDir, 'una direccion', 'las direcciones');">

the fact is that the sentence "una direccion" must to be written as "una dirección". When I write the ó, garbage is shown in the web page.

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 ó. If I'm correct about the cause of the problem and the solution, which is the entity for ó? where can I find a complete set of entities?

Thanks
Jaime

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread