docbook-apps

  • 1.  epub: can you suppress html TOC?

    Posted 05-03-2011 13:50
    Here's one thing I noticed.

    When I run the epub xsl, it creates an HTML TOC regardless of whether
    you have a
    <xsl:param name="generate.toc"> </xsl> statement.

    When I commented out that parameter, the html TOC still appears.

    Is there any special trick to suppressing the TOC?

    Note: in epubs, you don't need an HTML TOC because the ereading device
    usually detects the TOC from the toc.ncx . It's not a huge problem to
    have the epub start with an actual toc.html (and it's required in
    Kindle), but it just gets in the way when you're reading an epub in
    Adobe Digital Editions or the ipad. It's just 2 or 3 pages you don't
    actually need.

    Any ideas about how to do this? Thanks.

    (V1.76.1 version, vanilla xsl)

    rj

    Robert Nagle
    6121 Winsome Ln #56C, Houston TX 77057-5573
    (H) 713 893 3424/ (W) 832-251-7522 Carbon Neutral Since Jan 2010
    http://www.robertnagle.info



  • 2.  Re: [docbook-apps] epub: can you suppress html TOC?

    Posted 05-03-2011 15:41
    Try <xsl:param name="generate.toc" select="''"/>



  • 3.  Re: [docbook-apps] epub: can you suppress html TOC?

    Posted 05-04-2011 16:53
    I am happy to report that doing this suppresses the TOC.

    But I don't understand the syntax or what's happening here.

    Why the empty single quotes inside the double quotes? What does that do?

    Thanks.

    Robert

    On Tue, May 3, 2011 at 10:40 AM, Keith Fahlgren <abdelazer@gmail.com> wrote:
    > Try <xsl:param name="generate.toc" select="''"/>
    >



    --
    Robert Nagle
    6121 Winsome Ln #56C, Houston TX 77057-5573
    (H) 713 893 3424/ (W) 832-251-7522 Carbon Neutral Since Jan 2010
    http://www.robertnagle.info



  • 4.  Re: [docbook-apps] epub: can you suppress html TOC?

    Posted 05-04-2011 17:20
    Hi,

    On Wed, May 4, 2011 at 9:53 AM, Robert Nagle <idiotprogrammer@gmail.com> wrote:
    > But I don't understand the syntax or what's happening here.
    >
    > Why the empty single quotes inside the double quotes? What does that do?

    It's just one way of unambiguously selecting an empty string value.
    This should also have worked:

    <xsl:param name="generate.toc"></xsl:param>

    The syntax for generate.toc is fairly tricky
    (http://www.sagehill.net/docbookxsl/TOCcontrol.html). You could
    probably use
    'nop' effectively too if you wanted to experiment.


    Keith