W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > November 2006

Re: Viewport and nested selected nodes

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>
Message-Id: <20061102135715.1FFEA126760@macpro.inf.ed.ac.uk>

[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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:41 UTC