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: DOCBOOK-APPS: Re: xsl and toc deepness

> / Gabor Hojtsy <gabor@hojtsy.hu> was heard to say:
> | Both the major TOC, and all section TOCs (like the toc
> | for <part>s in the PHP manual are infinite deep - seems
> | like it's treated as a boolean switch

> Can you send a small(ish) sample that demonstrates the problem?

Yes, of course, just I needed some free time, as this is not a company
project you know ;)

So the XML file:

<?xml version='1.0' encoding='ISO-8859-1' ?>
 <title>TOC test</title>
  <title>First part</title>
   <title>First chapter</title>
   <para>Some text</para>
    <title>Deep section</title>
    <para>Section text</para>

The XSL file:

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
 <xsl:import href="file:///d:/phpcvs/phpdoc-tools/xsl/html/chunk.xsl"/>

 <xsl:param name="toc.section.depth">1</xsl:param>

Applying this style sheet on the above XML file results in a toc with

I. First part
 1. First chapter
      Deep section

displayed in the main toc. This is not correct as I have parameterized
it above to display one TOC level, so it should only be

I. First part

and nothing more...

Hope this clears up what's my problem, and so we can
find a good way to solve it.


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

Powered by eList eXpress LLC