~zorba-coders/zorba/bug1151967

« back to all changes in this revision

Viewing changes to test/rbkt/Queries/zorba/zorba-query/url-schema-resolver3.xq

  • Committer: Paul J. Lucas
  • Date: 2013-08-15 00:14:17 UTC
  • mfrom: (11597 lp_zorba)
  • mto: This revision was merged to the branch mainline in revision 11598.
  • Revision ID: paul@lucasmail.org-20130815001417-g22x9plxc8fv73zd
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import module namespace xqxq = 'http://www.zorba-xquery.com/modules/xqxq';
 
1
import module namespace zq = 'http://zorba.io/modules/zorba-query';
2
2
 
3
 
declare namespace resolver = 'http://www.zorba-xquery.com/modules/xqxq/url-resolver';
 
3
declare namespace resolver = 'http://zorba.io/modules/zorba-query/url-resolver';
4
4
 
5
5
declare namespace op = "http://zorba.io/options/features";
6
6
declare namespace f = "http://zorba.io/features";
13
13
    ()
14
14
};
15
15
 
16
 
variable $contextQueryID := xqxq:prepare-main-module(
 
16
variable $contextQueryID := zq:prepare-main-module(
17
17
  "import schema namespace test = 'http://test';
18
18
  declare variable $cwd as xs:anyURI external;
19
19
  validate { doc(resolve-uri('test.xml', $cwd)) }",
20
20
  resolver:url-resolver#2, ());
21
 
xqxq:bind-variable($contextQueryID, fn:QName("", "cwd"), resolve-uri("."));
22
 
variable $contextItem := xqxq:evaluate($contextQueryID);
 
21
zq:bind-variable($contextQueryID, fn:QName("", "cwd"), resolve-uri("."));
 
22
variable $contextItem := zq:evaluate($contextQueryID);
23
23
 
24
 
variable $queryID := xqxq:prepare-main-module(
 
24
variable $queryID := zq:prepare-main-module(
25
25
  "import schema namespace test = 'http://test'; //*:test",
26
26
  resolver:url-resolver#2, ());
27
 
xqxq:bind-context-item($queryID, $contextItem);
28
 
xqxq:evaluate($queryID)
 
27
zq:bind-context-item($queryID, $contextItem);
 
28
zq:evaluate($queryID)