Dieter Köhler wrote:
> For a non-validating processor a reference to an undeclared entity is
> only a violation of a well-formedness constraint for a document with
> "standalone='yes'" in its XML declaration. If "standalone='no'" or if
> no standalone declaration is present, the processor must accept the
> reference (of course it cannot expand it). See XML spec. 4.1, prod.
>  "WFC Entity Declared",
> This is only the case for validating, but not for non-validating
> processors. The XML spec is very clear about that fact: "If the
> entity is external, and the processor is not attempting to validate
> the XML document, the processor MAY, but need not, include the
> replacement text. If a non-validating processor does not include the
> replacement text, it MUST inform the application that it recognized,
> but did not read the entity." (XML spec. 4.4.3,
> "http://www.w3.org/TR/2006/REC-xml-20060816/#include-if-valid"; for
> more details see the rest of the paragraph.)
All this seems to deal with the situation where an entity *is* declared,
to do with it. Are there XML parsers which will let the following past?
<?xml version="1.0" encoding="utf-8"?>
The ones I have tried all barf on it.
Information Manager, Oxford University Computing Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
OSS Watch: JISC Open Source Advisory Service