Next in thread → Next in month →

Re: [docbook-apps] Can't disable TOC in book

From
Bob Stayton <>
Date
2011-07-17T16:53:43+00:00
ID
006001cc44a2$110e1cb0$6600a8c0@pazu
Thread
Re: [docbook-apps] Can't disable TOC in book
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


 

 

  
----- Original Message ----- 

  
From: 
  Jeff 
  Rancier 

  
To:  
  

  
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
Next in thread → Next in month →