Hi Bob,

Thank you very much for your pointers.
In the end I used the section mode="label.markup" template with the adjusted 
count expression for both sections and procedures.
Using the original procedure template messed up the numbering of procedures 
nested into sections.

Now everything is working fine :)

Regards,

Robert

On Monday, May 03, 2010 19:51 CEST, "Bob Stayton" <[email protected]> wrote:

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






---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to