This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Modularization technique


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:
> 
> xmllint --dtdvalid "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"; --noout myfile.xml

  Just be careful that this operation isn't formally defined from
a standard point of view. It's is more or less equivalent to validating
the document with just a 
 <!DOCTYPE root_elem SYSTEM "external DTD reference">
declaration. That should be fine with an entity, but it does ignore all
DTD declarations if used against a complete document, i.e. internal subset
informations would be lost.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]