W3C home > Mailing lists > Public > www-ql@w3.org > October to December 2005

RE: Focus-sensitive numeric predicate

From: Michael Rys <mrys@microsoft.com>
Date: Thu, 24 Nov 2005 19:03:52 -0800
Message-ID: <BAE415CEAA831548800F68C44E905AF503E2E09B@RED-MSG-60.redmond.corp.microsoft.com>
To: "Charles Brooking" <charles.brooking@research.canon.com.au>, "W3C Query Langauages" <www-ql@w3.org>

Correct. That is already true in XPath 1.0...

Best regards
Michael

> -----Original Message-----
> From: www-ql-request@w3.org [mailto:www-ql-request@w3.org] On Behalf
Of
> Charles Brooking
> Sent: Thursday, November 24, 2005 5:05 PM
> To: W3C Query Langauages
> Subject: Focus-sensitive numeric predicate
> 
> 
> Hi all,
> 
> Am I correct in supposing [1] that the following (spectacular) query
> will return nothing?
> 
>     declare variable $Products :=
>       <Products>
>         <Product><ProductID>2</ProductID><Title>foo</Title></Product>
>         <Product><ProductID>1</ProductID><Title>bar</Title></Product>
>       </Products>;
> 
>     $Products/Product[data(ProductID) cast as xs:integer]/Title
> 
> I'll say no more... :-)
> 
> Later
> Charlie
> 
> [1] http://www.w3.org/TR/xquery/#id-predicates
> 
> --
> Charles Brooking
> Associate Software Engineer
> Canon Information Systems Research Australia
> 
Received on Friday, 25 November 2005 03:04:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 22 July 2006 00:10:20 GMT