OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] productionset counter issue

Hi Robert,
The stylesheet seems to be hard coded with continuous numbering throughout the document.  The template that handles production (in fo/ebnf.xsl) uses this xsl:number instruction:
<xsl:template match="production">
  <xsl:number count="production" level="any"/>
To change that behavior, you would need to copy that template to a customization layer and change the xsl:number element to reset at whatever boundary you want by adding a "from" attribute:
<xsl:number count="production" level="any" from="chapter|article|appendix"/>
This element is a bit of an exception in the stylesheets.  Most numbered items are numbered using a template with mode="label.markup".  Using a mode enables the number to be reused in more than one place, as for a table of contents or cross reference.  I'm going to file that as a bug so it can get fixed for a future release.
Bob Stayton
Sagehill Enterprises
----- Original Message -----
From: robert
Sent: Monday, December 19, 2011 8:20 AM
Subject: [docbook-apps] productionset counter issue


I have a book that contains several articles. There are two
productionset elements within the book, each one in a different
article. One contains 10 production elements, second 47 elements. I
use DocbookXSL 1.75.0, XHTML output.
Now, the problem is that for the first set, the counter starts from 1
and goes to 10, and for the second set the counter starts form 11. I
would expect that the counter resets, i.e. starts from 1, for each
productionset. Is this expected behaviour? Is there a way to control


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]