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

RE: escaping '&'

Subject: RE: escaping '&'
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 14 Jul 2000 13:45:42 +0100
escaping
> I need to include accents in a page written in Spanish. The 
> problem is that I need to escape the special characters like "&" that I
need 
> (for example "&iacute;"

Try to avoid thinking about how to generate the entity reference "&iacute;",
instead think about how to generate the Unicode character "lower case I with
acute accent", and leave the XSLT processor to work out how to represent
this character in the HTML output.

If you have this character in your stylesheet it will be copied into the
output. There are several ways you can write this character in your
stylesheet:

- use an ISO-8859-1 editor and type it directly, with the stylesheet in
iso-8859-1 encoding
- use a UTF-8 editor and type it directly, with the stylesheet in UTF-8
encoding
- use a numeric character reference, "&#xed;"
- use an entity reference, "&iacute;", and declare this entity in your DTD

Mike Kay


 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.