On 07/01/14 12:39, Michael Kay wrote:
Yes, I was surprised to see that a "let" clause isn't allowed after an order-by or group-by. I don't remember the reasons for that.
A let clause _can_ be used after an order by or group by clause in XQuery 3.0:
http://www.w3.org/TR/xquery-30/#prod-xquery30-FLWORExpr I suspect this is just unimplemented in eXist. John -- John Snelson, Lead Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com _______________________________________________ talk@x-query.com http://x-query.com/mailman/listinfo/talk