[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: Chunk filenames
Dan York wrote: > > 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> > > 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.) In that case, you can use second alternative which utilizes dbhtml PI: <chapter id="whatevere_you_want_or_missing"> <title>My chapter</title> <?dbhtml filename="msearch-ch01.html"?> ... </chapter> Now your filenames are not dependant on IDs. ----------------------------------------------------------------- Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC