[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Problems with entities

Subject: Re: Problems with entities
From: yguaba@xxxxxxxxxxxx
Date: Thu, 20 Nov 2003 00:25:08 -0200
x unicode
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 &apos; ?

> 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.