Doctype dec and Namespaces

Henry S. Thompson ht at
Fri Aug 14 16:31:18 BST 1998

Peter Jones <peterj at> writes:

> I've just been looking at the Namespaces WD of 2-Aug-98
> and I saw the following:
> doctypedecl ::=  '<!DOCTYPE' S QName (S ExternalID)? S? ('[' (markupdecl
> | PEReference | S)* ']' S?)? '>' 
> I notice that a QName occurs in the definition. Does this mean that a
> Namespace which is global for the (presumably valid) document is
> declared between the <?xml version="1.0" ?> and the doctype decl.?

Nope.  The QNames in the prolog are all interpreted as atoms for now.
Namespace declarations are ONLY allowed on actual elements.
The interaction of namespaces and validation has not yet really been
addressed:  wait for an update to the XML recommendation itself for
that, I expect.

The best short authoritative description of all this is in David
Megginson's message to this list on 11 August (Message-Id:
<199808112127.RAA01625 at>),

  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht at

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