ID and tag value uniqueness, how?

david at david at
Wed Oct 28 19:10:12 GMT 1998

Glenn R. Kronschnabl writes:

 > I don't want to do something like id="num1" because then I
 > would have to parse it, etc.  

It's not that bad, really.  Try id=n00001, id=n00002, etc., and just
strip off the first character in your application (no significant
parsing required).

That said, if there is not an obvious way to represent a particular
validation constraint using a DTD, you usually shouldn't try -- XML
itself is just a representation syntax; it shouldn't become a Golden
Hammer for every type of work.  XML has to work together with other
technologies to provide any real-world application.

All the best,


David Megginson                 david at

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list