This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] XSL: No toc for qandaset
- From: Grant McLean <grant at mclean dot net dot nz>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Sun, 03 Aug 2003 21:58:14 +1200
- Subject: [docbook-apps] XSL: No toc for qandaset
I'm having trouble getting the DocBook XSL stylesheets to generate
a table of contents for my FAQ document. It all used to work, but
I have rebuilt my machine since then and upgraded to the latest
stylesheets.
My driver file includes the following parameter definitions:
<xsl:param name="generate.toc">
qandaset toc
qandadiv nop
</xsl:param>
<xsl:param name="generate.section.toc.level" select="3"></xsl:param>
Which did previously give me the desired multi-level TOC at the
start of the document and no TOC in each section. But now when
I generate the HTML, I get nothing where the table of contents
ought to be. It used to work with version 1.51 of the stylesheets.
I have poked around in qandaset.xsl and found this section:
<xsl:if test="contains($toc.params, 'toc') and $toc = '1'">
<xsl:call-template name="process.qanda.toc"/>
</xsl:if>
If I remove the xsl:if and make it this:
<p>$toc.params: '<xsl:value-of select="$toc.params"/>'</p>
<p>$toc: '<xsl:value-of select="$toc"/>'</p>
<xsl:call-template name="process.qanda.toc"/>
then I do get an appropriately formatted TOC preceded by this:
<p>$toc.params: 'toc'</p>
<p>$toc: ''</p>
I tried to trace back to determine why $toc was empty but quickly got out
of my depth. Is it possible this is a bug in the stylesheets or am I
doing something wrong?
The full document and driver file are in CVS here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/perl-xml/perl-xml-faq/
Regards
Grant
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org