[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Lines for simplesect in pdf
Something like the following should
work:
<xsl:attribute-set
name="section.title.properties">
<xsl:attribute name="border-top"> <xsl:choose> <xsl:when test="parent::simplesect">1pt solid black</xsl:when> <xsl:otherwise>0pt none black</xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:attribute name="padding-top"> <xsl:choose> <xsl:when test="parent::simplesect">3pt</xsl:when> <xsl:otherwise>0pt</xsl:otherwise> </xsl:choose> </xsl:attribute> </xsl:attribute-set> The simplesect titles are handled with the same
templates as for sections. The "section.title.properties" attribute-set is
applied to all section levels. In this case, two properties are added
using xsl:choose with the condition testing for the parent of the title
element. The padding is added to provide a little breathing space for the
title.
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]