3
module namespace accounts = "www.accounts.com";
5
import module namespace ddl =
6
"http://www.zorba-xquery.com/modules/store/static/collections/ddl";
8
import module namespace dml =
9
"http://www.zorba-xquery.com/modules/store/static/collections/dml";
11
import module namespace iddl =
12
"http://www.zorba-xquery.com/modules/store/static/indexes/ddl";
14
declare namespace an = "http://www.zorba-xquery.com/annotations";
17
declare %an:ordered collection accounts:accounts as element(account);
20
declare %an:automatic %an:unique %an:value-equality index accounts:accounts-index
21
on nodes dml:collection(xs:QName('accounts:accounts'))
22
by xs:string(@email) as xs:string?;