[xquery-talk] get highest number

Michael Kay mike at saxonica.com
Wed May 14 10:26:29 PDT 2008


> Is there a faster way to achieve this in XQuery?

max(//@id)

Michael Kay
http://www.saxonica.com/

> 
> let $y := for $x in //@id
> order by number($x)
> return $x
> return xs:string($y[fn:last()])
> 
> Thanks for your help! gonzberg
> --
> 249 Spiele für nur 1 Preis. Die GMX Spieleflatrate schon ab 9,90 Euro.
> Neu: Asterix bei den Olympischen Spielen: 
> http://flat.games.gmx.de 
> _______________________________________________
> talk at x-query.com
> http://x-query.com/mailman/listinfo/talk




More information about the talk mailing list