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

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 UTC