[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qexo-general] using xquery to select across multiple xml documents?
From: |
Per Bothner |
Subject: |
Re: [Qexo-general] using xquery to select across multiple xml documents? |
Date: |
Tue, 25 Jun 2002 08:15:30 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1a) Gecko/20020610 |
address@hidden wrote:
Does Qexo allow you to use xquery to select across multiple xml
documents?
Yes.
If so could you point me to an example showing how this
should work?
Not sure exactly what you're looking for, but this example
(one of the use-cases in the gnu/xquery/testsuite directory)
shows a "join":
<books-with-prices>
{
for $b in document("bib.xml")//book,
$a in document("reviews.xml")//entry
where $b/title = $a/title
return
<book-with-prices>
{ $b/title }
<price-amazon>{ $a/price/text() }</price-amazon>
<price-bn>{ $b/price/text() }</price-bn>
</book-with-prices>
}
</books-with-prices>
--
--Per Bothner
address@hidden http://www.bothner.com/per/