docbook-apps

Re: [docbook-apps] RE: Indented leader under chapter titles

  • 1.  Re: [docbook-apps] RE: Indented leader under chapter titles

    Posted 07-30-2008 18:56
    Hi Cheri,
    You can add a property to the attribute-set named "component.title.properties" like this:

    <xsl:attribute-set name="component.title.properties">
    <xsl:attribute name="border-bottom">0.5pt solid black</xsl:attribute>
    </xsl:attribute-set>

    It will apply to all component elements, which includes chapter, appendices, indices, bibliographies, etc. If you only want it for chapter, you can make t he value conditional:

    <xsl:attribute-set name="component.title.properties">
    <xsl:attribute name="border-bottom">
    <xsl:choose>
    <xsl:when test="parent::chapter">0.5pt solid black</xsl:attribute>
    <xsl:otherwise>0pt none black</xsl:otherwise>
    </xsl:choose>
    </xsl:attribute>
    </xsl:attribute-set>

    The choose statement is evaluated each time the attribute-set is applied.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net