RE: comments on XPath 2.0

> I agree that evaluate() may be more appropriate in the 
> function set of XSLT
> than core XPath, but won't XQuery need it also? 

I think XSLT probably needs it more, because with XSLT you definitely want
to write and compile a stylesheet once and use it many times, whereas with
XQuery it's probably more acceptable to compile a query each time it's used
(and therefore, to modify the query each time it's used). But that still
doesn't handle the case of reading and evaluating an XPath expression that
you find in the source documents - I think everyone wants to avoid that use
case, because of the static typing and optimization implications.

Mike Kay 

Received on Monday, 7 January 2002 13:32:18 UTC