docbook-apps

Re: [docbook-apps] customizing section titles

  • 1.  Re: [docbook-apps] customizing section titles

    Posted 05-09-2011 16:20
    Hi,
    In the HTML stylesheet, he 'section' parameter is set in the template named
    'section.title' in html/sections.xsl, where the context node is the section's title
    element. It computes the section parent using this variable:

    <xsl:variable name="section" select="(ancestor::section
    |ancestor::simplesect
    |ancestor::sect1
    |ancestor::sect2
    |ancestor::sect3
    |ancestor::sect4
    |ancestor::sect5)[last()]"/>

    The 'section.heading' template in fo/sections.xsl also has the section title as the
    context element, so you could copy the same selection in your customization to
    establish the section variable there.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net