Order of Declarations in DTD subsets

James Clark jjc at jclark.com
Mon Dec 22 09:33:18 GMT 1997


Peter Murray-Rust wrote:
> 
> Is it required that a declaration in the subset come before it is used?

In general no.  The exceptions are that parameter entities must be
declared before they are referenced and general entities must be
declared before they are referenced within default attribute values
(this is specified under Well-Formedness Constraint - Entity Declared). 
In particular it is *not* required:

- to declare an element type before it is used in content model

- to declare an element type before it is used in an attlist declaration

- to declare a notation before its name is used as the default value for
a NOTATION attribute

- to declare a notation before it is used as the notation for an
unparsed entity

- to declare an unparsed entity before its name is used in the value for
an ENTITY or ENTITIES attribute

- to declare a general entity before it occurs in an EntityValue

James

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




More information about the Xml-dev mailing list