[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Modularization technique
From: "Daniel Veillard" <veillard@redhat.com> > On Mon, Aug 11, 2003 at 06:01:43PM -0700, Bob Stayton wrote: > > On Mon, Aug 11, 2003 at 07:38:01PM -0500, Bob Foster wrote: > > > Seems like a more appropriate solution would be to use a validator that > > > allows the DTD to be specified outside the document. (And an editor that > > > allows same.) > > > > Yes, xmllint (included with libxml2) can validate a system entity > > with an external DTD reference: > > Just be careful that this operation isn't formally defined from > a standard point of view. Good point, this had momentarily slipped my mind. In defense of the approach, if I were running a department where documents had to be valid before being checked in, I would prefer that they were valid against a known DTD. The fact that there is no standard way to override a user's DOCTYPE declaration and as a consequence no way to guarantee that a document is valid against its (real) definition is often cited as a bug in XML. Thus we have seen an evolution in "schema" standards, so that a schema identifier is optional in a document validated against an XML Schema and cannot be specified at all in a document validated against a RELAX NG schema. Nevertheless, you are right about the standard, and that the technique doesn't allow the use of an internal subset in the "sub-documents". Bob Foster
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]