~paul-lucas/zorba/bug-932374

« back to all changes in this revision

Viewing changes to test/rbkt/Queries/zorba/jsoniq/jn_intersect.xq

  • Committer: Paul J. Lucas
  • Date: 2012-09-21 20:26:47 UTC
  • mfrom: (10819.2.235 zorba)
  • Revision ID: paul@lucasmail.org-20120921202647-fy9n4jduhrnljrnb
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import module namespace libjn = "http://www.jsoniq.org/function-library";
 
2
 
 
3
let $object :=
 
4
{
 
5
 "foo" : "bar",
 
6
 "bar" : { "foo" : [1] },
 
7
 "foobar" : "foo" 
 
8
}
 
9
let $object2 :=
 
10
{
 
11
 "bar" : { "bar" : [2] },
 
12
 "foobar" : "foo" 
 
13
}
 
14
let $object3 :=
 
15
{
 
16
 "foo" : "bar",
 
17
 "bar" : [ "this" ]
 
18
}
 
19
return libjn:intersect(($object, $object2, $object3))
 
20