This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Suppressing article toc with generate.toc doesn'twork


>>>>> Norman Walsh <ndw@nwalsh.com>:

> / Steinar Bang <sb@dod.no> was heard to say:

>> No generate.article.toc, unfortunately.  Perhaps I'm using a
>> version of DocBook XSL that's too old to have this parameter, as
>> well?

> Perhaps. Look in component.xsl, find the template for article, and
> see if it calls *.toc anywhere.

There is the following call to *.toc inside <xsl:template match="article">:

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

Is "component" replaced with "article", and does this mean that it
is actually looking for "generate.article.toc", and testing if it is
non-zero? 

Then why doesn't it work, I wonder...? Hm...

Here's the setting in my local-fo.xml:
  <xsl:param name="generate.article.toc" select="0" />

Is there a misspelling in there somewhere?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]