External DTD Grammar

Richard Tobin richard at cogsci.ed.ac.uk
Wed Aug 5 12:32:07 BST 1998


> Replacement texts can't contain PE references (PE declarations can,
> but the references are resolved at entity declaration time), so it isn't
> even necessary to push back the replacement text onto the input stream.

This is not true - references are expanded when the entity is declared,
but that may produce text containing new entity references.  Consider:

 <!ENTITY % p1 "&#37;p2;">
 <!ENTITY % p2 "not">
 <!ENTITY e1 "this is %p1; obvious">

Entity e1 must expand to "this is not obvious".

-- Richard

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