Re: Sequences of numeric values in XPath predicate expressions

Mike Kay wrote:
> We decided that this was overloading the [] operator one step too
> far, and that it wasn't a great hardship to write:
>
>   for $i in 1 to 20 return $seq[$i]

Or $seq[position() = 1 to 20] if you prefer.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

Received on Thursday, 5 June 2003 05:27:11 UTC