W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2003

Re: broken use-case Q4 ?

From: Jonathan Robie <jonathan.robie@datadirect.com>
Date: Thu, 07 Aug 2003 20:01:17 -0400
Message-Id: <>
To: "Xavier C. FRANC" <xfranc@online.fr>, public-qt-comments@w3.org

At 06:13 PM 7/1/2003, Xavier C. FRANC wrote:

>It seesm that the use-case Q4 (may 2003) is erroneous:

Thanks, Xavier, you are right.

Here is the version I wrote to fix this problem:

     let $a := doc("http://www.bn.com/bib/bib.xml")//author
     for $last in distinct-values($a/last),
         $first in distinct-values($a[last=$last]/first)
     order by $last, $first
                <last>{ $last }</last>
                <first>{ $first }</first>
                 for $b in doc("http://www.bn.com/bib.xml")/bib/book
                 where some $ba in $b/author
                       satisfies ($ba/last = $last and $ba/first=$first)
                 return $b/title

Received on Thursday, 7 August 2003 21:18:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:49 UTC