[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] OrderedList and 'continuation' attribute
Hi Howard,
I think that is a bug, since the results are simply
wrong. The numbering should continue from the same list nesting level, in
my opinion. Could you please file a bug report on the DocBook SourceForge
site for this?
To fix it, take a look at the template named
'output-orderedlist-starting-number' in common/common.xsl. In there you
will see in the "otherwise" case that:
<xsl:variable name="prevlist"
select="$list/preceding::orderedlist[1]"/>
This selects the previous list regardless of level,
which in your instance is the nested list. I think this selection should
be of the preceding list with the same number of orderedlist ancestors,
something like this [untested]:
<xsl:variable name="prevlist"
select="$list/preceding::orderedlist[count($list/ancestor::orderedlist) =
count(ancestor::orderedlist)][1]"/>
If DocBook 5, don't forget to add the namespace
prefix.
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]