RE: Comments on XPath 2.0 specification

> How about a 'foreach' construct? So one could write
> 
> sum(foreach //item return quantity * USPrice)
> 
> Shouldn't that avoid any parsingproblems?
> 
Unfortunately not. It requires either lookahead or reserved words: you can't
tell until you hit the "return" that foreach//item isn't a relative path
expression.

Mike Kay 

Received on Wednesday, 23 January 2002 18:19:28 UTC