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

Re: Match Pattern Proposal

From: Alex Milowski <alex@milowski.org>
Date: Thu, 02 Nov 2006 07:46:53 -0800
Message-ID: <454A12ED.3080504@milowski.org>
To: public-xml-processing-model-wg <public-xml-processing-model-wg@w3.org>

Grosso, Paul wrote:
> And predicates can contain select patterns, so any
> analysis of (predicates in) match patterns must 
> include the same code that would analyze select
> patterns in general.

No.  You just have recognize certain syntax elements
in a predicate.  For example, any descendant axis
use in a predicate will destroy streaming with caching.

> So I fail to see how using match patterns instead
> of select patterns simplifies the implementation.

If you use "selections" via XPath, then only
"//div" will match all divs.

If you use match patterns, then both "//div" and
"div" will match.

--Alex Milowski
Received on Thursday, 2 November 2006 15:47:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:49 GMT