[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: DTD's in external Entities?

  • From: David Brownell <david-b@p...>
  • To: Binesh Bannerjee <binesh@h...>
  • Date: Thu, 26 Aug 1999 12:12:40 -0700

dtd external entity
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@i...
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@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.