Lists Home |
Date Index |
- From: David Brownell <email@example.com>
- To: Binesh Bannerjee <firstname.lastname@example.org>
- Date: Thu, 26 Aug 1999 12:12:40 -0700
Binesh Bannerjee wrote:
> On Thu, 26 Aug 1999, David Brownell wrote:
> > External entities may not have DTDs. They also may not have
> > standalone='...'" attributes in their text declarations. In
> > both cases, the XML spec requires fatal errors to be reported;
> > unless, that is, you've got a non-validating processor which
> > isn't reading the external entity!
> > If you find an "XML" processor which supports the nesting that
> > you're trying, return it to the vendor for a full refund ... ;-)
> OK... But, then how _do_ you go about including another document
> inside your own? Or can a valid document _not_ include another
> valid document?
Valid documents may not include other valid documents. "You can't
do that ...".
> Must I create invalid document fragments and
> separate DTD's if I just want to blend them all into a single
> (Since the absence of a DTD makes a doc not valid, right?)
External entities are by definition not valid documents; they
may never have a DTD ("<!DOCTYPE ...>") declaration.
The question to ask about external entities is whether they are
well formed _as external entities_ ... they're basically "content"
(what you'd find inside an element -- text, zero-to-N elements,
comments, PIs) with an optional text declaration (which can be as
minimal as "<?xml encoding='US-ASCII'?>"; encoding is required).
xml-dev: A list for W3C XML Developers. To post, mailto:email@example.com
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:firstname.lastname@example.org the following message;
To subscribe to the digests, mailto:email@example.com the following message;
List coordinator, Henry Rzepa (mailto:firstname.lastname@example.org)