Hi Jeff,
I think if you change that to xsl:import instead of xsl:include and place it 
first, then it should work.

Your current stylesheet generates an error in Saxon about a duplicate variable 
declaration.  By using xsl:include, the stock DocBook xsl:param elements are at 
the same import level as your param, which means it is a duplicate.   xsltproc 
does not report such errors.

Bob Stayton
Sagehill Enterprises
[email protected]


  ----- Original Message ----- 
  From: Jeff Rancier 
  To: [email protected] 
  Sent: Friday, July 15, 2011 8:40 PM
  Subject: [docbook-apps] Can't disable TOC in book


  I have a simple book which contains nothing but a glossary, but I can't seem 
to disable the TOC.  Here's the small XSL:

  <?xml version='1.0'?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version='1.0'>
      <xsl:output method="html"/>
      <xsl:param name="generate.toc">
        /book nop
      </xsl:param>
      <xsl:include 
href="file:///c:/home/jbrancier/pkg/emacs-21.3/site-lisp/xae-1.0beta7/doctypes/docbook/styles/docbook/html/docbook.xsl"/>
    </xsl:stylesheet>

  Can anyone tell me what I'm missing?  TIA (oh, and I did move the 'include' 
before the customization as well, with the same results)
  Jeff

Reply via email to