← Prev in month ← Prev in thread
Next in thread → Next in month →

RE: [docbook-apps] Custom numbering scheme for a DocBook document (legal style stylesheet)

From
"[auritz Keanson"
Date
2010-10-14T15:33:47+00:00
ID
3A47885AD821461C8D2414D1A555C935@D7MZ171J
Thread
RE: [docbook-apps] Custom numbering scheme for a DocBook document (legal style stylesheet)
|  -----Original Message-----
|  From: N廥tor Amigo Cairo 
| 
|  But I am stuck because I cannot change the element xsl:number without
|  having to rewrite a new template from scratch.
|  
|  I would just like to change <xsl:number> element to have the 
|  attribute
|  "level=any" inside a <section> element.

You don't have to write a new template from scratch. You need to copy an
existing template to your customization layer and make a small modification
to it. In DocBook-XSL (and DBLaTeX too) it is the template with
match="section" and mode="label.markup" in common/labels.xsl. You need to
change

 <xsl:number format="{$format}" count="section"/>

to

 <xsl:number format="{$format}" count="section" level="any"/>

Mauritz
← Prev in month ← Prev in thread
Next in thread → Next in month →