List Info

Thread: numbering of book parts




numbering of book parts
user name
2007-06-15 14:16:16

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 fodivision.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.&quot;/>

</xsl:template>

 

Toolchain:

DocBook XSL 1.7.2.0

Saxon 6.5.3

FOP 0.93

 

Regards,

Jeff Powanda

 

 

Re: numbering of book parts
user name
2007-06-17 13:57:07
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.&nbsp;
See:
 
 
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
sagehill.net">bobssagehill.net
&nbsp;
 ;
----- Original Message -----
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 fodivision.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

 

 

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )