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] | [List Home]


Subject: Problems generating well formatted TOC (2)


Hi,

 

Meanwhile I have realized why there is a larger indent.

It is caused by a line break in the XML-file between title- and phrase-tag, which look like this:

<chapter>

  <title>

     <phrase condition="x">Product X</phrase>

     <phrase condition="y">Product Y</phrase>

     <phrase condition="z">Product Z</phrase>

</title>

  <section>…………… etc

 

If I delete the line breaks…

<chapter>

  <title><phrase condition="x">Product X</phrase><phrase condition="y">Product Y</phrase><phrase condition="z">Product Z</phrase></title>

  <section>…………….etc

…the TOC in the output looks perfect!

 

Now my question:

Is this defect probably caused by the XML-Editor I’m using (Syntext Serna) or by the docbook stylesheet file?

I think line breaks in the source code should be ignored…

 

 

Thank you,

 

Isabel

 

 


Von: Isabel Hofherr [mailto:isabel.hofherr@lci-software.com]
Gesendet: Montag, 28.
Januar 2008 13:25
An: docbook-apps@lists.oasis-open.org
Betreff: [docbook-apps] problems generating well formatted TOC

 

Hi ,

 

There are several identical documentations only differing by chapter titles or section titles.

What I did is inserting in the title tag of the chapter (resp. section) different phrases (with the according title) controlled by conditions.

All worked well, that means the output files look good. But the only exception is the TOC.

There is a larger indent of the page numbers just exactly on the titles controlled by the phrases. It looks something like this:

Training ...................................................................................................... 1

New Features ........................................................................................... 1

XXX .......................................................................................................... 1

XXX .......................................................................................................... 1

XXX .......................................................................................................... 2

XXX .......................................................................................................... 3

 

Does anybody have an idea how to avoid this indent?

Thanks!

 

Isabel Hofherr



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