OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Help creating DTD

[ Lists Home | Date Index | Thread Index ]

Karl Stubsjoen scripsit:
> Ahh... I see the confusion I may have caused.
> Infact, I used "id" as an arbitrary name for an attribute, not knowing there
> was a technical issue :O.  However, I should have guessed this much (sorry
> ppl).
> Lets call "id" "partnum".
> So then <ITEM /> has an attribute called "partnum", like this:
> <ITEM partnum= />
> All ITEM tags will be unique based on the partnum value.

It isn't the attribute's name that's the issue, it's whether it meets the
XML 1.0 rules for being a unique identifier, namely it can only contain
letters and numbers and _ and - and ., and has to begin with a letter or _.
W3C XML Schema can handle less restrictive unique values.

John Cowan                              <jcowan@reutershealth.com>
http://www.ccil.org/~cowan              http://www.reutershealth.com
Common Gaelic in Cyrillic script!


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS