~zorba-coders/zorba/bug1151967

« back to all changes in this revision

Viewing changes to test/rbkt/Queries/zorba/zorba-query/evaluate-updating.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
 
variable $query-key := xqxq:prepare-main-module("insert node <child>Content</child> into /parent");
 
3
variable $query-key := zq:prepare-main-module("insert node <child>Content</child> into /parent");
4
4
variable $xml := doc("context-item.xml");
5
 
xqxq:bind-context-item($query-key, $xml);  
6
 
xqxq:evaluate-updating($query-key);
 
5
zq:bind-context-item($query-key, $xml);  
 
6
zq:evaluate-updating($query-key);
7
7
$xml
 
 
b'\\ No newline at end of file'