This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]