Next in thread → Next in month →

RE: [docbook-apps] Formatting <variablelist>

From
"Oedro Oastor"
Date
2007-12-19T20:01:38+00:00
ID
Thread
RE: [docbook-apps] Formatting <variablelist>
Thank 
you very much Bob.

 

Regards,

 

Pedro

De: Bob Stayton [mailto:] 

Enviado el: mi廨coles, 19 de diciembre de 2007 20:36
Para: 
Pedro Pastor; 
CC: 

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


 

 

  
----- Original Message ----- 

  
From: 
  Pedro Pastor 

  
To:  
  

  
Cc:  

  
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
Next in thread → Next in month →