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: Janning Vygen <vygen at planwerk6 dot de>
- To: Shlomi Fish <shlomif at vipe dot stud dot technion dot ac dot il>
- Cc: DocBook Apps <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 26 Nov 2002 17:20:15 +0100
- Subject: Re: DOCBOOK-APPS: Customizing DocBook to Produce a real URL Tree
- Organization: Planwerk 6 /websolutions
- References: <OFAA6E7B08.F3D86F4F-ON85256C7D.00550602@pok.ibm.com>
Am Dienstag, 26. November 2002 16:38 schrieb Dennis Grace:
> Shlomi Fish asks:
>
> 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]
>
> <snip>
>
> 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)
>
> <<<<<
>
> For the DSSSLs, in your customization layer you need to set:
>
> (define %use-id-as-filename%
> #t)
>
> For XSL, two params do the task you're trying to assign. If you set
>
> <xsl:param name="use.id.as.filename" select="1">
>
> the id attribute will be used for all chunks except the root, which
> will be named index.html. If you would rather set the root filename
> to the id, set
>
> <xsl:param name="root.filename" select="@id">
Thats not what he asked for, everything is still in one directory.
kind regards
janning
-----------------------
PLANWERK 6
websolutions
Herzogstraße 85
40215 Düsseldorf
fon 0211 - 601 606 93
fax 0211 - 601 591 7
vygen@planwerk6.de
http://www.planwerk6.de
-----------------------