Re: Viewport and nested selected nodes

[Catching up on mail, so this is a bit late.]

> Having to choose between:
> 
> A) <p:viewport> and <p:for-each> are consistent. They are both
> guaranteed to stream, so they can both be used on large documents.
> B) <p:for-each> uses XPath and iterates over all the nodes so it can
> be used to handle directly your use case.
> 
> I would go with A.

Match patterns aren't necessarily streamable.  You can put any
expression in a predicate, e.g. a[@b = /x/y/z].  Unless the patterns
are very restricted, implementations that want to stream are going to
have to analyse them anyway to determine whether they are streamable.

-- Richard

Received on Thursday, 2 November 2006 13:57:45 UTC