W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2000

Value space of ENTITY, NOTATION, IDREF

From: James Clark <jjc@jclark.com>
Date: Tue, 17 Oct 2000 10:29:54 +0700
Message-ID: <39EBC7B2.D8FD7DAA@jclark.com>
To: XML Schema Comments <www-xml-schema-comments@w3.org>
The ENTITY and QName datatypes are similar in that their lexical space
both contain names that are interpreted relative to a context containing
a set of declarations.  For QName, the context is an element containing
namespace declarations; for ENTITY, the context is a document containing
unparsed entity declarations. Yet the value spaces are handled
inconsistently.  For QName, the value space contains not the prefix, but
the namespace URI to which it is bound by the declaration.  However, for
ENTITY, the value space contains not the entity to which the entity name
is bound, but the original string.  This makes a significant difference
when you start to manipulate or programatically construct values (eg in
XML Query or XSLT).  I believe QName has it right, and that the value
space of ENTITY should be a set of Entity Declaration information items
one for each unparsed entity declared in the document.  Similarly, the
value space of NOTATION should be a set of Notation info items declared
in the Schema, and the value space of IDREF should be the set of all the
Element info items in the document that have an ID attribute.

James
Received on Monday, 16 October 2000 23:31:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:48 GMT