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

Thanks Bob,

That worked perfectly,  I have one last xref issue remaining.  

I have a xref that looks like this: 
<emphasis role="italic">See <xref xrefstyle="select: title"
linkend="i557602"/> on page <xref xrefstyle="select:  pagenumber"

Its supposed to output like this: See Alternator on page 4-1  (note the
chapter - pagenumber format).

But it outputs like: See Alternator on page 38 

Any suggestions?

David White

-----Original Message-----
From: Bob Stayton [mailto:bobs@sagehill.net] 
Sent: Wednesday, February 01, 2006 11:05 AM
To: David White; docbook-apps@lists.oasis-open.org
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

----- 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?


David White

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