[Home] [By Thread] [By Date] [Recent Entries]
On 09/01/2014 10:36, Costello, Roger L. wrote:
Hi Folks, It's an example of something but not a counterexample to the statement that path expressions return nodes in document order.
well no, it doesn't output anything, it just selects the head elements in document order. In fact, because of this non-document-order behavior, that XPath expression is not streamable (the processor would fetch "A" and then have to back up to fetch "B", and backing up is not allowed in streaming). I haven't checked the streaming rules in detail but I would expect //head to be streamable. (You might not be able to access any of the child nodes in a streamable way but for example count(//head) ought to be able to count all the head in the document in a single pass.
This one is streamable as discussed yesterday, the spec makes special provision for it.
no Some XPath expressions are streamable, some are not. yes Some XPath expressions are rewritten internally by the XPath-processor to make them streamable, some XPath expressions are not rewritten. yes
yes
David
This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
|

Cart



