Next in thread → Next in month →

RE: [docbook] Disappearing orderlist and itemizedlist titles

From
Jeff Powanda <>
Date
2012-03-23T05:30:21+00:00
ID
Thread
RE: [docbook] Disappearing orderlist and itemizedlist titles
Thanks, Bob. I'll do as you suggested and move the title 
outside of the info element for now.

 

Regards,

Jeff

From: Bob Stayton [mailto:] 

Sent: 2012-03-22 12:04
To: Jeff Powanda; 

Subject: Re: [docbook] Disappearing 
orderlist and itemizedlist titles

Hi Jeff,

It appears that the stylesheets have not ever 
supported title in list info elements (formerly blockinfo for lists).  I 
would suggest for now you move the title back outside the info element, where it 
is also allowed, and where it is supported.

 

If you want to keep the titles in info, then add 
this template to your customization.  It will trigger the use of your 
customized template for the title.

 

<xsl:template match="d:orderedlist/d:info | 
d:itemizedlist/d:info">
  <xsl:apply-templates select="d:title" 
mode="list.title.mode"/>
</xsl:template>

 

I think a review is needed of the stylesheet's 
support for title in info elements.  DocBook5 added info to more elements, 
including some where title was not used before.  The stylesheets should at 
least support processing an info/title if it already processed a plain 
title.  

 

Bob Stayton
Sagehill Enterprises


 

 

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

  
From: 
  Jeff 
  Powanda 

  
To:  
  

  
Sent: Wednesday, March 21, 2012 6:20 
  PM

  
Subject: [docbook] Disappearing orderlist 
  and itemizedlist titles

  

  
 

  
After converting to DocBook 5, I noticed that my FOP output 
  no longer has orderedlist or itemizedlist titles, even if I use the DocBook 
  stylesheets. I guess that's because the <title> element is now within an 
  <info> element, which is discarded.

  
 

  
My current template for orderedlist/itemized list titles 
  looks like this:

  
 

  
        <xsl:template match="d:orderedlist/d:title | 
  d:itemizedlist/d:title " 

  
        
                       
  mode="list.title.mode">

  
          <fo:block font-size="10pt" 

  
        
                                    
  font-weight="bold" 
  

  
        
                                    
  font-style="italic"

  
        
                            
  space-before="7pt"       

  
        
                            
  space-after="0pt"

  
        
                            
  keep-with-next.within-column="always" >

  
            <xsl:apply-templates/>

  
          </fo:block>

  
        </xsl:template> 

  
 

  
I've tried changing it to this, with no 
success:

  
 

  
        <xsl:template match="d:orderedlist/d:info/d:title | d:itemizedlist/d:info/d:title " 
  

  
        
                       
  mode="list.title.mode">

  
          <fo:block font-size="10pt" 

  
        
                                    
  font-weight="bold" 
  

  
        
                                    
  font-style="italic"

  
        
                            
  space-before="7pt"       

  
        
                            
  space-after="0pt"

  
        
                            
  keep-with-next.within-column="always" >

  
            <xsl:apply-templates/>

  
          </fo:block>

  
        </xsl:template> 

  
 

  
Thanks in advance for your help.

  
 

  
Regards,

  
Jeff Powanda

  
Vocera Communciations, Inc.
Next in thread → Next in month →