W3C home > Mailing lists > Public > www-xpath-comments@w3.org > January to March 2002

RE: Comments on XPath 2.0 specification

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Thu, 24 Jan 2002 00:19:23 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E6210602679BB6@daemsg02.software-ag.de>
To: "'Jonas Sicking'" <sicking@bigfoot.com>, www-xpath-comments@w3.org
> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:05:54 GMT