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] Position of section toc in JavaHelp

Hello Anup, 

thanks for your help! Concerning the chunking problem I also already thought
of some import trouble. Chunking works fine, as long as I do not have the
<xsl:template match="section"> inside my customization layer. 

Here is my customization, maybe you find the problem. 

Bye and thanks!

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
    <xsl:import href="../docbook-xsl-1.67.2/javahelp/profile-javahelp.xsl"/>
    <!-- chunking and section toc control -->
    <xsl:param name="generate.section.toc.level" select="5"></xsl:param>
    <xsl:param name="chunk.section.depth" select="5"></xsl:param>
    <xsl:param name="chunk.first.sections" select="1"></xsl:param>
    <!-- custom toc position -->
    <xsl:template match="section">
        <xsl:variable name="depth" select="count(ancestor::section)+1"/>
        <div class="{name(.)}">
            <xsl:call-template name="language.attribute"/>
            <xsl:call-template name="section.titlepage"/>
            <xsl:variable name="toc.params">
                <xsl:call-template name="find.path.params">
                    <xsl:with-param name="table"
            <xsl:apply-templates />
            <xsl:if test="contains($toc.params, 'toc')
                and $depth &lt;= $generate.section.toc.level">
                <xsl:call-template name="section.toc">
                    <xsl:with-param name="toc.title.p"
select="contains($toc.params, 'title')"/>            
                <xsl:call-template name="section.toc.separator"/>
            <xsl:call-template name="process.chunk.footnotes"/>


> --- Ursprüngliche Nachricht ---
> Von: Anup Rav <anup.rav@gmail.com>
> An: patrick riffel <versorger@gmx.li>
> Kopie: docbook-apps@lists.oasis-open.org
> Betreff: Re: [docbook-apps] Position of section toc in JavaHelp
> Datum: Wed, 13 Jul 2005 10:24:30 +0530
> Hi Patrick,
> I think the customization you did for section toc to appear at the end
> of section is correct. You need to make sure that you provide the
> correct context also as a parameter to named template that generates
> the section toc, as :
>       <xsl:call-template name="section.toc">
>         <xsl:with-param name="toc.title.p"
> select="contains($toc.params, 'title')"/>
>         <xsl:with-param name="toc-context" select="section"/>
>       </xsl:call-template>
> So your problem reamins now that your chunk is not being generated.
> Can you provide more about the xsl:imports and xsl:include statements
> sequence you are using? Also was chunking working before your section
> customization?
> -- 
> Regards,
> Anup Rav.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++

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