import module namespace m = 'xqueryzorba.org/test/xqddf/ic' at '../xqddf/ic.xqlib';
import module namespace ddl = "http://www.zorba-xquery.com/modules/store/static/collections/ddl";
import module namespace dml = "http://www.zorba-xquery.com/modules/store/static/collections/dml";
import module namespace ic_ddl = "http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl";
import module namespace schema = "http://www.zorba-xquery.com/modules/schema";
import module namespace u = "http://www.zorba-xquery.com/test/undo/utils" at "utils.xqlib";
import schema namespace s="http://www.zorba-xquery.org/schema" at "shiporder.xsd";
declare revalidation lax;
declare construction strip;
variable $x:=
John Smith
Ola Nordmann
Langgt 23
4000 Stavanger
Norway
-
Empire Burlesque
Special Edition
1
10.90
-
Hide your heart
1
9.90
;
ddl:create($m:empc);
ic_ddl:activate(xs:QName("m:ic_simple"));
try
{
(
insert node ($x//*:item)[1]/*:note after ($x//*:item)[last()]/*:title,
dml:insert-nodes($m:empc, 600)
);
}
catch *
{
}
u:dump-types($x)