[Home] [By Thread] [By Date] [Recent Entries]

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

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@c...

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]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member