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] References to ordered & continued lists


On Thu, May 08, 2003 at 04:20:20PM +0200, Florian Rehfeld wrote:
> Hi,
> 
> using Norms current xsls I've run into something curious:
> I have an <orderedlist/> which is separated by <para/>s, so there are some
> orderedlists which have only one listitem.
> An <xref> to listitem no. IV is labeled as I. 
> 
> I will override it with an xreflabel for that listitem so it is no problem
> but ugly.
> 
> It seems the template counts the listitems of the ordered list instead of
> checking for continuation="continues" attribute. If that is right, my proposal
> is to fix that bug (if it IS one).
> Is it a bug with the stylesheets or is it a bug elsewhere (processor,
> formatter, driver files, me,...)?
> 
> I have no time until next month, but if there is no solution until then, i
> could try to fix it for myself and post the result. Is that ok?

It is a bug.  An xref to an orderlist listitem uses the
gentext system to get the link text.  The gentext for
'listitem' in the xref context is "%n", which is filled
in using the mode 'label.markup'.

But the template
<xsl:template match="orderedlist/listitem" mode="label.markup">
in common/labels.xsl does not take into account the
'continues' attribute.  It should make a call
to the 'orderedlist-starting-number' template
the way the orderedlist template does in lists.xsl.

You could file a bug report on the SourceForge site
to get it fixed at some point.


-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com


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