Re: [docbook-apps] Outline numbering for HTML output

From
Bob Stayton <>
Date
2013-07-25T16:26:15+00:00
ID
27474F515D744E13AF529378996AD77A@totoro
Thread
Re: [docbook-apps] Outline numbering for HTML output
Hi Jeff,

This would require a customization of this 
template:

 

<xsl:template match="section" 
mode="label.markup">

 

from common/labels.xsl to take into account the section 
level.  You can use the existing utility template named 
"section.level" that returns an integer value for the section 
level.

 

If you customize that template, then those numbers will be 
used everywhere, including the TOC and xrefs.

 

Bob Stayton
Sagehill Enterprises


From: Jeff Powanda 

Sent: Thursday, July 25, 2013 9:11 AM

To: docbook-apps 

Cc: TechPubs 

Subject: [docbook-apps] Outline numbering for HTML 
output

I?m trying to output HTML release notes using outline 
numbering for sections, using the following hierarchy:

 

I (uppercase Roman numerals)

                
A (uppercase letters)

                                
1 (numerals)

                                                
a (lowercase letters)

 

This doesn?t seem possible using section.autolabel property, 
which lets you specify only one label value. Is there a simple out-of-the-box 
way to do this? Or do I need to implement custom section numbering in my 
customization layer?

 

Regards,

Jeff 
Powanda 
Staff Technical 
Writer
O: 408-882-5100
M: 
831-252-2258