Why is this JC test not-wf?

John Cowan cowan at locke.ccil.org
Wed Mar 17 21:14:30 GMT 1999

roddey at us.ibm.com wrote:

>    <!DOCTYPE doc [
>    <!ENTITY e SYSTEM "nul">
>    ]>
>    <doc a="&e;"></doc>

References to external entities aren't allowed in attribute values,
only in content.  That keeps attribute values simple for non-validating
parsers that don't load external entities.

Or it was supposed to.  In fact, since NVPs don't have to read
external parameter entities either, we can wind up with an unresolvable
reference to an internal entity that is externally declared.
John Cowan	http://www.ccil.org/~cowan		cowan at ccil.org
	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 ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
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