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

Re: C.12 types of declared values for attributes?



>I agree.  You can always use CDATA instead and kludge it in the application.
>
>I would argue, in fact, that XML might as well not have an ID attribute
>type at all.  Just CDATA.  Then have an application convention that a
>string in an attribute of the form ref.xxx refers to a corresponding
>(case sensitive) string in an attribute of the form ref.xxx, where the xxx
>must be the same in both cases.

I prefer this to any of the options we have discussed. We should eliminate
ID/IDREF altogether, add Lee's application convention, and generate
warnings for attbitues called "ref.whatever" whose value does not occur on
as the value of a "whatever" attribute elsewhere in the document.

We can add ID/IDREF declarations once SGML97 comes out. XML need never have
them, but the SGML import process will be able to create them
automatically.

>This proposal works without a DTD, and with a DTD gives documents that
>parse correctly in SGML.

Exactly! very nice!

   -- David

RE delenda est.
I am not a number. I am an undefined character.
_________________________________________
David Durand              dgd@cs.bu.edu  \  david@dynamicDiagrams.com
Boston University Computer Science        \  Sr. Analyst
http://www.cs.bu.edu/students/grads/dgd/   \  Dynamic Diagrams
--------------------------------------------\  http://dynamicDiagrams.com/
MAPA: mapping for the WWW                    \__________________________
http://www.dynamicdiagrams.com/services_map_main.html