This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Customizing DocBook to Produce a real URL Tree
- From: Bob Stayton <bobs at caldera dot com>
- To: Shlomi Fish <shlomif at vipe dot technion dot ac dot il>,DocBook Apps <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 26 Nov 2002 09:36:48 -0800
- Subject: Re: DOCBOOK-APPS: Customizing DocBook to Produce a real URL Tree
- References: <Pine.LNX.4.33L2.0211261235330.5635-100000@vipe.technion.ac.il>
On Tue, Nov 26, 2002 at 12:41:12PM +0200, Shlomi Fish wrote:
>
> Hi!
>
> I'm not happily using the db2* tools to convert DocBook/XML into various
> formats. However, I noticed that jade put all the HTML file into one
> directory and calls them with obscure names such as:
>
> book1.html
> c16.html
> x208.html
>
> etc. Now what I want is that it will be real URL Tree:
>
> (Root)
> [id1]
> [id1]/[id2]
> [id1]/[id2]/[id3]
> [id4]
>
> etc. As is the case with my Quad-Pres generated lectures:
>
> http://vipe.technion.ac.il/~shlomif/lecture/Freecell-Solver/slides/
> http://vipe.technion.ac.il/~shlomif/lecture/Autotools/
> http://vipe.technion.ac.il/~shlomif/lecture/Gimp/1/slides/
>
> [id*] are the IDs I assigned to the chapters and sections.
>
> My question: how can I customize the DSSSL (or XSL while we're at it)
> stylesheets to produce such a tree? (and still maintain prev-next-up
> link consistency and link to the same CSS stylesheet)
As others have pointed out, you can use a stylesheet
parameter to get the ids into the filenames.
Creating the tree directory structure is harder.
I don't know about DSSSL, but XSL has no built-in
function to create directories. I've heard of
XSL extension functions to do that, but don't
know one personally. 8^)
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com