|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] Finding context position when "order by" is in a FLWOR?David Carlisle davidc at nag.co.ukFri Sep 8 23:54:21 PDT 2006
> position() doesn't seem to help. The best approach I come up with > is to wrap the above FLWOR in another one: well there's (let $list := ( 'cat', 'dog', 'apple') for $word at $pos in $list order by $word return <word>{$word}</word>)/ <word n="{position()}">{text()}</word> which does use postion() but I don't think it's any clearer really. David
|
Purchase Stylus Studio Online Today!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






