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

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xml-dev] Common Sense approach to ID and IDness




Don Park wrote:

> IDISID Proposal:  Any attributes named "id", "ID", or "Id" are of type ID
> regarless of namespace.

Not infrequently, the scope established by the instance requires one to change
an attribute declaration from something like:

   <!ATTLIST foo   id    ID   #REQUIRED>

to

   <!ATTLIST foo   id    CDATA   #REQUIRED>

Otherwise, you get overlapping ID values for whatever reason - you included a
section from another document from the same namespace for instance. The DTD has
never been an ideal place to define ID and IDREFs, IMHO - it lacks scope. It
provides you with a suggestion, based on a certain configuration of a document.
It lacks dynamism.


--
Regards,

Marcus Carr                      email:  mrc@allette.com.au
___________________________________________________________________
Allette Systems (Australia)      www:    http://www.allette.com.au
___________________________________________________________________
"Everything should be made as simple as possible, but not simpler."
       - Einstein