xsl-list
[Top] [All Lists]

RE: Problems with entities

2003-11-19 13:11:15
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(_at_)onebox(_dot_)com - email



-----Original Message-----
From:     Jaime A Stuardo Bahamondes <jstuardo(_at_)security(_dot_)cl>
Sent:     Wed, 19 Nov 2003 16:49:07 -0400
To:       <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
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



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