OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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
bobs@sagehill.net


----- Original Message ----- 
From: David White
To: docbook-apps@lists.oasis-open.org
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




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]