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

Re: XPath 1.0 or 2.0 (Was: Re: XProc Minutes 11 May 2006)

From: Alessandro Vernet <avernet@orbeon.com>
Date: Wed, 17 May 2006 19:27:20 -0700
Message-ID: <4828ceec0605171927u6a816508w74e3500eb4a3ae6a@mail.gmail.com>
To: public-xml-processing-model-wg <public-xml-processing-model-wg@w3.org>

On 5/12/06, Jeni Tennison <jeni@jenitennison.com> wrote:
> I'm afraid that I've grown so used to having XPath 2.0 that I would be
> loath to be without it. It's not the schema-awareness or the type
> checking, it's the support for conditionals, regular expressions etc.
>
> For example, I was thinking about how to set a parameter to hold a
> space-separated sequence of URIs where those URIs come from an arbitrary
> number of attributes in a document. In XPath 2.0, you can use the
> string-join() function, but there's no way of doing it in XPath 1.0.
>
> I think we could get away with the same subset of XPath 2.0
> functionality as is used in Basic XSLT 2.0, namely:
>
>   - no support for user-defined types (i.e. no importing of schemas)
>   - all element and attribute nodes are untyped
>   - only a subset of the XML Schema datatypes are supported
>
> We would avoid all the schema import problems, but still give users the
> XPath 2.0 functionality that they will find useful.

+1

Jeni, I couldn't agree more with what you are saying here.

Alex
-- 
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/
Received on Thursday, 18 May 2006 02:27:41 GMT

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