~zorba-coders/zorba/image-module-head

« back to all changes in this revision

Viewing changes to test/rbkt/Queries/zorba/xqxq/evaluate3.xq

  • Committer: Zorba Build Bot
  • Author(s): chillery+launchpad at lambda
  • Date: 2012-10-26 15:13:54 UTC
  • mfrom: (11110.1.2 move-xqxq-core)
  • Revision ID: chillery+buildbot@lambda.nu-20121026151354-ojxq78uovjc6czno
Moved XQXQ into Zorba core. Approved: Juan Zacarias, Matthias Brantner, Chris Hillery

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import module namespace xqxq = 'http://www.zorba-xquery.com/modules/xqxq';
 
2
 
 
3
variable $query-key := xqxq:prepare-main-module('
 
4
import module namespace ddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl";
 
5
declare namespace an = "http://www.zorba-xquery.com/annotations";
 
6
declare %an:sequential function local:foo() {
 
7
  ddl:create(xs:QName("hola"),(<a/>,<b/>));                  
 
8
  
 
9
  exit returning ();
 
10
};
 
11
 
 
12
local:foo()
 
13
');
 
14
variable $a := xqxq:evaluate($query-key);
 
15
$a