[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Simplified production for FilterExpr in XPath spec?

Subject: RE: Simplified production for FilterExpr in XPath spec?
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 18 Jul 2000 09:04:27 +0100
xpath filterexpr
> The production in the XPath spec for FilterExpr is:
> 
>     FilterExpr ::= PrimaryExpr | FilterExpr Predicate
> 
> It would seem that the following rewritten version would be
> much more transparent:
> 
>     FilterExpr ::= PrimaryExpr  Predicate*
> 
> (A number of other productions, e.g., OrExpr, could be
> similarly rewritten.)
> 
> Does anyone know why the production was written the way it
> was?

The two productions are completely equivalent, and the fact that XPath
switches at random between the "recursive" style and the "iterative" style
suggests to me that no thought was given to the matter. I suspect they were
written by different people. Which you prefer is entirely a matter of
personal taste.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.