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

Re: Match Pattern Proposal

From: Alessandro Vernet <avernet@orbeon.com>
Date: Thu, 2 Nov 2006 01:04:57 -0800
Message-ID: <4828ceec0611020104k1652a44fg5d014608177ad804@mail.gmail.com>
To: public-xml-processing-model-wg <public-xml-processing-model-wg@w3.org>

On 11/1/06, Alex Milowski <alex@milowski.org> wrote:
> > There is just one thing that bothers me with XSLT patterns: reusable
> > libraries that implement XSLT patterns are hard to come by, unlike
> > implementations of XPath. If an XSLT pattern implementation is not
> > available on a given platform, that means you need to implement your
> > own XSLT patterns code in order to write an XProc implementation.
> > Isn't that be too much of a burden on the implementation author?
> No.  Patterns are subsets of XPaths and implementors can use standard
> libraries if they so choose.

Almost. Implementors need to check that the expression is in fact a
pattern (and not something that would be an XPath expression but not a
pattern). This can be done by parsing the expression against the
grammar defined in "5.2 Patterns" of the XSLT specification.

One could argue that if implementations are typically expected to use
an XPath engine to handle patterns, having patterns instead of XPath
in the language puts everyone in a loose-loose situation: it creates
more work for implementors and unnecessarily limits the expressiveness
of pipeline authors.

Blog (XML, Web apps, Open Source):
Received on Thursday, 2 November 2006 09:05:13 UTC

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