[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] How to include sidebars in the table of contents...
I modified my division.toc to include example when setting $node. Still no
results. So I corrected my use of placing an example in sidebar. Instead of
including sidebars in the ToC, I want to include example.
I'm using docbook V4.5CR1, with xsl stylesheets V1.68.1, and outputing to PDF
using fop 0.20.5.
I have limited my toc.section.depth to 1.
With that said, here is a sample of my xml:
<book>
<chapter label="1">
<title>Introduction</title>
<sect1 label="1.1">
<title>Why...</title>
<sect2>
<title>...</title>
<example/>
</sect2>
</sect1>
<sect1 label="1.2">
<title>Who</title>
<example/>
</sect>
...
</chapter>
</book>
This should display as:
1. Introduction
1.1 Why...
Example 1: title
1.2 Who...
Example 2: title
1.3 ...
1.4 ...
Ken Van Mersbergen
Tedras Global Solutions
--- Bob Stayton <bobs@sagehill.net> wrote:
> The list recently discussed how to add qandsets to a TOC, the
> discussion starting here:
>
> http://lists.oasis-open.org/archives/docbook-apps/200601/msg00095.html
>
> and continued here:
> http://lists.oasis-open.org/archives/docbook-apps/200602/msg00077.html
>
> Your problem is similar, it seems. Instead of customizing
> component.toc (used for article), you would want to customize
> division.toc for a book. HTML and FO processing is a bit
> different you will find.
>
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs@sagehill.net
>
>
> ----- Original Message -----
> From: "Ken Van Mersbergen" <kenvm97@yahoo.com>
> To: <docbook-apps@lists.oasis-open.org>
> Sent: Friday, April 07, 2006 4:05 PM
> Subject: [docbook-apps] How to include sidebars in the table of
> contents...
>
>
> >I am automatically generating a ToC and want to include blocks
> >marked with the
> > <sidebar> tag in the table of contents (note that I have my
> > examples tagged as
> > a sidebar with a role of example) so that it appears like this:
> >
> > 1. Introduction
> > 1.1 Why...
> > 1.2 Who...
> > Example 1: title
> > Example 2: title
> > 1.3 ...
> > 1.4 ...
> >
> > Where/how do I override the template to include do this in the
> > Toc? Is this a
> > case where it would be better to manually generate a ToC?
> >
> > Thanks,
> > Ken
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > docbook-apps-unsubscribe@lists.oasis-open.org
> > For additional commands, e-mail:
> > docbook-apps-help@lists.oasis-open.org
> >
> >
> >
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]