This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Chunk filenames
- To: Dmitry Tkatchenko <dim at mnogosearch dot org>
- Subject: Re: DOCBOOK-APPS: Chunk filenames
- From: Dan York <dyork at e-smith dot com>
- Date: Fri, 05 Oct 2001 10:32:12 -0400
- Cc: docbook-apps at lists dot oasis-open dot org
- List-Id: <docbook-apps.lists.oasis-open.org>
- Organization: Mitel Networks Corporation
- References: <13028203013.20011005181649@mnogosearch.org>
Dmitry,
> How can I change chunk names of html files generated by Saxon using XSL DocBook
> Stylesheet? I need msearch-ch01.html instead of ch01.html, etc...
You can set a parameter to use the id attribute as the filename.
In your customization layer, add this line:
<xsl:param name="use.id.as.filename" select="1"/>
Then make sure that each <chapter> and <sect1> tag include an id
attribute (since those are the ones that will be chunked):
<chapter id="msearch-ch01">
<title>My chapter</title>
<para>
</para>
<sect1 id="msearch-ch01-s1">
<title></title>
<para>
</para>
</sect1>
<sect1 id="msearch-ch01-s2">
<title></title>
<para>
</para>
</sect1>
</chapter>
<chapter id="msearch-ch02">
<title></title>
<para>
</para>
</chapter>
In most of my docs, my preference is to NOT put the 'ch01' in there...
I use ids that are related to whatever is in the chapter, but that
is mostly a matter of personal style. (And the fact that if I rearrange
sections I do not want to go back through and manually change id strings.)
That works for me,
Dan
--
Dan York, Director of Training, Network Server Solutions Group
Mitel Networks Corporation dan_york@mitel.com
Ph: +1-613-751-4401 Cell: +1-613-263-4312 Fax: +1-613-564-7739
150 Metcalfe Street, Suite 1500, Ottawa,ON K2P 1P1 Canada
http://www.e-smith.com/ http://www.mitel.com/sme/
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>