- From: Jonathan Robie <jonathan.robie@datadirect.com>
- Date: Thu, 07 Aug 2003 20:01:17 -0400
- 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 1.1.9.4 Q4 (may 2003) is erroneous: Thanks, Xavier, you are right. Here is the version I wrote to fix this problem: <results> { 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 return <result> <author> <last>{ $last }</last> <first>{ $first }</first> </author> { 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 } </result> } </results> Jonathan
Received on Thursday, 7 August 2003 21:18:45 UTC