> a/[EMAIL PROTECTED] = ancestor::a/d/@e] > > the result of the sub-expression is going to be the same for all > b elements. sok how can i cache this result so that its not evaluated > for every b?
I think you need to be more specific about what the exact sub-expression you are referring to, and why you know it has no context dependencies. There is no general mechanism in the XPath engine to incorporate caching results of particular expressions. The only way you'll be able to optimize this with knowledge of the context is to re-write the expression. Dave
