|
[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
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.
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart


![Re: E [Xerces] Attribute value "1" of type ID must be](/images/get_stylus.gif)





