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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Empty TOC when using <bridgehead>


You are right, it is not the version, it is something else
in your setup or file.  When I processed the XML that you
included in your mail with either 1.52.2 or 1.57.0
html/chunk.xsl using saxon 6.5.2, with
chunk.first.sections=1 and bridgehead.in.toc=0, I get this
for the chapter chunk (I changed the titles so I could
differentiate them):

  Chapter 1. chapter test
  Table of Contents

  section test

And this for the section chunk:

  section test  [title]
  bridge 1
  ...
  
  bridge 2


When I process it with chunk.first.sections=0, I get:

Chapter 1. chapter test
Table of Contents
section test

section test  [title]
bridge 1
...

bridge 2
...

I get no empty "Table of Contents".
I can't explain your results.


Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com

On Fri, Nov 15, 2002 at 10:28:47PM +0100, Kraa de Simon wrote:
> Are you sure?
> 
> I tried 1.57.0 I still get an empty TOC (OK) with the heading "Table of
> Contents" (NOK!)
> 
> From the release notes:
> 
> 1.56.0
> 
> "The bridgehead.in.toc parameter is now properly supported"
> 
> If I set bridgehead.in.toc to 1 I do get the bridgeheads in the TOC. So this
> works...
> 
> Simon.
> 
> -----Original Message-----
> From: Bob Stayton [mailto:bobs@caldera.com]
> Sent: vrijdag 15 november 2002 18:32
> To: Kraa de Simon; docbook-apps@lists.oasis-open.org
> Subject: Re: DOCBOOK-APPS: Empty TOC when using <bridgehead>
> 
> 
> On Thu, Nov 14, 2002 at 02:52:29PM +0100, Kraa de Simon wrote:
> > Hello again,
> > 
> > Using docbook-xml-4.2, docbook-xsl-1.52.2\html\chunk.xsl, saxon-6.5.2.
> > 
> > When I process the following input using html\chunk.xsl I get an empty TOC
> > in the output which is probably caused by the bridgeheads.
> > 
> > Is this a problem in the stylesheet? (I really, really HAVE to learn XSL
> > myself...sigh...)
> > 
> > Input:
> > 
> > <?xml version="1.0"?>
> > <!DOCTYPE book SYSTEM
> > "file://hol01sthira/utils/docbook-xml-4.2/docbookx.dtd">
> > <book> 
> >   <chapter> 
> > 	 <title>test</title> 
> > 	 <section> 
> > 		<title>test</title> 
> > 		<bridgehead>bridge 1</bridgehead> 
> > 		<para>...</para> 
> > 		<bridgehead>bridge 2</bridgehead> 
> > 		<para>...</para> 
> > 	 </section> 
> >   </chapter> 
> > </book>
> > 
> > The output looks something like:
> > 
> > test
> > 
> > Table of Contents
> > 
> > bridge 1
> > 
> > ...
> > 
> > bridge 2
> > 
> > ...
> 
> Time to upgrade your stylesheets.  This is working
> properly in version docbook-xsl-1.57.0.
> 
> -- 
> 
> Bob Stayton                                 400 Encinal Street
> Publications Architect                      Santa Cruz, CA  95060
> Technical Publications                      voice: (831) 427-7796
> The SCO Group                               fax:   (831) 429-1887
>                                             email: bobs@sco.com

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com


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