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] Formatting <variablelist>


Thank you very much Bob.
 
Regards,
 
Pedro


De: Bob Stayton [mailto:bobs@sagehill.net]
Enviado el: miťrcoles, 19 de diciembre de 2007 20:36
Para: Pedro Pastor; docbook-apps@lists.oasis-open.org
CC: pps@ua.es
Asunto: Re: [docbook-apps] Formatting <variablelist>

Hi,
The term element is handled by a simple template, but it doesn't have an attribute-set of its own.  You can customize this template from fo/lists.xsl to do whatever you like:
 
<xsl:template match="varlistentry/term">
  <fo:inline>
    <xsl:call-template name="simple.xlink">
      <xsl:with-param name="content">
        <xsl:apply-templates/>
      </xsl:with-param>
    </xsl:call-template>
  </fo:inline>
  <xsl:choose>
    <xsl:when test="not(following-sibling::term)"/> <!-- do nothing -->
    <xsl:otherwise>
      <!-- * if we have multiple terms in the same varlistentry, generate -->
      <!-- * a separator (", " by default) and/or an additional line -->
      <!-- * break after each one except the last -->
      <fo:inline><xsl:value-of select="$variablelist.term.separator"/></fo:inline>
      <xsl:if test="not($variablelist.term.break.after = '0')">
        <fo:block/>
      </xsl:if>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
 
 
----- Original Message -----
Sent: Wednesday, December 19, 2007 12:07 AM
Subject: [docbook-apps] Formatting <variablelist>

Hello,
 
I'm customizing the format of the <variablelist> block for PDF output, but I didn't manage to change the style of the <term> child element.
 
Could anybody provide with me some hints on how to do that, or any code example?
 
Any help would be appreciated.
 
Regards,
 
Pedro

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.4/1189 - Release Date: 18/12/2007 21:40


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.4/1189 - Release Date: 18/12/2007 21:40


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.4/1189 - Release Date: 18/12/2007 21:40



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