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


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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

Subject: Re: [docbook] Auto numbering lists

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 

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 

<xsl:template match="section[@role = 'rec']" mode="object.title.markup">
  <fo:block xsl:use-attribute-sets="special.section.title.attributes">
    <!-- 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"/>

Add an attribute-set named "special.section.title.attributes" or some such, 
put the formatting features in it.

Bob Stayton
Sagehill Enterprises

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