ID attribute defaults

John Cowan cowan at
Thu Nov 12 20:06:34 GMT 1998

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		cowan at
	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)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list