OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: DTD's in external Entities?

[ Lists Home | Date Index | Thread Index ]
  • From: David Brownell <david-b@pacbell.net>
  • To: Binesh Bannerjee <binesh@hex21.com>
  • 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
> document?
> 
> (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).

- Dave

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS