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

Re: E [Xerces] Attribute value "1" of type ID must be

Subject: Re: E [Xerces] Attribute value "1" of type ID must be an NCName when namespaces are enabled.
From: Eliot Kimber <ekimber@xxxxxxxxxxxx>
Date: Thu, 13 Aug 2009 08:33:07 -0500
Re:  E [Xerces] Attribute value "1" of type ID must be
On 8/13/09 6:18 AM, "Michael Kay" <mike@xxxxxxxxxxxx> wrote:

> 
> The message means exactly what it says. For bizarre historical reasons that
> few people remember, XML requires that an attribute value declared as being
> of type ID has the same syntax as an XML name - so it cannot start with a
> digit.

Looking at _The SGML Handbook_, I'm not finding a specific discussion of why
ID attributes are names other than a simple statement that IDs are names,
semantically. 

I don't remember ever discussing this aspect of SGML design with Charles
although I can imagine his thinking was that IDs are names and therefore
should conform to name lexical rules. I also suspect that Charles'
assumption, or in fact desire, was that element IDs be human-meaningful
names, rather than opaque identifiers used only by processors (e.g.,
pointers and addresses). Thus disallowing values consisting only of digits
would encourage the use of meaningful ID values. Maybe.

Cheers,

Eliot
----
Eliot Kimber | Senior Solutions Architect | Really Strategies, Inc.
email:  ekimber@xxxxxxxxxxxx <mailto:ekimber@xxxxxxxxxxxx>
office: 610.631.6770 | cell: 512.554.9368
2570 Boulevard of the Generals | Suite 213 | Audubon, PA 19403
www.reallysi.com <http://www.reallysi.com>  | http://blog.reallysi.com
<http://blog.reallysi.com> | www.rsuitecms.com <http://www.rsuitecms.com> 

Current Thread

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