OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] UTF-8+names

[ Lists Home | Date Index | Thread Index ]

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&" />


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;" />


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

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>


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS