~zorba-coders/zorba/bug-950621

« back to all changes in this revision

Viewing changes to src/compiler/parser/use-cases/q4-3.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
<result>
 
2
  {
 
3
    for $u in doc("users.xml")//user_tuple
 
4
    for $i in doc("items.xml")//item_tuple
 
5
    where $u/rating > "C" 
 
6
       and $i/reserve_price > 1000 
 
7
       and $i/offered_by = $u/userid
 
8
    return
 
9
        <warning>
 
10
            { $u/name }
 
11
            { $u/rating }
 
12
            { $i/description }
 
13
            { $i/reserve_price }
 
14
        </warning>
 
15
  }
 
16
</result>