- From: Richard Tobin <richard@inf.ed.ac.uk>
- Date: Thu, 2 Nov 2006 13:57:15 +0000 (GMT)
- To: "Alessandro Vernet" <avernet@orbeon.com>, public-xml-processing-model-wg <public-xml-processing-model-wg@w3.org>
[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