Hi,
If numbering is the only problem, then fixing mode="label.markup" should fix it. The
number for an element is generated by applying templates to the element in
mode="label.markup". These templates are in common/labels.xsl. You will need to
customize the templates in that mode that match on section and procedure.
For section, it counts using:
<xsl:number format="{$format}" count="section"/>
You could change this to count="section|procedure"
Something similar for procedure template.
Bob Stayton
Sagehill Enterprises
[email protected]
----- Original Message -----
From: "Fekete Róbert" <[email protected]>
To: "docbook-apps" <[email protected]>
Sent: Sunday, May 02, 2010 11:05 AM
Subject: [docbook-apps] Number sections and procedures continuously
Hi,
Is there a reasonable way of treating sections and procedures as equivalent and
number them continuously? Right now my docs have a bunch of sections that are just
wrappers for procedures. I managed to get the procedures listed in the Toc, but the
numbering is awkward, now it looks like:
2.1 Section a
2.2 Section b
2.1 Procedure c (This should be 2.3)
2.3 Section d
...
And so on. I guess I should connect the section and procedure templates from
labels.xsl, but I have no idea how to do it properly.
Has anyone done anything similar?
Regards,
Robert
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]