[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Dynamic numbering of lists in xslt

Subject: Re: Dynamic numbering of lists in xslt
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 10 Jan 2007 17:55:03 GMT
bcite renderx
> 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.

David

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.