This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Chunk filenames


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]