This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Newbie: Which validating parser for XML DocBook?
- To: docbook-apps at lists dot oasis-open dot org, ps at db dot dk
- Subject: Re: DOCBOOK-APPS: Newbie: Which validating parser for XML DocBook?
- From: Bob Stayton <bobs at caldera dot com>
- Date: Thu, 25 Oct 2001 14:34:50 -0700 (PDT)
- List-Id: <docbook-apps.lists.oasis-open.org>
> From: Piet Seiden <ps@db.dk>
>
> I'm starting out with XML, trying to convert existing documents using the
> DocBook XML DTD (4.1.2). As editor I have tried using XML Spy 4.0 but have
> not been able to validate anything, not even simple sample documents. Before
> this drives me insane, I would like to inquire here, if there is a
> validating XML parser known to work well with the DocBook XML DTD. The
> platform should be either Windows, Mac OS X, FreeBSD or Linux.
> Thanks in advance
> Piet.
One short path to XML validation is to download the Windows
binaries of libxml2 from:
http://www.fh-frankfurt.de/~igor/projects/libxml/index.html
And then use the included 'xmllint' tool as follows:
xmllint --valid --noout filename.xml
If you haven't yet put a <!DOCTYPE> declaration at
the top of your XML file to tell the parser where
the DTD is, you can instead use this form:
xmllint --dtdvalid ../docbook.412/docbookx.dtd --noout filename.xml
to provide the path to the docbook dtd file.
Once you have valid XML, you'll probably also want to
download the libxslt binaries so you can transform
your XML using XSLT. And of course libxml2 and libxslt are
also available in source form for Linux.
bobs
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
Caldera International, Inc. fax: (831) 429-1887
email: bobs@caldera.com
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>