Hi,
I am trying to get max value for a sequence of nodes using max(). I have a query which gives me a set of element and after that i get its max value.
let $elements := (<date>10-02-2012</date>,<date>12-02-2012<date>); return max($element)
I am expecting that it gives me 10-02-2012, while it is giving error "cannot cast to double '10-02-2012'.
Thanks Ankit