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

Focus-sensitive numeric predicate

From: Charles Brooking <charles.brooking@research.canon.com.au>
Date: Fri, 25 Nov 2005 12:05:16 +1100
Message-ID: <4386634C.1020002@research.canon.com.au>
To: W3C Query Langauages <www-ql@w3.org>

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 01:07:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:43:44 UTC