Dieter Köhler wrote:
> Validating XML processors must read the complete DTD. Non-validating
> processors may fail to detect the reference to an undeclared entity,
> but this can not cause the documents to be invalid.
if you declare an entity called "foo" in the external DTD, and then use
&foo; in the document,
the document will not be well-formed according to a non-validating parser.
> Of course, it depends on the particular application how it copes with
> an entity reference that it can not expand.
no. its an error if you cannot expand an entity - well, in my reading of
> So if it is likely that an XML file is processed by an unknown
> application which cannot or does not assess the external subset of a
> DTD one can easily expand the references before publication by using
> one of the many available validating XML processors and still keep
> entity references in the master code for convenience.
sure, I agree. that's a perfectly valid way of working, to run the
document through an entity expander.
Information Manager, Oxford University Computing Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
OSS Watch: JISC Open Source Advisory Service