Next in thread → Next in month →

Re: [docbook-apps] Position of section toc in JavaHelp

From
"patrick riffel"
Date
2005-07-15T09:20:53+00:00
ID
Thread
Re: [docbook-apps] Position of section toc in JavaHelp
Hi!

Thanks for your help and the link. I managed to rewrite my customization and
now everything works as expected. 

For those who are interested, my changes in brief:

1. Add a new customization layer "jh-docbook.xsl" that imports
html/docbook.xsl. The modified section-template goes here.

2. Copy chunk.xsl to jh-chunk.xsl and import jh-docbook.xsl instead of the
original docbook.xsl. Added parameters to control chunking.

3. Copy profile-javahelp.xsl to my-profile-javahelp.xsl and import
jh-chunk.xsl instead of the original chunk.xsl.

-> chunking still works and the section TOC is at the bottom of the page.

nice weekend
Patrick

> --- Ursprüngliche Nachricht ---
> Von: "Bob Stayton" <>
> An: "patrick riffel" <>,
> <>
> Betreff: Re: [docbook-apps] Position of section toc in JavaHelp
> Datum: Thu, 14 Jul 2005 23:04:03 -0700
> 
> Yes, this is an import problem.  There are two templates that match on
> section.  The first one that is applied is from the chunking stylesheet
> because it has highest import precedence. All it does is start a chunk and
> do apply-imports.  The apply-imports then processes the section with the
> original non-chunking section template from the imported non-chunking
> stylesheet.
> 
> Your current customization is overwriting the section template that does
> the
> chunking.  You need to leave the chunking template alone, and arrange it
> so
> that the apply-imports uses your custom section template to format within
> the chunk.  This doc describes a bit how to do it:
> 
> http://www.sagehill.net/docbookxsl/ChunkingCustomization.html
> 
> Let me know if you can't get it working.
> 
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> 
> 
> 
> ----- Original Message ----- 
> From: "patrick riffel" <>
> To: <>
> Sent: Tuesday, July 12, 2005 1:22 AM
> Subject: [docbook-apps] Position of section toc in JavaHelp
> 
> 
> > Hello all,
> >
> > I could need some help on a customization layer for generating JavaHelp
> from
> > DocBook. The stock stylesheets place the section TOC at the beginning of
> > each section and I´d like to have the TOC at the end of each section.
> >
> > I found out that the TOC is generated in html/sections.xsl in the
> > <xsl:template match="section">. I rearranged the call-templates to suit
> my
> > needs. The problem is: It works fine, if I edit the original
> stylesheets,
> > but as soon as I copy that template to my customization layer, the
> chunking
> > stops working. I suppose there is some import problems but I just
> couldn´t
> > figure it out.
> >
> > Any hints for putting the toc at the end of a section instead of the
> > beginning?
> >
> > Thanks in advance
> > Patrick
> >
> > -- 
> > Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
> > Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: 
> > For additional commands, e-mail: 
> >
> >
> >
> 
> 

-- 
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse f�r Mail, Message, More +++
Next in thread → Next in month →