[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. -- RichardReceived on Thursday, 2 November 2006 13:57:45 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:49 GMT