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
Just to clarify: Are you referring to the XHTML TOC or the NCX TOC?
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?
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.
dtb:depth isn't required for EPUB, so it should probably be removed. See the example here: http://www.idpf.org/doc_library/epub/OPF_2.0_latest.htm#Section2.4.1.2
This is currently stalled on http://code.google.com/p/epubcheck/issues/detail?id=70
See my fix in bug #3071896
Thanks.