Re: Viewport and nested selected nodes

> | I think that viewport should probably filter the selected nodes to
> | only those that do not have another selected node as a descendant.

> I had the opposite strategy in mind, where the filter selects the
> "outermost" matching nodes and ignores nested matches.

It would be good to be able to stream if possible, and in this case
that means matching the XPath against nodes, rather than evaluating
a expression from the root and getting a node set back.

If you do that, and we specify that the innermost match is used, the
implementation has to inspect the descendants of matches even in cases
where there won't in fact be a matching descendant.  If we use the
outermost one, this case will be more efficient.

-- Richard

Received on Monday, 23 October 2006 17:32:49 UTC