#52 generate.component.toc problem in 1.49

closed-out-of-date
nobody
XSL (122)
5
2002-07-04
2002-03-01
Mike Duigou
No

using xalan ( 2.2.0 or 2.3.1) the
generate.component.toc parameter is being ignored when
used with fo. The following patch corrects this problem.

Mike

diff -u -b docbook-xsl-1.49/fo/component.xsl
docbook-xsl-1.49-mod/fo/component.xsl
--- docbook-xsl-1.49/fo/component.xsl Mon Feb 11 04:23:08 2002
+++ docbook-xsl-1.49-mod/fo/component.xsl Fri Mar 1 11:33:11 2002
@@ -177,7 +177,7 @@
<fo:flow flow-name="xsl-region-body">
<xsl:call-template name="component.separator"/>
<xsl:call-template name="preface.titlepage"/>
- <xsl:if test="$generate.component.toc">
+ <xsl:if test="$generate.component.toc != 0">
<xsl:call-template name="component.toc"/>
</xsl:if>
<xsl:apply-templates/>
@@ -224,7 +224,7 @@
<fo:flow flow-name="xsl-region-body">
<xsl:call-template name="component.separator"/>
<xsl:call-template name="chapter.titlepage"/>
- <xsl:if test="$generate.component.toc">
+ <xsl:if test="$generate.component.toc != 0">
<xsl:call-template name="component.toc"/>
</xsl:if>
<xsl:apply-templates/>
@@ -265,7 +265,7 @@
<fo:flow flow-name="xsl-region-body">
<xsl:call-template name="component.separator"/>
<xsl:call-template name="appendix.titlepage"/>
- <xsl:if test="$generate.component.toc">
+ <xsl:if test="$generate.component.toc != 0">
<xsl:call-template name="component.toc"/>
</xsl:if>
<xsl:apply-templates/>
@@ -373,7 +373,7 @@

<fo:flow flow-name="xsl-region-body">
<xsl:call-template name="article.titlepage"/>
- <xsl:if test="$generate.component.toc">
+ <xsl:if test="$generate.component.toc != 0">
<xsl:call-template name="component.toc"/>
</xsl:if>
<xsl:apply-templates/>

Discussion

  • Norman Walsh
    Norman Walsh
    2002-07-04

    • status: open --> closed-out-of-date
     
  • Norman Walsh
    Norman Walsh
    2002-07-04

    Logged In: YES
    user_id=81663

    No longer relevant, I think, since I reorganized the toc
    parameter.

    But please report it as a bug if you still have trouble.