[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] EPUB: suppress one chapter from the navigation document -- how?
Hi Robert, The
epub3 stylesheet imports the xhtml5 stylesheet which uses the
xhtml stylesheet as its base. The templates in
xhtml/autotoc.xsl generate that viewable table of contents nav
document. The template named 'toc.line' is called just after the <li> element, so it could be used to generate the hidden="" on the <li> element if you output the attribute immediately in toc.line before any other output. So change that template to start like this: <xsl:template name="toc.line">  <xsl:call-template name="custom.toc.attributes"/> And then create a custom template named 'custom.toc.attribute' to generate the hidden attribute: <xsl:template name="custom.toc.attributes"> The context of toc.line is the current docbook element being
processed (such as section), so you can match on its xml:id or
some other attribute like role. Bob Stayton Sagehill Enterprises bobs@sagehill.net On 10/31/2018 9:10 PM, Robert Nagle
wrote:
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]