[Home] [By Thread] [By Date] [Recent Entries]


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@r...>
http://www.ccil.org/~cowan              http://www.reutershealth.com
Common Gaelic in Cyrillic script!
        http://groups.yahoo.com/group/Celticonlang

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member