[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] Auto numbering lists
Hi, I don't think orderedlist with continuation will do what you want. I would suggest using section elements with a role attribute to indicate these special sections. If you don't want a title, then just insert an empty title element in such sections. Then customize the XSL stylesheets to generate a "title" that includes the label and number based on the role value. The customization can most easily be done to the mode="object.title.markup" templates. These are used internally to generate the text for a section title. <xsl:template match="section[@role = 'rec']" mode="object.title.markup"> <fo:block xsl:use-attribute-sets="special.section.title.attributes"> <xsl:text>REC-</xsl:text> <!-- compute the number here using one or more xsl:number elements ==> <!-- if you want the title of the special section, include this: <xsl:apply-templates select="." mode="title.markup"/> --> </fo:block> </xsl:template> Add an attribute-set named "special.section.title.attributes" or some such, and put the formatting features in it. Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Halm Reusser" <halm.reusser@switch.ch> To: <docbook@lists.oasis-open.org> Sent: Thursday, October 23, 2008 8:47 AM Subject: Re: [docbook] Auto numbering lists > Well, I was studying the documentation. > > I found the orderedlist [1] with the continuation attribute. > It looks that this is the right direction to a simple solution. > > The only open issue is, that I will have 2 independent lists in my > document. > The list of requirements and the list of recommendations, which should be > numbered > continuous but independent. > > Can I give an ID/role to the list? Or something like that? Maybe I have to > adjust > the XSLs to reach my wishes :-) > > Any helps is appreciated. > > Halm > > > [1] http://www.sagehill.net/docbookxsl/Orderedlists.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]