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

Re: How best to represent unrepresentable characters in NAME tokens?

  • From: "Rick Jelliffe" <ricko@a...>
  • To: "Andrew Greene" <agreene@b...>, <xml-dev@i...>
  • Date: Wed, 5 Nov 1997 01:44:29 +1100

name tokens in xml

 
> From: Andrew Greene <agreene@b...>

> * Is there a need for a "semi-standard" solution to this problem, or am
>   I the only one struggling with it?
> 
> * Is there interest in adopting some variation of number 2 so that we're
>   better able to exchange such data?
> 
> * I can't help but think that number 3 would be the most elegant solution
>   if it were only legal. Yet I'm also sure that the XML committee had a 
>   good reason for disallowing it. I'd be interested in hearing what their
>   reason was, so that I may become enlightened. :-)

When I proposed the "native language markup" scheme (for the ERCS project of
the Standardization Project Regarding East Asian Documents of the China/Japan/
Korea Document Processing Group) which XML implements, we also developed
the idea of "lowest-common-denominator naming".  

This means that you should only use characters in names which are available
in all the systems through which the document will pass.  So, if you have
a requirement (known upfront) to save in ASCII, then you should use "ue" not
"u umlaut".   The best solution is to not create one in the first place!
(For example, Japanese users should restrict themselves to only using 
characters in Shift JIS for names, not in JIS 212 or the additional sets coming.)

I do not think there is any requirement for global interoperability of 
DTDs: if there is, then some system of numeric character references in 
names would be appropriate.   

However, I can suggest a 4th approach that may be better than your three.
It is to provide a language or encoding specific fixed attribute, giving
the ASCII form of the GI for use in dumping.  OF course, it requires a
minimum of smarts to convert to the new IDs.  You might have an "also known
as" aka attribute (I'll use B instead of esszet):

<!ATTLIST  straBe
	aka CDATA #FIXED "en-646 street de-8859-1 straBe de-646 strasse" >


Rick Jelliffe

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.