[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Simplified production for FilterExpr in XPath spec?
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|