[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Qanda: HTML: Not renumber on qandadiv
Hi,As with most numbers generated by DocBook XSL, the stylesheet uses mode="label.markup" for questions and answers.� This template from common/labels.xsl would need to be customized:�<xsl:template match="question|answer" mode="label.markup">�The xsl:choose in that template handles the various labeling options that are available for qandasets.� I think the last xsl:when handles plain numbering, using xsl:number.� Change the attributes on xsl:number to add a "from" attribute.���----- Original Message -----From: David LinkSent: Thursday, March 31, 2011 11:58 AMSubject: [docbook-apps] Qanda: HTML: Not renumber on qandadivHello,
Is there a way to not renumber qandaentries after qandadivs?
Example Representation of XML Docbook:
section [end-of-chapter] (gob-ch01_s08)
.��� qandaset (gob-ch01_s08_qs01)
.��� .��� qandadiv (gob-ch01_s08_qs01_qd01)
.��� .��� .��� qandaentry (gob-ch01_s08_qs01_qd01_qa01)
.��� .��� .��� qandaentry (gob-ch01_s08_qs01_qd01_qa02)
.��� .��� .��� qandaentry (gob-ch01_s08_qs01_qd01_qa03)
.��� .��� qandadiv (gob-ch01_s08_qs01_qd02)
.��� .��� .��� (Some content here specific to this section)
.��� .��� .��� qandaentry (gob-ch01_s08_qs01_qd02_qa11)
.��� .��� .��� qandaentry (gob-ch01_s08_qs01_qd02_qa12)
.��� .��� .��� qandaentry (gob-ch01_s08_qs01_qd02_qa13)
We like the second qandadiv set of qandaentries to not restart numbering at 1.
We are using docbook-xsl-1.75.2 xhtml-1.1
Thank you
David Link
New York.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]