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

RE: UTF-8+names


xml numeric character references


Michael Kay wrote:
> 
> > That is to say, I can see non-XML applications finding it 
> handy to be
> > able to say "Martin Dürst said so." but I don't see a 
> common use 
> > case for "Clearly in this case Ir < Is", unless you're 
> > headed for XML.
> 
> When will it be handy?
> 
> I could see it being handy if it encoded allowed any Unicode 
> character to be represented using ASCII characters, because 
> that would enable me to enter Unicode at a keyboard. But it 
> only allows some Unicode characters, and I still need a UTF-8 
> aware editor to enter the others!
> 
> So (a) why not make it ASCII-based rather than UTF-8 based, 
> and (b) why not allow numeric character references to be 
> expanded for the characters that don't have names?


If numeric character references (with the same apparent syntax as XML's
numeric character references) were introduced, they would hide completely
XML's numeric character references.  As a consequence,  XML numeric
character references would need to be encoded as 

	& & ; # n n n ;

rather than as

	& # n n n ;

in order to be visible to an XML processor.

Consider, for example, 

	<el att="abc&#x26;" />

This is not well-formed if  &#x26  is a character reference at the encoding
level.  It represents exactly the same Unicode character sequence as 

	<el att="abc&" />

does.

Therefore either a different syntax must be specified for the encoding-level
numeric character references, or the above must be encoded as:

	<el att="abc&&;#x26;" />

Alessandro


> 
> Michael Kay
> 
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org 
> <http://www.xml.org>, an initiative of OASIS 
<http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>



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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.