Re: [xsl] Dynamic numbering of lists in xslt

Subject: Re: [xsl] Dynamic numbering of lists in xslt
From: <>
Date: Wed, 10 Jan 2007 13:48:33 -0600
That worked! Thanks so much!!!!!

On 1/10/07, David Carlisle <davidc@xxxxxxxxx> wrote:

> I need to use a numberd list but this time using XSLFO and not XSLT.

what do you mean? XSLFO allows the specification of typesetting
properties but has no capability to do any programming of any sort.
The rest of tyour posting consists of some example XSLT stylesheets
(the XSLT happens to use XSLFO literal result elements, but that is
irrelevant to both the XSLt engine and your problem)

as far as i can tell you want to count travel nodes which have a
location child that matches your params, so use something like

<xsl:number from="/" count="travel1[location/time=$time and location/place=$place]"/>

Do you really want to make a list with one item for each travel element, why not make a single list outside the code that you have shown and then just generate <fo:list-item> in the travel1 template.

> Please let me know if any of this is achievable in XSLFO using > renderx.

Your question has nothing to do with xslfo, it's about how to generate
the right number using xslt.


Current Thread