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

Re: Using accented characters in XML

Subject: Re: Using accented characters in XML
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 19 May 2001 17:17:30 +0100
xml accented characters


> The reason it's failing, is because that character need to be encoded as an
> 'entity' - I think I have an entities list around here somewhere.
> 
> anyway, that character should be encoded as &#201;
> 
> _watch_out_ with your entities, though - I was trying to use &nbsp; (the
> ever present space in html) and my xslt processor barfed on it. I think
> sablot has trouble with named entities. I'm not sure if that's a global
> problem with xslt processors.
> 
> I've reverted to using the entity id's _only_ :)
> 
That is misleading advice.
Firstly characters do not need to be encoded as entities, the default
utf8 and uttf16 encodings can handle the full unicode range as character
data.

Secondly entity references such as nbsp; are not handled by your XSLT
system but by the XML parser and they always require a DTD that defines
those entities excpt for the five predefined entities
amp quot lt gt and apos

thirdly character references such as &#160; are not entiy references
they are treated differently by the XML parser.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp

 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.