PEReferences in comments

John Cowan cowan at
Thu Aug 6 22:38:48 BST 1998

Ron Bourret wrote:

> Are parameter entity references in comments in the external subset supposed to
> be expanded?

I think the answer to this question is of no direct interest, since
comments are freely discardable.  However, it leads to the
question:  is the sequence "%foo;" in a comment, where "foo" is not
a known parameter entity, an error?  Clearly, I say, it is not an
error, but I cannot produce any warrant for this.

BTW, the Goldfarb/Prescod _XML Handbook_ claims that the string
"<!ENTITY" in the DTD cannot be replaced by a reference to an
(internal) PE, but fails to give a warrant for this claim either, since
declarations are not one of the things which clause 4.3.2 says
cannot be split between entities (perhaps by oversight?).  

John Cowan		cowan at
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)

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