ID and tag value uniqueness, how?

david at megginson.com david at megginson.com
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

-- 
David Megginson                 david at megginson.com
           http://www.megginson.com/

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




More information about the Xml-dev mailing list