This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: [docbook] References to ordered & continued lists
- From: Bob Stayton <bobs at sco dot com>
- To: Florian Rehfeld <flo at abwesend dot de>
- Cc: docbook at lists dot oasis-open dot org
- Date: Thu, 8 May 2003 10:38:42 -0700
- Subject: Re: [docbook] References to ordered & continued lists
- References: <571.1052403620@www57.gmx.net>
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
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org