Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8315533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:09:09+00:00 2026-06-08T21:09:09+00:00

I am converting a docbook to an html using 1.77 xsl transformation. But when

  • 0

I am converting a docbook to an html using 1.77 xsl transformation. But when it is transformed it automatically generates a Table of Contents. How do you change this behavior?

I have found this: Disable table of contents for documents

So I am guessing that html xsl transform would be the presentation system?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:09:12+00:00Added an answer on June 8, 2026 at 9:09 pm

    Elaborate DocBook formatting is meant to be customized using an xsl stylesheet.

    See Also

    Writing a DocBOok Customization Layer for Formatting

    Customizing Table Of Contents Using XSL

    customize_formatting.xsl: Example DocBook XSL Customization Layer

    <?xml version="1.0" encoding="UTF-8"?>
    
    <xsl:stylesheet 
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:fo="http://www.w3.org/1999/XSL/Format"
        version="1.0"> <!-- change this to 2.0 if your tools support it -->
        <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
    
        <!--uncomment this to suppress toc when using XSL 1.0 or 2.0
        <xsl:param name="generate.toc">article</xsl:param>
        <xsl:param name="generate.toc">book</xsl:param>
        -->
    
        <!--uncomment this to suppress toc when using XSL 2.0
        <xsl:param name="generate.toc">
            article nop
            book nop
        </xsl:param>
        -->
    
    </xsl:stylesheet>
    

    How to Use customize_formatting.xsl

    Point your tools to use customize_formatting.xsl instead of the off-the-shelf docbook.xsl. Then, put all your formatting customizations in the body of the <xsl:stylesheet> section.

    For TOC suppression, you can just uncomment the appropriate line.

    There is a quirk with some (or maybe all) XSL 1.0 tools that seem to prevent them from handling the whitespace-separated pairs used in the body of <xsl:param name="generate.toc">. I have had success suppressing TOC by just using the single word article or book instead of the proper whitespace separated pairs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Converting a generated html page to pdf using iTextSharp, I cannot get the table
Converting WSDL to C# classes using microsoft net wsdl.exe tool but the tool is
I'm converting pdf to html with help GS 9.04. But in result i'm getting
Im converting some python scripts that uses regex to exract contents from a html
I am converting absolute file-system path to relative path using following code. public static
Converting a C++ string to a char array is pretty straightorward using the c_str
When converting HTML to a PDF document characters such as é or ñ are
When converting PSD's into HTML or even HTML5 and CSS, how much more difficult
converting some CSS to Sass, for example: .ptn, .pvn, .pan{padding-top:0px !important} to this @mixin
Converting from Django, I'm used to doing something like this: {% if not var1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.