Re: External DTD Grammar

Richard Tobin (richard@cogsci.ed.ac.uk)
Wed, 5 Aug 1998 11:31:55 +0100 (BST)


> 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