I have x number of nodeid's stored in a cookie. I want to loop through these nodeid's and find the nodeid containing the highest (max()) value for a certain field in the node - any suggestion on a approach of finding the max/highest value?
I'm not sure it can be done using "pure" XSLT - but maybe you can use some of the extensions from the Exslt.ExsltMath library? There is a "highest" and "max" function in there it seems.
max() value?
I have x number of nodeid's stored in a cookie. I want to loop through these nodeid's and find the nodeid containing the highest (max()) value for a certain field in the node - any suggestion on a approach of finding the max/highest value?
Hi Dinovo
I think you should be able to do that by writing a loop like this
Hope this helps
/Jan
Hi Jan
That is excatly the way i have done it uptil now - but i was wondering if there was no easier way of doing it (ie. lesser code)? ;-)
Hello again
I'm not sure it can be done using "pure" XSLT - but maybe you can use some of the extensions from the Exslt.ExsltMath library? There is a "highest" and "max" function in there it seems.
/Jan
is working on a reply...