OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: Re: DOCBOOK-APPS: Modify toc.section.depth through custom driver (XSL)

> From: Jeff McKenna <mckenna@dmsolutions.ca>
> I am a beginner at this, so I apologize for this common question (yes I
> have went through the archives).  I want to modify the depth of the toc
> through a custom driver (I could change param.xsl manually I realize,
> but for my application a custom driver is much more flexible).  The
> following is a snippet of my custom driver:
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
> ...
> <xsl:variable name="toc.section.depth">3</xsl:variable>
> ...
> </xsl:stylesheet>
> When I use this I get the error: "Duplicate Global Variable
> Declaration".  How can I modify the depth then????  The archives
> mentioned the line above (<xsl:variable
> name="toc.section.depth">3</xsl:variable>) but it doesn't seem to work.
> Any help on this is much appreciated.  Thanks for your time.

This technique is certainly known to work, so I'm
wondering what's in the "..." in your example?
The first "..." should be:
   <xsl:import href="docbook.xsl"/>
and not:
   <xsl:include href="docbook.xsl"/>.

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
Caldera International, Inc.                 fax:   (831) 429-1887
                                            email: bobs@caldera.com

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC