This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: 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 "í"

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]