You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding toc.section.depth parameter to all "tocgen" templates and passing it via all invocations of these templates; will allow for more control over toc depth in books that have multiple TOCs (e.g., mini toc and full toc).
<xsl:templatematch="h:section[not(@data-type = 'dedication' or @data-type = 'titlepage' or @data-type = 'toc' or @data-type = 'colophon' or @data-type = 'copyright-page' or @data-type = 'halftitlepage')]|h:div[@data-type='part']"mode="tocgen">
@@ -48,7 +50,9 @@
48
50
<!-- Make sure there are descendants that conform to $toc.section.depth restrictions before generating nested TOC <ol> -->
49
51
<xsl:iftest="descendant::h:section[not(contains(@data-type, 'sect')) or htmlbook:section-depth(.) <= $toc.section.depth]|descendant::h:div[@data-type='part']">
0 commit comments