Re: [docbook-apps] numbering of book parts

From
"Cob Rtayton"
Date
2007-06-17T18:57:26+00:00
ID
1b4c01c7b111$4dc1dee0$6400a8c0@totoro
Thread
Re: [docbook-apps] numbering of book parts
Hmm, it looks like the mode="division.number" has 
been obsoleted. It is defined, but never used by the stylesheets.

 

It is now implemented with parameters. The 
part.autolabel controls it, and its value can define the number format as 
well.  

See:

 

http://docbook.sourceforge.net/release/xsl/current/doc/fo/part.autolabel.html

 

If you are getting "1", then perhaps you set the 
parameter to that value to turn on part numbering?

 

Bob Stayton
Sagehill Enterprises
DocBook Consulting


 

 

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

  
From: 
  Jeff 
  Powanda 

  
To:  
  

  
Sent: Friday, June 15, 2007 12:16 
PM

  
Subject: [docbook-apps] numbering of book 
  parts

  

  

  
I’d like to use uppercase roman 
  numerals for part numbers, which should be the default, but instead DocBook is 
  using arabic numerals. Is this a defect in the stylesheet? It looks like 
  fo\division.xsl correctly specifies a roman numeral for part numbers, but it’s 
  not working:

  
 

  
<xsl:template 
  match="part" 
  mode="division.number">

  
  
  <xsl:number 
  from="book" 
  count="part" 
  format="I."/>

  
</xsl:template>

  
 

  
Toolchain:

  
DocBook XSL 
  1.7.2.0

  
Saxon 6.5.3

  
FOP 0.93

  
 

  
Regards,

  
Jeff Powanda