Re: ID attribute defaults

John Cowan (cowan@locke.ccil.org)
Thu, 12 Nov 1998 15:06:46 -0500


W. Eliot Kimber wrote:

> It's my personal feeling that the inability to provide defaults for ID,
> IDREF(S), and ENTITY(IES) attributes is a bug (in SGML unavoidably
> inherited by XML).

There is no evidence for the presence of such a constraint in XML;
the relevant clause (3.3.2) is silent. Clause 3.3.1 does require
that ID attributes have a default of either #IMPLIED or #REQUIRED,
but no restrictions are placed on IDREF, IDREFS, ENTITY, or ENTITIES,
so they may have default values in XML.

-- 
John Cowan	http://www.ccil.org/~cowan		cowan@ccil.org
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)