Menu

#1116 epub: toc.section.depth parameter ignored

output: ePub
open
XSL (1066)
5
2014-06-22
2010-08-12
No

epub outputs include every section in the table of contents regardless of the
toc.section.depth XSL Stylesheets parameter
(http://docbook.sourceforge.net/release/xsl/current/doc/html/toc.section.depth.html).
This behavior is specific to epub (xhtml and fo outputs honor
toc.section.depth).

Environment: DocBook XSL 1.75.2; Xubuntu 10.04

Discussion

  • Keith Fahlgren

    Keith Fahlgren - 2010-08-12
    • labels: 1168228 --> XSL
     
  • Keith Fahlgren

    Keith Fahlgren - 2010-08-12

    Just to clarify: Are you referring to the XHTML TOC or the NCX TOC?

     
  • Stuart Rackham

    Stuart Rackham - 2010-08-12

    I'm referring to the toc.ncx NCX file (there is no XHTML toc in the EPUB container).

    Also epub/docbook.xsl has written a hard-coded illegal dtb:depth value of -1
    into the toc.ncx navigation control file:

    <ncx:meta name="dtb:depth" content="-1"/>

    Shouldn't it be a positive integer equal to the depth navPoint nesting in the
    navMap element (see
    http://www.niso.org/workrooms/daisy/Z39-86-2005.html#NavMeta\)? Though epubcheck 1.05 doesn't flag it as invalid -- are they both wrong?

     
  • Joe Guetler

    Joe Guetler - 2010-09-01

    I ran into this exact problem while trying to tinkering and learning Docbook markup and XSL. I think I came up with a solution, but I haven't really tested it in depth. Also, being fairly new to XSL in general, I have no idea if my solution is even the best way to go about it, but it seems to work well enough. I'd be more than happy to post my changes if someone would kindly direct me to the proper way of doing it.

     
  • Oliver K. Smith

    Oliver K. Smith - 2010-09-23

    See my fix in bug #3071896

    Thanks.

     
MongoDB Logo MongoDB