This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] book/chapter/bibliography chunking
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Brendon McKinley" <Brendon dot McKinley at anu dot edu dot au>, <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 15 Apr 2004 22:31:35 -0700
- Subject: Re: [docbook-apps] book/chapter/bibliography chunking
- References: <6EBCA2135886B74E9B13FDDD6A926FF6019DBC4D@CASEVS01.cas.anu.edu.au>
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/.
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.