[Home] [By Thread] [By Date] [Recent Entries]
On 02/11/2012 14:25, Dimitre Novatchev wrote:
Either way it requires the optimizer to work out that count(distinct-values(//Websites/*))+1 returns the same value for all the nodes in //Websites/* which means working out that (a) all the results in //Websites/* are nodes in the same document, and (b) the expression count(distinct-values(//Websites/*))+1 is dependent on the context document but not on the context item. Saxon has been able to do that for years, but there are many XPath engines, smaller and lighter than Saxon, that don't attempt anything near this level of analysis. Michael Kay Saxonica
|

Cart



