#373 Positional variable destroyed with "order by" clause

v8.4
closed
Michael Kay
5
2012-10-08
2005-07-06
sven-g
No

The value of a positional variable may be destroyed if
the FLWOR contains an "order by" clause, e.g.

for $x at $i in (2, 1)
order by $x
return ($i, $x)

This returns (2, 1, 2, 2), i.e. always the maximum
value of the positional variable.

Discussion

  • Michael Kay
    Michael Kay
    2005-07-06

    Logged In: YES
    user_id=251681

    This appears to be a duplicate of 1185249.

    As requested (loudly) on the "Submit New Bug" page, please
    don't raise suspected bugs by this route, because it leads
    to clutter for people searching the list. Raise them on
    saxon-help list or forum in the first instance.

    Michael Kay