OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [docbook-apps] Defining book prefix for chunked output


Setting the base.dir parameter doesn’t appeal to me as a solution.  Semantically it is really for setting the directory into which the chunked files are written. In my situation, I use the e-novative DocBook Environment (eDE), and, in their customization layer, base.dir is used to set the output directory to a particular directory which I rely on.

 

Can base.name be used?

 

Paul Lenson

 


From: Bob Stayton [mailto:bobs@sagehill.net]
Sent: Monday, November 21, 2005 3:33 PM
To: Paul Lenson; docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] Defining book prefix for chunked output

 

This one is easy.  The 'base.dir' parameter is prepended to all filenames, and if you omit its trailing "/", then you get a filename prefix. For example, if you set base.dir to:

 

htmlout/mybook-

 

then the files appear in the htmlout directory with a "mybook-"

prefix on all files.

 

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net

 

 

----- Original Message -----

From: Paul Lenson

Sent: Monday, November 21, 2005 9:39 AM

Subject: [docbook-apps] Defining book prefix for chunked output

 

I need to define a book prefix for all html files generated from the htmlhelp template. I have script a that decompiles chm files into a single directory and merges them into a single chm. These chm files may be built by different application (WebWorks, Doxygen, DocBook). My problem is that chm files  generated by Docbook have html file names that can be the same in some cases. index.html and sections and chapters without id’s (ie. files like ch09s05s07.html which are automatically generated). So when I decompile them into a single directory I get files that have the same names. Is there a way to customize the chunked output to include book or article name?

 

I was looking at chunk.xsl, but I’m not exactly sure how this would work.

chunk.xsl

...

 

  <xsl:variable name="filename">

    <xsl:call-template name="make-relative-filename">

      <xsl:with-param name="base.dir" select="$base.dir"/>

      <xsl:with-param name="base.name" select="$chunkfn"/>

    </xsl:call-template>

  </xsl:variable>

 

Paul Lenson

 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]