Subject: Re: [xsl] Dynamic numbering of lists in xslt From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 9 Jan 2007 16:02:53 GMT |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Dynamic numbering of list, xslt . new | Thread | Re: [xsl] Dynamic numbering of list, Abel Braaksma |
Re: [xsl] Dynamic numbering of list, xslt . new | Date | Re: [xsl] Dynamic numbering of list, Abel Braaksma |
Month |