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

Re: Is the semantics of the "or" operator implementat

Subject: Re: Is the semantics of the "or" operator implementation-dependent?
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 16 Sep 2014 13:39:18 -0000
Re:  Is the semantics of the "or" operator  implementat
> I found this paragraph in the XPath 2.0 specification:
>
> 	In XPath 1.0, it was defined that with an expression of the form A and B,
> 	B would not be evaluated if A was false. Similarly in the case of A or B, B
> 	would not be evaluated if A was true. This is no longer guaranteed with
> 	XPath 2.0: the implementation is free to evaluate the two operands in
> 	either order or in parallel.
>
> That last sentence leads me to think that an XSLT processor could have this
behavior:
>

Correct. This change was made in XPath 2.0 at the insistence of XQuery
vendors. In databases optimizers typically promote the terms of an expression
that can be evaluated with the help of database indexes. This is an
optimization that can make many orders of magnitude difference to performance,
so it was felt to justify the loss in interoperability.

Michael Kay
Saxonica

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.