[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: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Thu, 13 Aug 2009 15:00:54 +0200
Re:  E [Xerces] Attribute value "1" of type ID must be
Michael Kay schrieb:
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.

Bizarre historical reasons is exactly what I'm interested in! Quite often, they don't find entrance in the documentation, but live on only in anecdotal camp fire talk. I'd be glad if any of the few people who remember could point out what these reasons are.

At first, I found it odd that a simple integer value did not qualify for
ID-ness as per the XML spec. Then, becoming aware of the fact that there
is only one ID table per document, I realized it is a useful convention
to *prefix* ID values according to the type of object they refer to, the
prefix stepping in as a substitute for the table, so that there can be
an object HH123 but also BB123. This is when the restriction mentioned
above stopped bothering me.

--
Michael Ludwig

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-2011 All Rights Reserved.