Re: [xsl] Do xsl processors contain optimizer for conditions?

Subject: Re: [xsl] Do xsl processors contain optimizer for conditions?
From: cert21 <cert21@xxxxxxx>
Date: Sat, 14 Nov 2009 12:29:56 -0500
Martin Honnen wrote:

Technically it is a question about XPath expressions, if you look at the specification http://www.w3.org/TR/xpath#booleans then it clearly says for 'and' expressions:
"The right operand is not evaluated if the left operand evaluates to false."


And for 'or' expressions:
"The right operand is not evaluated if the left operand evaluates to true."


So it is not question about optimization, the language specification prescribes what to do.

Thank you.
It's good to know. This means that order of multiple conditions in evaluation is important for optimization purposes, the one that is most likely
to fail should be the first condition.


Current Thread