This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: escaping '&'
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: escaping '&'
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 14 Jul 2000 13:45:42 +0100
- Reply-To: xsl-list at mulberrytech dot com
> 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 "í"
Try to avoid thinking about how to generate the entity reference "í",
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, "í"
- use an entity reference, "í", and declare this entity in your DTD
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list