Pour ceux qui veulent écrire leurs HOWTOs en DocBook/XML et utiliser les
feuilles de style XSL du LDP pour générer les autres versions de leur
docuemnt.
--
Nicolas Chauvat
http://www.logilab.com - "Mais où est donc Ornicar ?" - LOGILAB, Paris (France)
---------- Forwarded message ----------
Date: Tue, 4 Sep 2001 14:03:35 -0400
From: Dan York
dyork@e-smith.com
To: Dan Scott
dan.scott@acm.org
Cc: Florin Andrei
elf_too@yahoo.com,
LinuxDoc Mailing List
discuss@linuxdoc.org
Subject: Re: XML template
Dan (and Florin),
>
http://www.xmlsoft.org), installing the latest DocBook XSL stylesheets
> (available from
http://docbook.sourceforge.net) and issuing the following
> command:
>
> bash$ xsltproc --docbook $path_to_stylesheets/xhtml/docbook.xsl \
> DocBookTemplate.xml > output.html
>
> Fast and easy. The output will look slightly different than the
> results on LDP, but the parsing is good. I love it; I hope you will
> too.
About a month ago, I committed to LDP CVS some XSL stylesheets that
duplicate the formatting found in ldp.dsl. You can find them in CVS or
through the web at:
http://cvsview.linuxdoc.org/index.cgi/builder/xsl/
To build a *single-page* HTML file, call 'ldp-html.xsl'. To build a
set of linked HTML pages, call 'ldp-html-chunk.xsl'.[1] Both of those
in turn call 'ldp-html-common.xsl', which does the meat of the processing.
There is also a 'ldp-print.xsl' there as well, but it is just a placeholder
for whenever I (or someone else) gets time to play around with FOP or
PassiveTex enough to write the appropriate XSLT.
By the way, to use them, you will need to modify the pathnames in
ldp-html.xsl and ldp-html-chunk.xsl to point to wherever you have installed
Norm's XSL stylesheets.
I use a variation of these stylesheets all the time with xsltproc and
it works fantastically.
Regards,
Dan
[1]. The reason there are multiple files instead of just a single stylesheet
like ldp.dsl is due to a change in the way multiple files are generated.
With SGML/DSSSL, the separation into multiple files was a function of the
processor (i.e. jade/openjade). With XML/XSLT, it is a function of the
*stylesheets* and therefore you need to call a different stylesheet if you are
generating multiple files (called "chunking" in XML/XSLT lingo) or generating
a single page.
--
Dan York, Director of Training dyork@e-smith.com
Ph: +1-613-751-4401 Cell: +1-613-263-4312 Fax: +1-613-564-7739
Mitel Network Corporation Network Server Solutions Group
150 Metcalfe St., Suite 1500, Ottawa,ON K2P 1P1 Canada
http://www.e-smith.com/ http://www.mitel.com/
_________________________
http://list.linuxdoc.org/