xsl-list
[Top] [All Lists]

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

2009-11-14 12:30:30
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.



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--