[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|