external parameter entities

Internal parameter entity replacement text, as given in a decl, is
valid by definition, according to the XML standard.  External parameter
entity replacement text must parse according to the extSubsetDecl pro-
duction according to the standard.

This would seem to make it illegal to do some seemingly very natural
things like:

  <!ENTITY % e SYSTEM "external.data">

where external.data contains a token like "EMPTY" or "CDATA".

Is this what you intended?  E.g., if I want to define a parameter entity
to be "IGNORE", is it impossible to dump the word "IGNORE" into a data
file, and point an entity declaration at it?

James Clark's XML validation suite uses constructs like the above.

Am I right to be confused here?

-- 

Richard Goerwitz
PGP key fingerprint:    C1 3E F4 23 7C 33 51 8D  3B 88 53 57 56 0D 38 A0
For more info (mail, phone, fax no.):  finger richard@goon.stg.brown.edu

Received on Wednesday, 1 July 1998 18:40:11 UTC