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


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

Re: DocBook XSL: <xsl:variable> and <xsl:param>


/ 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)


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