Re: [xsl] Problems calling template from within sorted <xsl:for-each> loop.

Subject: Re: [xsl] Problems calling template from within sorted <xsl:for-each> loop.
From: Ryan.Kelly@xxxxxxxxxxx
Date: Fri, 14 Jun 2002 15:57:21 +0100
> I don't think you said what the rule for this was (I couldn't guess
> looking at the required output)

The rule, essentially, is that the set of policy_rule elements (ie. those
with an identical @decision_no) with the largest value have "Current"
written to the 3rd column, the next set "Previous" and subsequent "Previous
- 1", "Previous - 2" etc...

> If you don't mind using a node-set extension function it is usually best
> to first sort the list into a variable and the apply templates to the
> node set generated from the variable, as then all the axes work as you'd
> wish.

Assuming I don't mind using the node-set extension (I can't say as yet
since I don't know what's involved), how would I go about it? I'm using
Xalan 2.1 for Java. How would I sort into a node-set? Can you provide a
simple example?

Thanks,
Ryan Kelly.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread