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

RE: Why cant xml:id be numeric only ?

  • From: "David Lee" <dlee@calldei.com>
  • To: "'Michael Kay'" <mike@saxonica.com>, <xml-dev@l...>
  • Date: Fri, 29 Apr 2011 10:57:16 -0400

RE:  Why cant xml:id be numeric  only ?

Thanks,  I suspected something from the distant SGML land as it seems entrenched in the DTD history ..

 

But obviously any sane person would assume

                xml:id="D000001"   == xml:id="D1"

 

:) 1/2

 

 

 

----------------------------------------

David A. Lee

dlee@calldei.com

http://www.xmlsh.org

 

From: Michael Kay [mailto:mike@s...]
Sent: Friday, April 29, 2011 10:42 AM
To: xml-dev@l...
Subject: Re: Why cant xml:id be numeric only ?

 

On 29/04/2011 15:22, David Lee wrote:

First off I know asking "Why" for anything standards related is silly.

 

But given that, could anyone give me a rationale or history for restricting xml:id (or the ID type from DTD) to be NCName which then has to start with non-numeric ?

 


I seem to recall asking this once, and being told that the history lay in the SGML rules for abbreviated syntax. Something like allowing <e id="xyz"/> to be abbreviated as <e xyz>. Not that this in itself would make a numeric identifier ambiguous, but it would account for requiring an ID value to have the same syntax as an attribute name.

I guess another justification is that it prevents any debate about whether xml:id="01234" is a duplicate of xml:id="1234".

Michael Kay
Saxonica



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.