This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: DocBook XSL: <xsl:variable> and <xsl:param>
- To: docbook at lists dot oasis-open dot org
- Subject: Re: DOCBOOK: DocBook XSL: <xsl:variable> and <xsl:param>
- From: Norman Walsh <ndw at nwalsh dot com>
- Date: Thu, 23 Mar 2000 13:56:16 -0500
- References: <p04310102b50003146de9@[192.168.10.23]>
- Reply-To: docbook at lists dot oasis-open dot org
/ Dave Makower <davemak@iclick.com> was heard to say:
| Is there a reason that the boolean $generate.component.toc and
| $generate.division.toc are declared as <xsl:variable> and not
| <xsl:param> in the DocBook XSL -> HTML stylesheets?
If there's a semantic difference between xsl:variable and xsl:param
at the top level, I've forgotten what it is.
| On a related note, why is it that this has an effect...
|
| xt mybook.xml /usr/share/docbook/xsl/html/docbook.xsl section.autolabel=true
|
| ...but the following doesn't?
|
| xt mybook.xml /usr/share/docbook/xsl/html/docbook.xsl generate.component.toc=false
That's a bug on my part. I should have used 0/1 not
true/false. The problem is that a string containing the
characters "false" is converted to the boolean value true
(because the string is non-empty and boolean values have no text
representation).
I think if you set generate.component.toc=0, you'll get the result
you want.
I'll fix that in the next release. (1.10, not 1.9 which will be/is going
up today)
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | A hen is only an egg's way of
http://www.oasis-open.org/docbook/ | making another egg.--Samuel Butler
Chair, DocBook Technical Committee | (II)