[Expat-discuss] Re: Entity References when there's no DTD
Karl Waclawek
karl at waclawek.net
Wed Oct 15 12:25:14 EDT 2003
> On Wed, 15 Oct 2003, Karl Waclawek wrote:
>
> > 1) An entity reference is encountered for which no declaration
> > has been read *and* this is not an error.
>
> OK, my real question was 'what constitutes an error?'
Yes, but that's not an Expat question.;-)
> - but I
> just found http://www.w3.org/TR/REC-xml#wf-entdeclared
> which defines the very problem as a 'Well-formedness constraint':
>
> "In a document without any DTD, a document with only an internal DTD
> subset which contains no parameter entity references, or a document with
> "standalone='yes'", for an entity reference that does not occur within
> the external subset or a parameter entity, the Name given in the entity
> reference must match that in an entity declaration that does not occur
> within the external subset or a parameter entity, except that well-formed
> documents need not declare any of the following entities: amp, lt, gt,
> apos, quot."
Not easy to read ...
Karl
More information about the Expat-discuss
mailing list