W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2005

RE: [XQueryX] The need of PathExpr as in simpleType

From: Michael Kay <mhk@mhk.me.uk>
Date: Tue, 15 Mar 2005 09:59:47 -0000
To: "'Frank Yung-Fong Tang'" <franktang@gmail.com>, <public-qt-comments@w3.org>
Message-ID: <E1DB8tr-0007uk-FP@frink.w3.org>

These are excellent questions, and I don't think it's possible to give you a satisfactory answer: you're right that this is a requirement worth looking at, and as far as I'm aware no-one is currently looking at it.

One point, however: path expressions in XQuery, and hence in XQueryX, are not a subset of XPath path expressions. For example, a/b[let $x:=@p return d[@q=$x]] is a valid path expression in XQuery but not in XPath.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: public-qt-comments-request@w3.org 
> [mailto:public-qt-comments-request@w3.org] On Behalf Of Frank 
> Yung-Fong Tang
> Sent: 14 March 2005 21:38
> To: public-qt-comments@w3.org
> Subject: [XQueryX] The need of PathExpr as in simpleType
> 
> 
> 1. Currently, PathExpr is defined as a  complexType in
> http://www.w3.org/TR/xqueryx/  . Since both XML Schema (as in  key,
> keyref and uniques) and XSLT (as in pattern) also use XPath in
> attribute, it will be nice if XQuery WG can ALSO define a way to
> experss PathExpr as a simple type, either in XQueryX, or in other
> document, or both.
> 
> 2. In the XQueryX efforts, do we really need to experss the XQuery in
> a way that it tokenize every details, or should we consider a level in
> XQueryX to keep the PathExpr as a whole ?
> 
> I also think XML Schema should support a primitve type to hold XPath
> so XPath can be used by more W3C technology in the future with less
> interoperability issues. See my other posting.
> 
> -- 
> Frank Yung-Fong Tang
> ???
> Šýštém Årçhîtéçt
> 
> 
Received on Tuesday, 15 March 2005 11:23:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:23 UTC