OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[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:when test="parent::simplesect">1pt solid black</xsl:when>
      <xsl:otherwise>0pt none black</xsl:otherwise>
  <xsl:attribute name="padding-top">
      <xsl:when test="parent::simplesect">3pt</xsl:when>
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.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
----- Original Message -----
Sent: Monday, September 17, 2007 10:10 AM
Subject: [docbook-apps] Lines for simplesect in pdf

Is there are quick way to add a line (in PDF) before each simplesect?
Eric J.

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]