~zorba-coders/zorba/bug-950621

« back to all changes in this revision

Viewing changes to src/compiler/parser/use-cases/q1-5.xqy

  • Committer: brantmat at ETHZ
  • Date: 2007-10-09 12:58:38 UTC
  • Revision ID: svn-v4:8046edc3-af21-0410-8661-ec7318497eea:trunk/zorba:904
commit of the new directory structure

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<books-with-prices>
 
2
  {
 
3
    for $b in doc("http://bstore1.example.com/bib.xml")//book,
 
4
        $a in doc("http://bstore2.example.com/reviews.xml")//entry
 
5
    where $b/title = $a/title
 
6
    return
 
7
        <book-with-prices>
 
8
            { $b/title }
 
9
            <price-bstore2>{ $a/price/text() }</price-bstore2>
 
10
            <price-bstore1>{ $b/price/text() }</price-bstore1>
 
11
        </book-with-prices>
 
12
  }
 
13
</books-with-prices>