[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: Tue, 9 Jan 2007 16:02:53 GMT
Re:  Dynamic numbering of lists in xslt
If the filter is sufficiently simple just repeat it on the xsl:number

<xsl:number count="section[not(title='second section')]"/>

might do the right thing.

In general, you might find it easier to do do the transform as a
multi-stage process, first filter out (and re-order) the elements using
a "modifoed identity transform" then use this document as input to
a stylesheet that does the actual formatting.

For debugging it's often best to do this as two completely separate
processes (so you can look at the intermediate file) but there are
several possibilities (including the common node-set() extension to
chain the two transforms into a single process, which would be more
effificent.


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.