Next in thread → Next in month →

RE: [docbook-apps] numbering of book parts

From
Jeff Powanda <>
Date
2007-06-18T17:34:56+00:00
ID
Thread
RE: [docbook-apps] numbering of book parts
Thanks, Bob. The part.autolabel parameter
works as you described. I had been trying to turn the part.autolabel on by
doing this:

 

      <xsl:param name="part.autolabel" select="1" />

 

 

When I should have been doing this:

 

 

      <xsl:param name="part.autolabel" select="'I'"></xsl:param>

 

Once again, thanks for your help.

 

Regards,

Jeff
 Powanda

 

 

From: Bob Stayton
[mailto:] 

Sent: Sunday, June 17, 2007 11:57
AM

To: Jeff
 Powanda; 

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