xml:id questions

(1) "All values of type ID within a document are unique."

This appears to mean that if id is declared of type ID, this is an xml:id
error:

  <foo id="xxx" xml:id="xxx"/>

Is that the intention?  Or is it just that no two elements must have
the same ID?  (Note that xml:id explicitly does not require only one
ID attribute on an element.)


(2) "If the type of an xml:id attribute is specified using a
validation technology, the type is ID."

Does this mean that it is ok to declare

  <!ATTLIST foo xml:id NMTOKENS #IMPLIED>

provided that you don't have any such attributes in the instance?
I propose to treat it as error.

-- Richard

Received on Tuesday, 2 November 2004 18:34:25 UTC