[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Number sections and procedures continuously
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" <bobs@sagehill.net> 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 > bobs@sagehill.net > > > ----- Original Message ----- > From: "Fekete RĂ³bert" <frobert@balabit.com> > To: "docbook-apps" <docbook-apps@lists.oasis-open.org> > 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: docbook-apps-unsubscribe@lists.oasis-open.org > > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]