RE: [docbook-apps] what's the value of the document type declarat ion?

From
Jeff Beal <>
Date
2003-06-03T17:14:28+00:00
ID
Thread
RE: [docbook-apps] what's the value of the document type declarat ion?
However, as I think about it a little bit more, the document below is a
well-formed document using general entities, but not pulling in an external
DTD (assuming that introduction.xml and chapter1.xml are both well-formed
XML fragments):

<!DOCTYPE book [
 <!ENTITY introduction SYSTEM "introduction.xml">
 <!ENTITY chapter1 SYSTEM "chapter1.xml">
]>
<book>
 <title>A Non-validating document</title>
 &introduction;
 &chapter1;
</book>

This won't validate, of course, because you haven't defined any elements,
but an XML parser will still be able to find your document fragments.

Jeff

> -----Original Message-----
> From: Jeff Beal [mailto:]
> Sent: Tuesday, June 03, 2003 1:23 PM
> To: 'Robert P. J. Day'
> Cc: docbook apps list
> Subject: RE: [docbook-apps] what's the value of the document type
> declarat ion?
> 
> 
> Also correct.
> 
> > -----Original Message-----
> > From: Robert P. J. Day [mailto:]
> > Sent: Tuesday, June 03, 2003 1:15 PM
> > To: Jeff Beal
> > Cc: docbook apps list
> > Subject: RE: [docbook-apps] what's the value of the document type
> > declarat ion?
> > 
> > 
> > On Tue, 3 Jun 2003, Jeff Beal wrote:
> > 
> > > In terms of transformation, it also provides any default 
> > attribute values.
> > 
> > and i just remembered as well that you can define general entities
> > only within the document type declaration, right?
> > 
> > rday
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: 
> 
> > For additional commands, e-mail: 
> > 
> > 
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 
>