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] | [Elist Home]


Subject: RE: DOCBOOK-APPS: Re: Suppressing article toc with generate.toc doesn't work


Sorry.  I was thinking of the HTML templates.  The HTML templates for 1.48
had a generate.article.toc parameter, the FO templates apparently only have
generate.component.toc, which applies to (at least) chapter, article, and
appendix.  Replacing 'generate.article.toc' with 'generate.component.toc' in
your customization layer will turn off the TOC in your article.

Again, sorry for not having double-checked the documentation before posting.
Sometimes I feel like I know everything.  Unfortunately, I don't.

Jeff Beal

-----Original Message-----
From: Steinar Bang [mailto:sb@dod.no]
Sent: Thursday, January 23, 2003 7:47 AM
To: docbook-apps@lists.oasis-open.org
Subject: DOCBOOK-APPS: Re: Suppressing article toc with generate.toc
doesn't work


>>>>> 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?


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


Powered by eList eXpress LLC