Re: [docbook-apps] Customizing Figure Titles

From
Bob Stayton <>
Date
2006-02-01T17:05:04+00:00
ID
00b601c62751$a1d7b360$6400a8c0@toshiro
Thread
Re: [docbook-apps] Customizing Figure Titles
Hi David,
Actually, the form "Figure 4.1" is the default for the DocBook XSL
stylesheets when chapter.autolabel is not zero.  If you have numbered
chapters, it is possible that your customization is changing the default
figure label.

You can swap a dash for the period by customizing the template in
mode="intralabel.punctuation" in common/labels.xsl.

Bob Stayton
Sagehill Enterprises
DocBook Consulting



----- Original Message ----- 
From: David White
To: 
Sent: Monday, January 30, 2006 3:12 PM
Subject: [docbook-apps] Customizing Figure Titles


Hello all,

Any suggestions on how to go about customizing the standard <figure> element
titles in XSLT?

Current when you render docbook with <figure> you get formatting that looks
like: Figure 1

I'm looking to bring in the <xsl:number from="book" count="chapter"
format="1"/> tag so that it outputs like this: Figure 4-1

The 4 being the chapter number.

Any suggestions on what template needs the modification?


Thanks

David White