This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: XIncludes
- From: Vitaly Ostanin <vyt at vzljot dot ru>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Fri, 14 Mar 2003 19:45:07 +0300
- Subject: DOCBOOK-APPS: Re: XIncludes
- References: <3E6F01AA.ABDC3EDE@enea.se>
On Wed, 12 Mar 2003 10:45:14 +0100
Stefan Bylund <steby at enea dot se> wrote:
> Hi Damian,
>
> I first tried xincluder but I soon found out that xmllint is
> more fully featured. I use the following command to resolve all
> xincludes before invoking the XSLT processor (Saxon):
>
> xmllint --xinclude --catalogs document.xml > resolved.xml
>
> Note that xmllint uses the SGML_CATALOG_FILES environment
> variable to find the catalog(s).
>
> The xmllint tool is part of libxml2 which is located at
> http://xmlsoft.org/. It is also a very good validating XML
> parser; I use it the following way:
>
> xmllint --xinclude --postvalid --noout --catalogs document.xml
If your document uses entities which declared in external DTD
(like DocBook), you should add
--loaddtd
<skipped/>
--
Regards, Vyt
mailto: vyt at vzljot dot ru
JID: vyt at vzljot dot ru