This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] DocBook/XML --> [tgn]roff
- From: Daniel Veillard <veillard at redhat dot com>
- To: Dennis Grace <dgrace at us dot ibm dot com>
- Cc: Yann Dirson <ydirson at fr dot alcove dot com>, docbook-apps at lists dot oasis-open dot org, Sam Steingold <sds at gnu dot org>
- Date: Fri, 25 Apr 2003 14:54:07 -0400
- Subject: Re: [docbook-apps] DocBook/XML --> [tgn]roff
- References: <OFA4DC50A5.DFB02FF9-ON85256D13.004CF6D7@pok.ibm.com>
- Reply-to: veillard at redhat dot com
On Fri, Apr 25, 2003 at 09:05:23AM -0500, Dennis Grace wrote:
> I agree with Yann and Tilly: the jade wrapper (docbook2man) won't work with
> XML. In fact, docbook2man can just barely be said to work with SGML. It
> relies on a fairly simple perl script, which does not institute even one
> tenth of the functionality offered by the DocBook refentry subset.
Well basically if you have the DocBook catalogs set-up, simply
adding a stylesheet PI after the xml declaration referencing the
manpages/docbook.xsl it's just a matter of calling xsltproc on
the xml:
paphio:~/XML/doc -> head -4 xmllint.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl"
href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
paphio:~/XML/doc -> xsltproc xmllint.xml
Writing xmllint.1 for refentry
paphio:~/XML/doc ->
Very easy to automate from makefiles too:
xmllint.1: xmllint.xml
-@(xsltproc xmllint.xml)
Now I just need to find a way to automate the generation of the XML
describing the command and options <grin/>
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard at redhat dot 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 at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org