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] book/chapter/bibliography chunking


You will need to customize the 'match' in this template from chunk-code.xsl:

<xsl:template match="set|book|part|preface|chapter|appendix
                     |article
                     |reference|refentry
                     |book/glossary|article/glossary|part/glossary
                     |book/bibliography|article/bibliography
                     |colophon">
  <xsl:choose>
    <xsl:when test="$onechunk != 0 and parent::*">
      <xsl:apply-imports/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="process-chunk-element"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

That is the template responsible for calling the 'process-chunk-element'
template that actually creates a chunk.  You may also need to look at the
how the section templates generate their 'next' and 'prev' links so they
include your bibliographies.


Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Brendon McKinley" <Brendon.McKinley@anu.edu.au>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, April 15, 2004 7:04 PM
Subject: [docbook-apps] book/chapter/bibliography chunking


Greeting,
In the html/chunk-common.xsl file I've modified <xsl:template name="chunk">
to achieve chunking of bibliographies that appear as children of chapters in
the same manner as sections are chunked. In the docbook stylesheets they
appear at the bottom of the first chapter chunked html file for each
chapter.

This is my modification of <xsl:template name="chunk"> in chunk-common.xsl:

<xsl:when test="name($node)='bibliography'
                and (name($node/parent::*) = 'article'
                  or name($node/parent::*) = 'book'
       added ---> or name($node/parent::*) = 'chapter' )">1</xsl:when>

I get entries in tocs for bio01.html, bio02.html etc but that file is not
being generated. Any pointers as to what other templates need to be modified
to chunk these elements separately?
Thanks in advance.

Brendon McKinley

ANU E Press Project
Division of Information
The Australian National University
R.G Menzies Building (Bldg #2)
Canberra ACT 0200 Australia

To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.






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