discuss: XML template


Previous by date: 4 Sep 2001 18:04:03 -0000 Re: Open Source Writers Group (OSWG) dead?, Dan York
Next by date: 4 Sep 2001 18:04:03 -0000 Re: Apache-Compile-HOWTO yet another draft, Luc de Louw
Previous in thread: 4 Sep 2001 18:04:03 -0000 Re: XML template, Nik Clayton
Next in thread: 4 Sep 2001 18:04:03 -0000 Re: XML template, David Lawyer

Subject: Re: XML template
From: Dan York ####@####.####
Date: 4 Sep 2001 18:04:03 -0000
Message-Id: <20010904140332.S17799@e-smith.com>

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        ####@####.####
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/           

Previous by date: 4 Sep 2001 18:04:03 -0000 Re: Open Source Writers Group (OSWG) dead?, Dan York
Next by date: 4 Sep 2001 18:04:03 -0000 Re: Apache-Compile-HOWTO yet another draft, Luc de Louw
Previous in thread: 4 Sep 2001 18:04:03 -0000 Re: XML template, Nik Clayton
Next in thread: 4 Sep 2001 18:04:03 -0000 Re: XML template, David Lawyer


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.