← Back to team overview

zorba-coders team mailing list archive

[Merge] lp:~matthias-brantner/zorba/xqxq-sandbox into lp:~zorba-coders/zorba/zorba-experimental

 

Matthias Brantner has proposed merging lp:~matthias-brantner/zorba/xqxq-sandbox into lp:~zorba-coders/zorba/zorba-experimental.

Requested reviews:
  Zorba Coders (zorba-coders)

For more details, see:
https://code.launchpad.net/~matthias-brantner/zorba/xqxq-sandbox/+merge/81171

create a experimental sandbox
-- 
The attached diff has been truncated due to its size.
https://code.launchpad.net/~matthias-brantner/zorba/xqxq-sandbox/+merge/81171
Your team Zorba Coders is requested to review the proposed merge of lp:~matthias-brantner/zorba/xqxq-sandbox into lp:~zorba-coders/zorba/zorba-experimental.
=== modified file 'ChangeLog'
--- ChangeLog	2011-10-20 23:05:55 +0000
+++ ChangeLog	2011-11-03 16:28:29 +0000
@@ -2,6 +2,7 @@
 
 version 2.x
 
+  * Modified C++ API to add isSequential and getExternalVariables Functions
   * Custom Full-text thesaurus.
   * Fixed bug #3401971 (node-by-reference on dynamic collections)
   * Optimization for positioned sequence access (e.g. $x[$x[1]] where $x is a

=== modified file 'include/zorba/dynamic_context.h'
--- include/zorba/dynamic_context.h	2011-10-03 09:18:49 +0000
+++ include/zorba/dynamic_context.h	2011-11-03 16:28:29 +0000
@@ -43,6 +43,7 @@
 class ZORBA_DLL_PUBLIC DynamicContext
 {
  public:
+	 
   /**
    * \brief Defines the external variable identified by aQName and assigns it
    * the value of aItem.
@@ -261,7 +262,6 @@
    */
   virtual ExternalFunctionParameter*
   getExternalFunctionParameter ( const String& aName ) const = 0;
-  
 
 protected:
   /** \brief Destructor

=== modified file 'include/zorba/pregenerated/diagnostic_list.h'
--- include/zorba/pregenerated/diagnostic_list.h	2011-10-19 15:28:51 +0000
+++ include/zorba/pregenerated/diagnostic_list.h	2011-11-03 16:28:29 +0000
@@ -1,762 +1,762 @@
-/**
- * Copyright 2006-2011 The FLWOR Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- 
- /*
-  * THIS FILE IS GENERATED.
-  * PLEASE DO NOT EDIT.
-  */
- 
-#ifndef ZORBA_DIAGNOSTIC_LIST_API_H
-#define ZORBA_DIAGNOSTIC_LIST_API_H
-
-#include <zorba/config.h>
-#include <zorba/error.h>
-#include <zorba/xquery_warning.h>
-
-namespace zorba {
-
-namespace err {
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0001;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XPDY0002;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0003;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XPTY0004;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0005;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0008;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0009;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0012;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0013;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0017;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XPTY0018;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XPTY0019;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XPTY0020;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0022;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQTY0024;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0025;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0026;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0027;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQTY0030;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0031;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0032;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0033;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0034;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0035;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0036;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0038;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0039;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0040;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0041;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0044;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0045;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0046;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0047;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0048;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0049;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XPDY0050;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0051;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0054;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0055;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0057;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0058;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0059;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0060;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0061;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0064;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0065;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0066;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0067;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0068;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0069;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0070;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0071;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0072;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0074;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0076;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0079;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0080;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0081;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0083;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0084;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0085;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQTY0086;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0087;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0088;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0089;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0090;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0091;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0092;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0093;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0096;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0098;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0106;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0111;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XTDE1310;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XTDE1340;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XTDE1350;
-
-#if !defined(ZORBA_NO_FULL_TEXT)
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FTST0008;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FTST0009;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FTDY0016;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FTDY0017;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FTST0018;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FTST0019;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FTDY0020;
-#endif
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOER0000;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOAR0001;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOAR0002;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCA0001;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCA0002;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCA0003;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCA0005;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCA0006;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCH0001;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCH0002;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCH0003;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCH0004;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FODC0001;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FODC0002;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FODC0003;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FODC0004;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FODC0005;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FODC0006;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FODC0007;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FODF1280;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FODF1310;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FODT0001;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FODT0002;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FODT0003;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOFI0001;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOFI0002;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FONS0004;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FONS0005;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FORG0001;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FORG0002;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FORG0003;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FORG0004;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FORG0005;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FORG0006;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FORG0008;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FORG0009;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FORX0001;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FORX0002;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FORX0003;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FORX0004;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOTY0012;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOTY0013;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOTY0014;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOTY0015;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0001;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0002;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0003;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0004;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0005;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0006;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0007;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0008;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0009;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0010;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0011;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0012;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0013;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0014;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0015;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0016;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0017;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0018;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0019;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0021;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0022;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0023;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0024;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0027;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0028;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0029;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0030;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0031;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOUP0001;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode FOUP0002;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode SENR0001;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode SERE0003;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode SEPM0004;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode SERE0005;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode SERE0006;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode SESU0007;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode SERE0008;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode SEPM0009;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode SEPM0010;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode SESU0011;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode SERE0012;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode SESU0013;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode SERE0014;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode SERE0015;
-
-extern ZORBA_DLL_PUBLIC XQueryErrorCode SEPM0016;
-
-} // namespace err
-
-namespace zerr {
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0000_NO_ERROR;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0001_DYNAMIC_RUNTIME_ERROR;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0002_ASSERT_FAILED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0003_INTERNAL_ERROR;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0004_NOT_IMPLEMENTED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0005_NOT_ENABLED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0007_FUNCTION_SIGNATURE_NOT_EQUAL;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0008_FUNCTION_IMPL_NOT_FOUND;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0009_FUNCTION_LOCALNAME_MISMATCH;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0010_FUNCTION_NOT_SEQUENTIAL;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0013_FXCHARHEAP_EXCEPTION;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0016_RESERVED_MODULE_TARGET_NAMESPACE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0017_FILE_ACCESS_DISABLED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0020_INVALID_URI;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0021_USER_ERROR;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0024_XML_DOES_NOT_MATCH_SCHEMA;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0025_ITEM_CREATION_FAILED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0026_INVALID_ENUM_VALUE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0028_TARGET_NAMESPACE_NOT_PROVIDED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0029_URI_ACCESS_DENIED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0030_DEADLOCK;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0031_MALFORMED_XQUERYX_INPUT;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0032_ERROR_TRANSFORMING_XQUERYX_TO_XQUERY;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0036_BREAKITERATOR_CREATION_FAILED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0037_INAPPROPRIATE_MODULE_VERSION;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0038_INAPPROPRIATE_ZORBA_VERSION;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0039_INVALID_VERSION_SPECIFICATION;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0040_MISSING_NONDETERMINISTIC_ANNOTATION;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0050_FEATURE_NOT_AVAILABLE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0060_OPTION_NOT_KNOWN;
-
-#if !defined(ZORBA_NO_FULL_TEXT)
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP8401_THESAURUS_VERSION_MISMATCH;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP8402_THESAURUS_ENDIANNESS_MISMATCH;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP8403_THESAURUS_DATA_ERROR;
-#endif
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQD0001_PREFIX_NOT_DECLARED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQD0002_DOCUMENT_NOT_VALID;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQD0003_INCONSISTENT_PARSE_FRAGMENT_OPTIONS;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQD0004_INVALID_PARAMETER;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQD0005_INVALID_KEY_FOR_MAP;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0002_XQUERY_COMPILATION_FAILED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0003_XQUERY_NOT_COMPILED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0004_XQUERY_ALREADY_COMPILED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0005_XQUERY_ALREADY_EXECUTING;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0006_XQUERY_ALREADY_CLOSED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0007_CANNOT_SERIALIZE_PUL;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0008_NOT_AN_UPDATE_XQUERY;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0009_XQUERY_NOT_COMPILED_IN_DEBUG_MODE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0014_INVALID_ARGUMENT;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0015_CREATEMODULE_NOT_FOUND;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0019_MODULE_ALREADY_REGISTERED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0020_DOCUMENT_ALREADY_EXISTS;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0021_ITEM_TO_LOAD_IS_NOT_NODE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0027_CANNOT_UPDATE_DCTX_WITH_ITERATORS;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0028_INVALID_NODE_URI;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0029_REFERENCE_ALREADY_PRESENT;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0030_NO_CURRENT_REFERENCE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0039_XQUERY_HAS_ITERATOR_ALREADY;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0040_ITERATOR_NOT_OPEN;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0041_ITERATOR_ALREADY_OPEN;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0042_ITERATOR_CLOSED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0070_INVALID_SERIALIZATION_METHOD_FOR_SAX;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0080_CANNOT_RETRIEVE_NODE_REFERENCE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0001_NONEXISTENT_INPUT_FIELD;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0002_INCOMPATIBLE_INPUT_FIELD;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0003_UNRECOGNIZED_CLASS_FIELD;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0004_UNRESOLVED_FIELD_REFERENCE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0005_CLASS_VERSION_TOO_NEW;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0006_CLASS_VERSION_TOO_OLD;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0007_INPUT_ARCHIVE_USED_FOR_OUT_SERIALIZATION;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0008_OUTPUT_ARCHIVE_USED_FOR_IN_SERIALIZATION;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0009_CLASS_NOT_SERIALIZABLE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0010_ITEM_TYPE_NOT_SERIALIZABLE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0011_INPUT_ARCHIVE_NOT_ZORBA_ARCHIVE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0012_INCOMPATIBLE_ARCHIVE_VERSION;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0013_UNABLE_TO_LOAD_QUERY;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0014_INFINITE_CIRCULAR_DEPENDENCIES;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0015_INCOMPATIBLE_BETWEEN_32_AND_64_BITS_OR_LE_AND_BE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0016_CANNOT_LOAD_FROM_RELEASE_TO_DEBUG;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0017_CANNOT_LOAD_FROM_DEBUG_TO_RELEASE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0001_COLLECTION_NOT_DECLARED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0002_COLLECTION_ALREADY_EXISTS;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0003_COLLECTION_DOES_NOT_EXIST;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0004_COLLECTION_CONST_UPDATE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0005_COLLECTION_APPEND_BAD_INSERT;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0006_COLLECTION_QUEUE_BAD_INSERT;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0007_COLLECTION_APPEND_BAD_DELETE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0008_COLLECTION_QUEUE_BAD_DELETE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0009_COLLECTION_QUEUE_BAD_DELETE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0010_COLLECTION_CONST_NODE_UPDATE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0011_COLLECTION_NODE_NOT_FOUND;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0012_COLLECTION_UNORDERED_BAD_OPERATION;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0013_COLLECTION_BAD_DESTROY_INDEXES;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0014_COLLECTION_BAD_DESTROY_ICS;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0015_COLLECTION_BAD_DESTROY_NODES;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0016_COLLECTION_MULTIPLE_CREATES;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0017_NODE_IS_ORPHAN;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0018_NODES_NOT_IN_SAME_COLLECTION;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0020_INDEX_DOMAIN_NODE_NOT_IN_COLLECTION;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0021_INDEX_NOT_DECLARED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0022_INDEX_ALREADY_EXISTS;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0023_INDEX_DOES_NOT_EXIST;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0024_INDEX_UNIQUE_VIOLATION;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0025_INDEX_WRONG_NUMBER_OF_PROBE_ARGS;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0026_INDEX_RANGE_PROBE_NOT_ALLOWED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0027_INDEX_MULTIPLE_CREATES;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0028_INDEX_DOMAIN_HAS_DUPLICATE_NODES;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0029_INDEX_POINT_GENERAL_PROBE_NOT_ALLOWED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0030_INDEX_RANGE_GENERAL_PROBE_NOT_ALLOWED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0034_INDEX_RANGE_VALUE_PROBE_BAD_KEY_TYPES;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0031_IC_NOT_DECLARED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0032_IC_NOT_ACTIVATED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0033_IC_NOT_MET;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0001_COLLECTION_ALREADY_DECLARED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0002_COLLECTION_ALREADY_IMPORTED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0003_COLLECTION_DECL_IN_MAIN_MODULE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0004_COLLECTION_MULTIPLE_PROPERTY_VALUES;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0006_COLLECTION_INVALID_PROPERTY_VALUE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0007_COLLECTION_DECL_IN_FOREIGN_MODULE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0021_INDEX_ALREADY_DECLARED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0022_INDEX_ALREADY_IMPORTED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0023_INDEX_DECL_IN_MAIN_MODULE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0024_INDEX_MULTIPLE_PROPERTY_VALUES;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0026_INDEX_INVALID_PROPERTY_VALUE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0027_INDEX_BAD_KEY_TYPE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0028_INDEX_NOT_DETERMINISTIC;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0029_INDEX_INVALID_DATA_SOURCE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0030_INDEX_NON_CONST_DATA_SOURCE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0031_INDEX_HAS_FREE_VARS;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0032_INDEX_REFERENCES_CTX_ITEM;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0033_INDEX_NON_SIMPLE_EXPR;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0034_INDEX_CANNOT_DO_AUTOMATIC_MAINTENANCE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0035_INDEX_GENERAL_MULTIKEY;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0036_INDEX_DECL_IN_FOREIGN_MODULE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0041_IC_ALREADY_DECLARED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0044_IC_DECL_IN_MAIN_MODULE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0048_IC_DECL_IN_FOREIGN_MODULE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0060_FEATURE_NOT_SUPPORTED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDTY0001_COLLECTION_INVALID_NODE_TYPE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDTY0010_INDEX_DOMAIN_TYPE_ERROR;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDTY0011_INDEX_KEY_TYPE_ERROR;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDTY0012_INDEX_KEY_TYPE_ERROR;
-
-#if defined(ZORBA_WITH_DEBUGGER)
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZGDB0001_CANNOT_CONNECT_TO_CLIENT;
-#endif
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZOSE0001_FILE_NOT_FOUND;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZOSE0002_NOT_PLAIN_FILE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZOSE0003_STREAM_READ_FAILURE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZOSE0004_IO_ERROR;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZOSE0005_DLL_LOAD_FAILED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0001_INDEX_ALREADY_EXISTS;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0002_INDEX_DOES_NOT_EXIST;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0003_INDEX_PARTIAL_KEY_INSERT;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0004_INDEX_PARTIAL_KEY_REMOVE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0005_INDEX_PARTIAL_KEY_PROBE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0006_INDEX_INVALID_BOX_PROBE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0007_INDEX_UNSUPPORTED_PROBE_CONDITION;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0008_COLLECTION_ALREADY_EXISTS;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0009_COLLECTION_NOT_FOUND;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0010_COLLECTION_NODE_ALREADY_IN_COLLECTION;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0011_COLLECTION_NON_ROOT_NODE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0012_COLLECTION_ITEM_MUST_BE_A_NODE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0015_IC_ALREADY_EXISTS;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0016_IC_DOES_NOT_EXIST;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0020_LOADER_IO_ERROR;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0021_LOADER_PARSING_ERROR;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0030_NODEID_ERROR;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0040_TYPE_ERROR;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0041_NAN_COMPARISON;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0045_DUPLICATE_NODE_ERROR;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0050_FUNCTION_NOT_IMPLEMENTED_FOR_ITEMTYPE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0055_STREAMABLE_STRING_CONSUMED;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0060_RANGE_EXCEPTION;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0001;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0002;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0003;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0004;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0005;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0006;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0007;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0008;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0009;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0010;
-
-} // namespace zerr
-
-namespace zwarn {
-
-extern ZORBA_DLL_PUBLIC ZorbaWarningCode ZWST0002_UNKNOWN_ANNOTATION;
-
-extern ZORBA_DLL_PUBLIC ZorbaWarningCode ZWST0003_FAKE_SEQUENTIAL_FUNCTION;
-
-extern ZORBA_DLL_PUBLIC ZorbaWarningCode ZWST0004_AMBIGUOUS_SEQUENTIAL_FLWOR;
-
-} // namespace zwarn
-} // namespace zorba
-#endif /* ZORBA_DIAGNOSTIC_LIST_API_H */
-/*
- * Local variables:
- * mode: c++
- * End:
- */ 
+/**
+ * Copyright 2006-2011 The FLWOR Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
+ /*
+  * THIS FILE IS GENERATED.
+  * PLEASE DO NOT EDIT.
+  */
+ 
+#ifndef ZORBA_DIAGNOSTIC_LIST_API_H
+#define ZORBA_DIAGNOSTIC_LIST_API_H
+
+#include <zorba/config.h>
+#include <zorba/error.h>
+#include <zorba/xquery_warning.h>
+
+namespace zorba {
+
+namespace err {
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0001;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XPDY0002;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0003;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XPTY0004;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0005;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0008;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0009;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0012;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0013;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0017;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XPTY0018;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XPTY0019;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XPTY0020;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0022;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQTY0024;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0025;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0026;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0027;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQTY0030;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0031;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0032;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0033;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0034;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0035;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0036;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0038;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0039;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0040;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0041;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0044;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0045;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0046;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0047;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0048;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0049;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XPDY0050;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0051;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0054;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0055;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0057;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0058;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0059;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0060;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0061;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0064;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0065;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0066;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0067;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0068;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0069;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0070;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0071;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0072;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0074;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0076;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0079;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0080;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0081;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XPST0083;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0084;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0085;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQTY0086;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0087;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0088;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0089;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0090;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0091;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0092;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0093;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQDY0096;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0098;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0106;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XQST0111;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XTDE1310;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XTDE1340;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XTDE1350;
+
+#if !defined(ZORBA_NO_FULL_TEXT)
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FTST0008;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FTST0009;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FTDY0016;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FTDY0017;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FTST0018;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FTST0019;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FTDY0020;
+#endif
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOER0000;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOAR0001;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOAR0002;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCA0001;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCA0002;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCA0003;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCA0005;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCA0006;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCH0001;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCH0002;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCH0003;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOCH0004;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FODC0001;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FODC0002;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FODC0003;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FODC0004;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FODC0005;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FODC0006;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FODC0007;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FODF1280;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FODF1310;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FODT0001;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FODT0002;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FODT0003;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOFI0001;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOFI0002;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FONS0004;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FONS0005;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FORG0001;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FORG0002;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FORG0003;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FORG0004;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FORG0005;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FORG0006;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FORG0008;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FORG0009;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FORX0001;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FORX0002;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FORX0003;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FORX0004;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOTY0012;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOTY0013;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOTY0014;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOTY0015;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0001;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0002;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0003;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0004;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0005;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0006;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0007;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0008;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0009;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0010;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0011;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0012;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0013;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0014;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0015;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0016;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0017;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0018;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0019;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0021;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUTY0022;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0023;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0024;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0027;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0028;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0029;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0030;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode XUDY0031;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOUP0001;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOUP0002;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode SENR0001;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode SERE0003;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode SEPM0004;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode SERE0005;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode SERE0006;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode SESU0007;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode SERE0008;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode SEPM0009;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode SEPM0010;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode SESU0011;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode SERE0012;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode SESU0013;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode SERE0014;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode SERE0015;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode SEPM0016;
+
+} // namespace err
+
+namespace zerr {
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0000_NO_ERROR;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0001_DYNAMIC_RUNTIME_ERROR;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0002_ASSERT_FAILED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0003_INTERNAL_ERROR;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0004_NOT_IMPLEMENTED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0005_NOT_ENABLED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0007_FUNCTION_SIGNATURE_NOT_EQUAL;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0008_FUNCTION_IMPL_NOT_FOUND;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0009_FUNCTION_LOCALNAME_MISMATCH;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0010_FUNCTION_NOT_SEQUENTIAL;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0013_FXCHARHEAP_EXCEPTION;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0016_RESERVED_MODULE_TARGET_NAMESPACE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0017_FILE_ACCESS_DISABLED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0020_INVALID_URI;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0021_USER_ERROR;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0024_XML_DOES_NOT_MATCH_SCHEMA;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0025_ITEM_CREATION_FAILED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0026_INVALID_ENUM_VALUE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0028_TARGET_NAMESPACE_NOT_PROVIDED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0029_URI_ACCESS_DENIED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0030_DEADLOCK;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0031_MALFORMED_XQUERYX_INPUT;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0032_ERROR_TRANSFORMING_XQUERYX_TO_XQUERY;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0036_BREAKITERATOR_CREATION_FAILED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0037_INAPPROPRIATE_MODULE_VERSION;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0038_INAPPROPRIATE_ZORBA_VERSION;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0039_INVALID_VERSION_SPECIFICATION;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0040_MISSING_NONDETERMINISTIC_ANNOTATION;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0050_FEATURE_NOT_AVAILABLE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP0060_OPTION_NOT_KNOWN;
+
+#if !defined(ZORBA_NO_FULL_TEXT)
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP8401_THESAURUS_VERSION_MISMATCH;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP8402_THESAURUS_ENDIANNESS_MISMATCH;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQP8403_THESAURUS_DATA_ERROR;
+#endif
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQD0001_PREFIX_NOT_DECLARED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQD0002_DOCUMENT_NOT_VALID;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQD0003_INCONSISTENT_PARSE_FRAGMENT_OPTIONS;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQD0004_INVALID_PARAMETER;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZXQD0005_INVALID_KEY_FOR_MAP;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0002_XQUERY_COMPILATION_FAILED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0003_XQUERY_NOT_COMPILED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0004_XQUERY_ALREADY_COMPILED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0005_XQUERY_ALREADY_EXECUTING;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0006_XQUERY_ALREADY_CLOSED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0007_CANNOT_SERIALIZE_PUL;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0008_NOT_AN_UPDATE_XQUERY;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0009_XQUERY_NOT_COMPILED_IN_DEBUG_MODE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0014_INVALID_ARGUMENT;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0015_CREATEMODULE_NOT_FOUND;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0019_MODULE_ALREADY_REGISTERED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0020_DOCUMENT_ALREADY_EXISTS;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0021_ITEM_TO_LOAD_IS_NOT_NODE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0027_CANNOT_UPDATE_DCTX_WITH_ITERATORS;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0028_INVALID_NODE_URI;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0029_REFERENCE_ALREADY_PRESENT;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0030_NO_CURRENT_REFERENCE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0039_XQUERY_HAS_ITERATOR_ALREADY;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0040_ITERATOR_NOT_OPEN;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0041_ITERATOR_ALREADY_OPEN;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0042_ITERATOR_CLOSED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0070_INVALID_SERIALIZATION_METHOD_FOR_SAX;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0080_CANNOT_RETRIEVE_NODE_REFERENCE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0001_NONEXISTENT_INPUT_FIELD;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0002_INCOMPATIBLE_INPUT_FIELD;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0003_UNRECOGNIZED_CLASS_FIELD;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0004_UNRESOLVED_FIELD_REFERENCE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0005_CLASS_VERSION_TOO_NEW;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0006_CLASS_VERSION_TOO_OLD;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0007_INPUT_ARCHIVE_USED_FOR_OUT_SERIALIZATION;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0008_OUTPUT_ARCHIVE_USED_FOR_IN_SERIALIZATION;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0009_CLASS_NOT_SERIALIZABLE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0010_ITEM_TYPE_NOT_SERIALIZABLE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0011_INPUT_ARCHIVE_NOT_ZORBA_ARCHIVE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0012_INCOMPATIBLE_ARCHIVE_VERSION;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0013_UNABLE_TO_LOAD_QUERY;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0014_INFINITE_CIRCULAR_DEPENDENCIES;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0015_INCOMPATIBLE_BETWEEN_32_AND_64_BITS_OR_LE_AND_BE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0016_CANNOT_LOAD_FROM_RELEASE_TO_DEBUG;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZCSE0017_CANNOT_LOAD_FROM_DEBUG_TO_RELEASE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0001_COLLECTION_NOT_DECLARED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0002_COLLECTION_ALREADY_EXISTS;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0003_COLLECTION_DOES_NOT_EXIST;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0004_COLLECTION_CONST_UPDATE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0005_COLLECTION_APPEND_BAD_INSERT;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0006_COLLECTION_QUEUE_BAD_INSERT;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0007_COLLECTION_APPEND_BAD_DELETE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0008_COLLECTION_QUEUE_BAD_DELETE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0009_COLLECTION_QUEUE_BAD_DELETE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0010_COLLECTION_CONST_NODE_UPDATE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0011_COLLECTION_NODE_NOT_FOUND;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0012_COLLECTION_UNORDERED_BAD_OPERATION;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0013_COLLECTION_BAD_DESTROY_INDEXES;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0014_COLLECTION_BAD_DESTROY_ICS;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0015_COLLECTION_BAD_DESTROY_NODES;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0016_COLLECTION_MULTIPLE_CREATES;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0017_NODE_IS_ORPHAN;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0018_NODES_NOT_IN_SAME_COLLECTION;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0020_INDEX_DOMAIN_NODE_NOT_IN_COLLECTION;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0021_INDEX_NOT_DECLARED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0022_INDEX_ALREADY_EXISTS;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0023_INDEX_DOES_NOT_EXIST;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0024_INDEX_UNIQUE_VIOLATION;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0025_INDEX_WRONG_NUMBER_OF_PROBE_ARGS;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0026_INDEX_RANGE_PROBE_NOT_ALLOWED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0027_INDEX_MULTIPLE_CREATES;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0028_INDEX_DOMAIN_HAS_DUPLICATE_NODES;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0029_INDEX_POINT_GENERAL_PROBE_NOT_ALLOWED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0030_INDEX_RANGE_GENERAL_PROBE_NOT_ALLOWED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0034_INDEX_RANGE_VALUE_PROBE_BAD_KEY_TYPES;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0031_IC_NOT_DECLARED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0032_IC_NOT_ACTIVATED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDDY0033_IC_NOT_MET;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0001_COLLECTION_ALREADY_DECLARED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0002_COLLECTION_ALREADY_IMPORTED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0003_COLLECTION_DECL_IN_MAIN_MODULE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0004_COLLECTION_MULTIPLE_PROPERTY_VALUES;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0006_COLLECTION_INVALID_PROPERTY_VALUE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0007_COLLECTION_DECL_IN_FOREIGN_MODULE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0021_INDEX_ALREADY_DECLARED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0022_INDEX_ALREADY_IMPORTED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0023_INDEX_DECL_IN_MAIN_MODULE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0024_INDEX_MULTIPLE_PROPERTY_VALUES;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0026_INDEX_INVALID_PROPERTY_VALUE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0027_INDEX_BAD_KEY_TYPE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0028_INDEX_NOT_DETERMINISTIC;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0029_INDEX_INVALID_DATA_SOURCE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0030_INDEX_NON_CONST_DATA_SOURCE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0031_INDEX_HAS_FREE_VARS;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0032_INDEX_REFERENCES_CTX_ITEM;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0033_INDEX_NON_SIMPLE_EXPR;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0034_INDEX_CANNOT_DO_AUTOMATIC_MAINTENANCE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0035_INDEX_GENERAL_MULTIKEY;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0036_INDEX_DECL_IN_FOREIGN_MODULE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0041_IC_ALREADY_DECLARED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0044_IC_DECL_IN_MAIN_MODULE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0048_IC_DECL_IN_FOREIGN_MODULE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDST0060_FEATURE_NOT_SUPPORTED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDTY0001_COLLECTION_INVALID_NODE_TYPE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDTY0010_INDEX_DOMAIN_TYPE_ERROR;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDTY0011_INDEX_KEY_TYPE_ERROR;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZDTY0012_INDEX_KEY_TYPE_ERROR;
+
+#if defined(ZORBA_WITH_DEBUGGER)
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZGDB0001_CANNOT_CONNECT_TO_CLIENT;
+#endif
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZOSE0001_FILE_NOT_FOUND;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZOSE0002_NOT_PLAIN_FILE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZOSE0003_STREAM_READ_FAILURE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZOSE0004_IO_ERROR;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZOSE0005_DLL_LOAD_FAILED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0001_INDEX_ALREADY_EXISTS;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0002_INDEX_DOES_NOT_EXIST;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0003_INDEX_PARTIAL_KEY_INSERT;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0004_INDEX_PARTIAL_KEY_REMOVE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0005_INDEX_PARTIAL_KEY_PROBE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0006_INDEX_INVALID_BOX_PROBE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0007_INDEX_UNSUPPORTED_PROBE_CONDITION;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0008_COLLECTION_ALREADY_EXISTS;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0009_COLLECTION_NOT_FOUND;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0010_COLLECTION_NODE_ALREADY_IN_COLLECTION;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0011_COLLECTION_NON_ROOT_NODE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0012_COLLECTION_ITEM_MUST_BE_A_NODE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0015_IC_ALREADY_EXISTS;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0016_IC_DOES_NOT_EXIST;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0020_LOADER_IO_ERROR;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0021_LOADER_PARSING_ERROR;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0030_NODEID_ERROR;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0040_TYPE_ERROR;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0041_NAN_COMPARISON;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0045_DUPLICATE_NODE_ERROR;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0050_FUNCTION_NOT_IMPLEMENTED_FOR_ITEMTYPE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0055_STREAMABLE_STRING_CONSUMED;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZSTR0060_RANGE_EXCEPTION;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0001;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0002;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0003;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0004;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0005;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0006;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0007;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0008;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0009;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode XSST0010;
+
+} // namespace zerr
+
+namespace zwarn {
+
+extern ZORBA_DLL_PUBLIC ZorbaWarningCode ZWST0002_UNKNOWN_ANNOTATION;
+
+extern ZORBA_DLL_PUBLIC ZorbaWarningCode ZWST0003_FAKE_SEQUENTIAL_FUNCTION;
+
+extern ZORBA_DLL_PUBLIC ZorbaWarningCode ZWST0004_AMBIGUOUS_SEQUENTIAL_FLWOR;
+
+} // namespace zwarn
+} // namespace zorba
+#endif /* ZORBA_DIAGNOSTIC_LIST_API_H */
+/*
+ * Local variables:
+ * mode: c++
+ * End:
+ */ 

=== modified file 'include/zorba/static_context.h'
--- include/zorba/static_context.h	2011-08-31 13:17:59 +0000
+++ include/zorba/static_context.h	2011-11-03 16:28:29 +0000
@@ -576,6 +576,14 @@
       virtual audit::Event*
       getAuditEvent() = 0;
 
+	  /** \brief Returns the QName of all external variables within the
+	    *        static context
+	    *
+	    * @param aVars variable to store the results.
+	    * @throw ZorbaException if an error occured.
+	    */
+	  virtual bool
+	  getExternalVariables(std::vector<Item>& aVars) const = 0;
 };
 } /* namespace zorba */
 #endif

=== modified file 'include/zorba/xquery.h'
--- include/zorba/xquery.h	2011-07-25 17:40:50 +0000
+++ include/zorba/xquery.h	2011-11-03 16:28:29 +0000
@@ -315,7 +315,18 @@
    */
   virtual bool
   isUpdating() const = 0;
-  
+  
+   /** 
+   * \brief Check if this query is a sequential query.
+   *
+   * @return true if the query is a sequential query, false otherwise.
+   * @throw SystemException if the query is not compiled or has been closed.
+   * @see close()
+   * @see compile(...)
+   */
+  virtual bool 
+  isSequential() const = 0;
+
   /** \brief Save the compiled execution plan.
    *
    * After compiling an XQuery program you can save the execution plan in some
@@ -524,6 +535,13 @@
   virtual StaticCollectionManager*
   getStaticCollectionManager() const = 0;
 
+  /** \brief Returns the QName of all external variables 
+   *
+   * @param aVars variable to store the results.
+   * @throw ZorbaException if an error occured.
+   */
+  virtual bool
+  getExternalVariables(std::vector<Item>& aVars) const = 0;
 
   /**
    *

=== modified file 'modules/ExternalModules.conf'
--- modules/ExternalModules.conf	2011-10-11 22:26:10 +0000
+++ modules/ExternalModules.conf	2011-11-03 16:28:29 +0000
@@ -39,3 +39,4 @@
 process         bzr  lp:zorba/process-module             zorba-2.0.3
 security        bzr  lp:zorba/security-module            zorba-2.0.3
 system          bzr  lp:zorba/system-module              zorba-2.0.3
+xqxq            bzr  lp:~juan457/zorba/xqxq-module-beta

=== modified file 'modules/com/zorba-xquery/www/modules/pregenerated/errors.xq'
--- modules/com/zorba-xquery/www/modules/pregenerated/errors.xq	2011-10-19 15:28:51 +0000
+++ modules/com/zorba-xquery/www/modules/pregenerated/errors.xq	2011-11-03 16:28:29 +0000
@@ -1,779 +1,779 @@
-(:
- : Copyright 2006-2011 The FLWOR Foundation.
- :
- : Licensed under the Apache License, Version 2.0 (the "License");
- : you may not use this file except in compliance with the License.
- : You may obtain a copy of the License at
- :
- : http://www.apache.org/licenses/LICENSE-2.0
- :
- : Unless required by applicable law or agreed to in writing, software
- : distributed under the License is distributed on an "AS IS" BASIS,
- : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- : See the License for the specific language governing permissions and
- : limitations under the License.
- :)
- 
- (:
-  : THIS FILE IS GENERATED.
-  : PLEASE DO NOT EDIT.
-  :)
- (:~
- : This module contains one declaration of a variable for each
- : error of the http://www.zorba-xquery.com/errors namespace.
- : The variables serves as documentation for the errors but can also
- : be used in the code. For example, one useful scenario is to compare
- : an error caught in the catch clause of a try-catch expression with one of
- : the variables.
- :
- : @author Carlos Lopez
- :
- : @project error
- :)
-
-xquery version '1.0';
-
-module namespace zerr = 'http://www.zorba-xquery.com/errors';
-
-declare variable $zerr:NS := 'http://www.zorba-xquery.com/errors';
-
-(:~
- :
- : An "error" constant for "no error."
- : 
-:)
-declare variable $zerr:ZXQP0000 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0000");
-
-(:~
-:)
-declare variable $zerr:ZXQP0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0001");
-
-(:~
- :
- : A Zorba programming assertion failed.  If this error occurs, it is a bug
- : and should be reported.
- : 
-:)
-declare variable $zerr:ZXQP0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0002");
-
-(:~
- :
- : Something unexpected occurred in Zorba.  If this error occurs, it is a
- : bug and should be reported.
- : 
-:)
-declare variable $zerr:ZXQP0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0003");
-
-(:~
- :
- : A particular XQuery feature has not been implemented by Zorba.
- : 
-:)
-declare variable $zerr:ZXQP0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0004");
-
-(:~
- :
- : A particular XQuery feature has been implemented by Zorba, but the
- : feature has not been enabled in the current build.
- : 
-:)
-declare variable $zerr:ZXQP0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0005");
-
-(:~
-:)
-declare variable $zerr:ZXQP0007 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0007");
-
-(:~
-:)
-declare variable $zerr:ZXQP0008 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0008");
-
-(:~
-:)
-declare variable $zerr:ZXQP0009 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0009");
-
-(:~
-:)
-declare variable $zerr:ZXQP0010 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0010");
-
-(:~
-:)
-declare variable $zerr:ZXQP0013 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0013");
-
-(:~
-:)
-declare variable $zerr:ZXQP0016 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0016");
-
-(:~
-:)
-declare variable $zerr:ZXQP0017 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0017");
-
-(:~
-:)
-declare variable $zerr:ZXQP0020 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0020");
-
-(:~
-:)
-declare variable $zerr:ZXQP0021 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0021");
-
-(:~
-:)
-declare variable $zerr:ZXQP0024 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0024");
-
-(:~
-:)
-declare variable $zerr:ZXQP0025 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0025");
-
-(:~
-:)
-declare variable $zerr:ZXQP0026 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0026");
-
-(:~
-:)
-declare variable $zerr:ZXQP0028 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0028");
-
-(:~
-:)
-declare variable $zerr:ZXQP0029 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0029");
-
-(:~
-:)
-declare variable $zerr:ZXQP0030 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0030");
-
-(:~
-:)
-declare variable $zerr:ZXQP0031 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0031");
-
-(:~
-:)
-declare variable $zerr:ZXQP0032 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0032");
-
-(:~
-:)
-declare variable $zerr:ZXQP0036 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0036");
-
-(:~
-:)
-declare variable $zerr:ZXQP0037 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0037");
-
-(:~
-:)
-declare variable $zerr:ZXQP0038 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0038");
-
-(:~
-:)
-declare variable $zerr:ZXQP0039 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0039");
-
-(:~
-:)
-declare variable $zerr:ZXQP0040 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0040");
-
-(:~
-:)
-declare variable $zerr:ZXQP0050 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0050");
-
-(:~
-:)
-declare variable $zerr:ZXQP0060 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0060");
-
-(:~
- :
- : The version of the thesaurus is not the expected version.
- : 
-:)
-declare variable $zerr:ZXQP8401 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP8401");
-
-(:~
- :
- : 
-:)
-declare variable $zerr:ZXQP8402 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP8402");
-
-(:~
- :
- : The thesaurus data contains an unexpected value.
- : 
-:)
-declare variable $zerr:ZXQP8403 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP8403");
-
-(:~
-:)
-declare variable $zerr:ZXQD0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQD0001");
-
-(:~
-:)
-declare variable $zerr:ZXQD0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQD0002");
-
-(:~
-:)
-declare variable $zerr:ZXQD0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQD0003");
-
-(:~
-:)
-declare variable $zerr:ZXQD0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQD0004");
-
-(:~
-:)
-declare variable $zerr:ZXQD0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQD0005");
-
-(:~
-:)
-declare variable $zerr:ZAPI0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0002");
-
-(:~
-:)
-declare variable $zerr:ZAPI0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0003");
-
-(:~
-:)
-declare variable $zerr:ZAPI0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0004");
-
-(:~
-:)
-declare variable $zerr:ZAPI0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0005");
-
-(:~
-:)
-declare variable $zerr:ZAPI0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0006");
-
-(:~
-:)
-declare variable $zerr:ZAPI0007 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0007");
-
-(:~
-:)
-declare variable $zerr:ZAPI0008 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0008");
-
-(:~
-:)
-declare variable $zerr:ZAPI0009 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0009");
-
-(:~
-:)
-declare variable $zerr:ZAPI0014 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0014");
-
-(:~
-:)
-declare variable $zerr:ZAPI0015 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0015");
-
-(:~
-:)
-declare variable $zerr:ZAPI0019 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0019");
-
-(:~
-:)
-declare variable $zerr:ZAPI0020 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0020");
-
-(:~
-:)
-declare variable $zerr:ZAPI0021 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0021");
-
-(:~
-:)
-declare variable $zerr:ZAPI0027 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0027");
-
-(:~
-:)
-declare variable $zerr:ZAPI0028 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0028");
-
-(:~
-:)
-declare variable $zerr:ZAPI0029 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0029");
-
-(:~
-:)
-declare variable $zerr:ZAPI0030 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0030");
-
-(:~
-:)
-declare variable $zerr:ZAPI0039 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0039");
-
-(:~
-:)
-declare variable $zerr:ZAPI0040 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0040");
-
-(:~
-:)
-declare variable $zerr:ZAPI0041 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0041");
-
-(:~
-:)
-declare variable $zerr:ZAPI0042 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0042");
-
-(:~
-:)
-declare variable $zerr:ZAPI0070 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0070");
-
-(:~
-:)
-declare variable $zerr:ZAPI0080 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0080");
-
-(:~
-:)
-declare variable $zerr:ZCSE0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0001");
-
-(:~
-:)
-declare variable $zerr:ZCSE0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0002");
-
-(:~
-:)
-declare variable $zerr:ZCSE0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0003");
-
-(:~
-:)
-declare variable $zerr:ZCSE0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0004");
-
-(:~
-:)
-declare variable $zerr:ZCSE0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0005");
-
-(:~
-:)
-declare variable $zerr:ZCSE0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0006");
-
-(:~
-:)
-declare variable $zerr:ZCSE0007 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0007");
-
-(:~
-:)
-declare variable $zerr:ZCSE0008 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0008");
-
-(:~
-:)
-declare variable $zerr:ZCSE0009 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0009");
-
-(:~
-:)
-declare variable $zerr:ZCSE0010 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0010");
-
-(:~
-:)
-declare variable $zerr:ZCSE0011 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0011");
-
-(:~
-:)
-declare variable $zerr:ZCSE0012 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0012");
-
-(:~
-:)
-declare variable $zerr:ZCSE0013 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0013");
-
-(:~
-:)
-declare variable $zerr:ZCSE0014 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0014");
-
-(:~
-:)
-declare variable $zerr:ZCSE0015 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0015");
-
-(:~
-:)
-declare variable $zerr:ZCSE0016 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0016");
-
-(:~
-:)
-declare variable $zerr:ZCSE0017 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0017");
-
-(:~
-:)
-declare variable $zerr:ZDDY0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0001");
-
-(:~
-:)
-declare variable $zerr:ZDDY0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0002");
-
-(:~
-:)
-declare variable $zerr:ZDDY0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0003");
-
-(:~
-:)
-declare variable $zerr:ZDDY0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0004");
-
-(:~
-:)
-declare variable $zerr:ZDDY0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0005");
-
-(:~
-:)
-declare variable $zerr:ZDDY0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0006");
-
-(:~
-:)
-declare variable $zerr:ZDDY0007 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0007");
-
-(:~
-:)
-declare variable $zerr:ZDDY0008 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0008");
-
-(:~
-:)
-declare variable $zerr:ZDDY0009 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0009");
-
-(:~
-:)
-declare variable $zerr:ZDDY0010 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0010");
-
-(:~
-:)
-declare variable $zerr:ZDDY0011 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0011");
-
-(:~
-:)
-declare variable $zerr:ZDDY0012 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0012");
-
-(:~
-:)
-declare variable $zerr:ZDDY0013 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0013");
-
-(:~
-:)
-declare variable $zerr:ZDDY0014 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0014");
-
-(:~
-:)
-declare variable $zerr:ZDDY0015 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0015");
-
-(:~
-:)
-declare variable $zerr:ZDDY0016 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0016");
-
-(:~
-:)
-declare variable $zerr:ZDDY0017 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0017");
-
-(:~
-:)
-declare variable $zerr:ZDDY0018 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0018");
-
-(:~
-:)
-declare variable $zerr:ZDDY0020 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0020");
-
-(:~
-:)
-declare variable $zerr:ZDDY0021 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0021");
-
-(:~
-:)
-declare variable $zerr:ZDDY0022 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0022");
-
-(:~
-:)
-declare variable $zerr:ZDDY0023 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0023");
-
-(:~
-:)
-declare variable $zerr:ZDDY0024 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0024");
-
-(:~
-:)
-declare variable $zerr:ZDDY0025 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0025");
-
-(:~
-:)
-declare variable $zerr:ZDDY0026 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0026");
-
-(:~
-:)
-declare variable $zerr:ZDDY0027 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0027");
-
-(:~
-:)
-declare variable $zerr:ZDDY0028 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0028");
-
-(:~
-:)
-declare variable $zerr:ZDDY0029 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0029");
-
-(:~
-:)
-declare variable $zerr:ZDDY0030 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0030");
-
-(:~
-:)
-declare variable $zerr:ZDDY0034 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0034");
-
-(:~
-:)
-declare variable $zerr:ZDDY0031 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0031");
-
-(:~
-:)
-declare variable $zerr:ZDDY0032 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0032");
-
-(:~
-:)
-declare variable $zerr:ZDDY0033 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0033");
-
-(:~
-:)
-declare variable $zerr:ZDST0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0001");
-
-(:~
-:)
-declare variable $zerr:ZDST0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0002");
-
-(:~
-:)
-declare variable $zerr:ZDST0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0003");
-
-(:~
-:)
-declare variable $zerr:ZDST0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0004");
-
-(:~
-:)
-declare variable $zerr:ZDST0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0006");
-
-(:~
-:)
-declare variable $zerr:ZDST0007 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0007");
-
-(:~
-:)
-declare variable $zerr:ZDST0021 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0021");
-
-(:~
-:)
-declare variable $zerr:ZDST0022 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0022");
-
-(:~
-:)
-declare variable $zerr:ZDST0023 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0023");
-
-(:~
-:)
-declare variable $zerr:ZDST0024 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0024");
-
-(:~
-:)
-declare variable $zerr:ZDST0026 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0026");
-
-(:~
-:)
-declare variable $zerr:ZDST0027 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0027");
-
-(:~
-:)
-declare variable $zerr:ZDST0028 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0028");
-
-(:~
-:)
-declare variable $zerr:ZDST0029 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0029");
-
-(:~
-:)
-declare variable $zerr:ZDST0030 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0030");
-
-(:~
-:)
-declare variable $zerr:ZDST0031 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0031");
-
-(:~
-:)
-declare variable $zerr:ZDST0032 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0032");
-
-(:~
-:)
-declare variable $zerr:ZDST0033 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0033");
-
-(:~
-:)
-declare variable $zerr:ZDST0034 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0034");
-
-(:~
-:)
-declare variable $zerr:ZDST0035 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0035");
-
-(:~
-:)
-declare variable $zerr:ZDST0036 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0036");
-
-(:~
-:)
-declare variable $zerr:ZDST0041 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0041");
-
-(:~
-:)
-declare variable $zerr:ZDST0044 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0044");
-
-(:~
-:)
-declare variable $zerr:ZDST0048 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0048");
-
-(:~
-:)
-declare variable $zerr:ZDST0060 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0060");
-
-(:~
-:)
-declare variable $zerr:ZDTY0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZDTY0001");
-
-(:~
-:)
-declare variable $zerr:ZDTY0010 as xs:QName := fn:QName($zerr:NS, "zerr:ZDTY0010");
-
-(:~
-:)
-declare variable $zerr:ZDTY0011 as xs:QName := fn:QName($zerr:NS, "zerr:ZDTY0011");
-
-(:~
-:)
-declare variable $zerr:ZDTY0012 as xs:QName := fn:QName($zerr:NS, "zerr:ZDTY0012");
-
-
-declare variable $zerr:ZGDB0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZGDB0001");
-
-(:~
-:)
-declare variable $zerr:ZOSE0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZOSE0001");
-
-(:~
-:)
-declare variable $zerr:ZOSE0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZOSE0002");
-
-(:~
-:)
-declare variable $zerr:ZOSE0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZOSE0003");
-
-(:~
-:)
-declare variable $zerr:ZOSE0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZOSE0004");
-
-(:~
-:)
-declare variable $zerr:ZOSE0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZOSE0005");
-
-(:~
-:)
-declare variable $zerr:ZSTR0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0001");
-
-(:~
-:)
-declare variable $zerr:ZSTR0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0002");
-
-(:~
-:)
-declare variable $zerr:ZSTR0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0003");
-
-(:~
-:)
-declare variable $zerr:ZSTR0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0004");
-
-(:~
-:)
-declare variable $zerr:ZSTR0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0005");
-
-(:~
-:)
-declare variable $zerr:ZSTR0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0006");
-
-(:~
-:)
-declare variable $zerr:ZSTR0007 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0007");
-
-(:~
-:)
-declare variable $zerr:ZSTR0008 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0008");
-
-(:~
-:)
-declare variable $zerr:ZSTR0009 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0009");
-
-(:~
-:)
-declare variable $zerr:ZSTR0010 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0010");
-
-(:~
-:)
-declare variable $zerr:ZSTR0011 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0011");
-
-(:~
-:)
-declare variable $zerr:ZSTR0012 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0012");
-
-(:~
-:)
-declare variable $zerr:ZSTR0015 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0015");
-
-(:~
-:)
-declare variable $zerr:ZSTR0016 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0016");
-
-(:~
-:)
-declare variable $zerr:ZSTR0020 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0020");
-
-(:~
-:)
-declare variable $zerr:ZSTR0021 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0021");
-
-(:~
-:)
-declare variable $zerr:ZSTR0030 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0030");
-
-(:~
-:)
-declare variable $zerr:ZSTR0040 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0040");
-
-(:~
-:)
-declare variable $zerr:ZSTR0041 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0041");
-
-(:~
-:)
-declare variable $zerr:ZSTR0045 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0045");
-
-(:~
-:)
-declare variable $zerr:ZSTR0050 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0050");
-
-(:~
-:)
-declare variable $zerr:ZSTR0055 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0055");
-
-(:~
-:)
-declare variable $zerr:ZSTR0060 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0060");
-
-(:~
-:)
-declare variable $zerr:XSST0001 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0001");
-
-(:~
-:)
-declare variable $zerr:XSST0002 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0002");
-
-(:~
-:)
-declare variable $zerr:XSST0003 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0003");
-
-(:~
-:)
-declare variable $zerr:XSST0004 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0004");
-
-(:~
-:)
-declare variable $zerr:XSST0005 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0005");
-
-(:~
-:)
-declare variable $zerr:XSST0006 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0006");
-
-(:~
-:)
-declare variable $zerr:XSST0007 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0007");
-
-(:~
-:)
-declare variable $zerr:XSST0008 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0008");
-
-(:~
-:)
-declare variable $zerr:XSST0009 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0009");
-
-(:~
-:)
+(:
+ : Copyright 2006-2011 The FLWOR Foundation.
+ :
+ : Licensed under the Apache License, Version 2.0 (the "License");
+ : you may not use this file except in compliance with the License.
+ : You may obtain a copy of the License at
+ :
+ : http://www.apache.org/licenses/LICENSE-2.0
+ :
+ : Unless required by applicable law or agreed to in writing, software
+ : distributed under the License is distributed on an "AS IS" BASIS,
+ : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ : See the License for the specific language governing permissions and
+ : limitations under the License.
+ :)
+ 
+ (:
+  : THIS FILE IS GENERATED.
+  : PLEASE DO NOT EDIT.
+  :)
+ (:~
+ : This module contains one declaration of a variable for each
+ : error of the http://www.zorba-xquery.com/errors namespace.
+ : The variables serves as documentation for the errors but can also
+ : be used in the code. For example, one useful scenario is to compare
+ : an error caught in the catch clause of a try-catch expression with one of
+ : the variables.
+ :
+ : @author Carlos Lopez
+ :
+ : @project error
+ :)
+
+xquery version '1.0';
+
+module namespace zerr = 'http://www.zorba-xquery.com/errors';
+
+declare variable $zerr:NS := 'http://www.zorba-xquery.com/errors';
+
+(:~
+ :
+ : An "error" constant for "no error."
+ : 
+:)
+declare variable $zerr:ZXQP0000 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0000");
+
+(:~
+:)
+declare variable $zerr:ZXQP0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0001");
+
+(:~
+ :
+ : A Zorba programming assertion failed.  If this error occurs, it is a bug
+ : and should be reported.
+ : 
+:)
+declare variable $zerr:ZXQP0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0002");
+
+(:~
+ :
+ : Something unexpected occurred in Zorba.  If this error occurs, it is a
+ : bug and should be reported.
+ : 
+:)
+declare variable $zerr:ZXQP0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0003");
+
+(:~
+ :
+ : A particular XQuery feature has not been implemented by Zorba.
+ : 
+:)
+declare variable $zerr:ZXQP0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0004");
+
+(:~
+ :
+ : A particular XQuery feature has been implemented by Zorba, but the
+ : feature has not been enabled in the current build.
+ : 
+:)
+declare variable $zerr:ZXQP0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0005");
+
+(:~
+:)
+declare variable $zerr:ZXQP0007 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0007");
+
+(:~
+:)
+declare variable $zerr:ZXQP0008 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0008");
+
+(:~
+:)
+declare variable $zerr:ZXQP0009 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0009");
+
+(:~
+:)
+declare variable $zerr:ZXQP0010 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0010");
+
+(:~
+:)
+declare variable $zerr:ZXQP0013 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0013");
+
+(:~
+:)
+declare variable $zerr:ZXQP0016 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0016");
+
+(:~
+:)
+declare variable $zerr:ZXQP0017 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0017");
+
+(:~
+:)
+declare variable $zerr:ZXQP0020 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0020");
+
+(:~
+:)
+declare variable $zerr:ZXQP0021 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0021");
+
+(:~
+:)
+declare variable $zerr:ZXQP0024 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0024");
+
+(:~
+:)
+declare variable $zerr:ZXQP0025 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0025");
+
+(:~
+:)
+declare variable $zerr:ZXQP0026 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0026");
+
+(:~
+:)
+declare variable $zerr:ZXQP0028 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0028");
+
+(:~
+:)
+declare variable $zerr:ZXQP0029 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0029");
+
+(:~
+:)
+declare variable $zerr:ZXQP0030 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0030");
+
+(:~
+:)
+declare variable $zerr:ZXQP0031 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0031");
+
+(:~
+:)
+declare variable $zerr:ZXQP0032 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0032");
+
+(:~
+:)
+declare variable $zerr:ZXQP0036 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0036");
+
+(:~
+:)
+declare variable $zerr:ZXQP0037 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0037");
+
+(:~
+:)
+declare variable $zerr:ZXQP0038 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0038");
+
+(:~
+:)
+declare variable $zerr:ZXQP0039 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0039");
+
+(:~
+:)
+declare variable $zerr:ZXQP0040 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0040");
+
+(:~
+:)
+declare variable $zerr:ZXQP0050 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0050");
+
+(:~
+:)
+declare variable $zerr:ZXQP0060 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0060");
+
+(:~
+ :
+ : The version of the thesaurus is not the expected version.
+ : 
+:)
+declare variable $zerr:ZXQP8401 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP8401");
+
+(:~
+ :
+ : 
+:)
+declare variable $zerr:ZXQP8402 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP8402");
+
+(:~
+ :
+ : The thesaurus data contains an unexpected value.
+ : 
+:)
+declare variable $zerr:ZXQP8403 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP8403");
+
+(:~
+:)
+declare variable $zerr:ZXQD0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQD0001");
+
+(:~
+:)
+declare variable $zerr:ZXQD0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQD0002");
+
+(:~
+:)
+declare variable $zerr:ZXQD0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQD0003");
+
+(:~
+:)
+declare variable $zerr:ZXQD0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQD0004");
+
+(:~
+:)
+declare variable $zerr:ZXQD0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQD0005");
+
+(:~
+:)
+declare variable $zerr:ZAPI0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0002");
+
+(:~
+:)
+declare variable $zerr:ZAPI0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0003");
+
+(:~
+:)
+declare variable $zerr:ZAPI0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0004");
+
+(:~
+:)
+declare variable $zerr:ZAPI0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0005");
+
+(:~
+:)
+declare variable $zerr:ZAPI0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0006");
+
+(:~
+:)
+declare variable $zerr:ZAPI0007 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0007");
+
+(:~
+:)
+declare variable $zerr:ZAPI0008 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0008");
+
+(:~
+:)
+declare variable $zerr:ZAPI0009 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0009");
+
+(:~
+:)
+declare variable $zerr:ZAPI0014 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0014");
+
+(:~
+:)
+declare variable $zerr:ZAPI0015 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0015");
+
+(:~
+:)
+declare variable $zerr:ZAPI0019 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0019");
+
+(:~
+:)
+declare variable $zerr:ZAPI0020 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0020");
+
+(:~
+:)
+declare variable $zerr:ZAPI0021 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0021");
+
+(:~
+:)
+declare variable $zerr:ZAPI0027 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0027");
+
+(:~
+:)
+declare variable $zerr:ZAPI0028 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0028");
+
+(:~
+:)
+declare variable $zerr:ZAPI0029 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0029");
+
+(:~
+:)
+declare variable $zerr:ZAPI0030 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0030");
+
+(:~
+:)
+declare variable $zerr:ZAPI0039 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0039");
+
+(:~
+:)
+declare variable $zerr:ZAPI0040 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0040");
+
+(:~
+:)
+declare variable $zerr:ZAPI0041 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0041");
+
+(:~
+:)
+declare variable $zerr:ZAPI0042 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0042");
+
+(:~
+:)
+declare variable $zerr:ZAPI0070 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0070");
+
+(:~
+:)
+declare variable $zerr:ZAPI0080 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0080");
+
+(:~
+:)
+declare variable $zerr:ZCSE0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0001");
+
+(:~
+:)
+declare variable $zerr:ZCSE0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0002");
+
+(:~
+:)
+declare variable $zerr:ZCSE0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0003");
+
+(:~
+:)
+declare variable $zerr:ZCSE0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0004");
+
+(:~
+:)
+declare variable $zerr:ZCSE0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0005");
+
+(:~
+:)
+declare variable $zerr:ZCSE0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0006");
+
+(:~
+:)
+declare variable $zerr:ZCSE0007 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0007");
+
+(:~
+:)
+declare variable $zerr:ZCSE0008 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0008");
+
+(:~
+:)
+declare variable $zerr:ZCSE0009 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0009");
+
+(:~
+:)
+declare variable $zerr:ZCSE0010 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0010");
+
+(:~
+:)
+declare variable $zerr:ZCSE0011 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0011");
+
+(:~
+:)
+declare variable $zerr:ZCSE0012 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0012");
+
+(:~
+:)
+declare variable $zerr:ZCSE0013 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0013");
+
+(:~
+:)
+declare variable $zerr:ZCSE0014 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0014");
+
+(:~
+:)
+declare variable $zerr:ZCSE0015 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0015");
+
+(:~
+:)
+declare variable $zerr:ZCSE0016 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0016");
+
+(:~
+:)
+declare variable $zerr:ZCSE0017 as xs:QName := fn:QName($zerr:NS, "zerr:ZCSE0017");
+
+(:~
+:)
+declare variable $zerr:ZDDY0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0001");
+
+(:~
+:)
+declare variable $zerr:ZDDY0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0002");
+
+(:~
+:)
+declare variable $zerr:ZDDY0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0003");
+
+(:~
+:)
+declare variable $zerr:ZDDY0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0004");
+
+(:~
+:)
+declare variable $zerr:ZDDY0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0005");
+
+(:~
+:)
+declare variable $zerr:ZDDY0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0006");
+
+(:~
+:)
+declare variable $zerr:ZDDY0007 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0007");
+
+(:~
+:)
+declare variable $zerr:ZDDY0008 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0008");
+
+(:~
+:)
+declare variable $zerr:ZDDY0009 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0009");
+
+(:~
+:)
+declare variable $zerr:ZDDY0010 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0010");
+
+(:~
+:)
+declare variable $zerr:ZDDY0011 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0011");
+
+(:~
+:)
+declare variable $zerr:ZDDY0012 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0012");
+
+(:~
+:)
+declare variable $zerr:ZDDY0013 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0013");
+
+(:~
+:)
+declare variable $zerr:ZDDY0014 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0014");
+
+(:~
+:)
+declare variable $zerr:ZDDY0015 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0015");
+
+(:~
+:)
+declare variable $zerr:ZDDY0016 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0016");
+
+(:~
+:)
+declare variable $zerr:ZDDY0017 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0017");
+
+(:~
+:)
+declare variable $zerr:ZDDY0018 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0018");
+
+(:~
+:)
+declare variable $zerr:ZDDY0020 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0020");
+
+(:~
+:)
+declare variable $zerr:ZDDY0021 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0021");
+
+(:~
+:)
+declare variable $zerr:ZDDY0022 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0022");
+
+(:~
+:)
+declare variable $zerr:ZDDY0023 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0023");
+
+(:~
+:)
+declare variable $zerr:ZDDY0024 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0024");
+
+(:~
+:)
+declare variable $zerr:ZDDY0025 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0025");
+
+(:~
+:)
+declare variable $zerr:ZDDY0026 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0026");
+
+(:~
+:)
+declare variable $zerr:ZDDY0027 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0027");
+
+(:~
+:)
+declare variable $zerr:ZDDY0028 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0028");
+
+(:~
+:)
+declare variable $zerr:ZDDY0029 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0029");
+
+(:~
+:)
+declare variable $zerr:ZDDY0030 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0030");
+
+(:~
+:)
+declare variable $zerr:ZDDY0034 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0034");
+
+(:~
+:)
+declare variable $zerr:ZDDY0031 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0031");
+
+(:~
+:)
+declare variable $zerr:ZDDY0032 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0032");
+
+(:~
+:)
+declare variable $zerr:ZDDY0033 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0033");
+
+(:~
+:)
+declare variable $zerr:ZDST0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0001");
+
+(:~
+:)
+declare variable $zerr:ZDST0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0002");
+
+(:~
+:)
+declare variable $zerr:ZDST0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0003");
+
+(:~
+:)
+declare variable $zerr:ZDST0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0004");
+
+(:~
+:)
+declare variable $zerr:ZDST0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0006");
+
+(:~
+:)
+declare variable $zerr:ZDST0007 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0007");
+
+(:~
+:)
+declare variable $zerr:ZDST0021 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0021");
+
+(:~
+:)
+declare variable $zerr:ZDST0022 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0022");
+
+(:~
+:)
+declare variable $zerr:ZDST0023 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0023");
+
+(:~
+:)
+declare variable $zerr:ZDST0024 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0024");
+
+(:~
+:)
+declare variable $zerr:ZDST0026 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0026");
+
+(:~
+:)
+declare variable $zerr:ZDST0027 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0027");
+
+(:~
+:)
+declare variable $zerr:ZDST0028 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0028");
+
+(:~
+:)
+declare variable $zerr:ZDST0029 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0029");
+
+(:~
+:)
+declare variable $zerr:ZDST0030 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0030");
+
+(:~
+:)
+declare variable $zerr:ZDST0031 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0031");
+
+(:~
+:)
+declare variable $zerr:ZDST0032 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0032");
+
+(:~
+:)
+declare variable $zerr:ZDST0033 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0033");
+
+(:~
+:)
+declare variable $zerr:ZDST0034 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0034");
+
+(:~
+:)
+declare variable $zerr:ZDST0035 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0035");
+
+(:~
+:)
+declare variable $zerr:ZDST0036 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0036");
+
+(:~
+:)
+declare variable $zerr:ZDST0041 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0041");
+
+(:~
+:)
+declare variable $zerr:ZDST0044 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0044");
+
+(:~
+:)
+declare variable $zerr:ZDST0048 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0048");
+
+(:~
+:)
+declare variable $zerr:ZDST0060 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0060");
+
+(:~
+:)
+declare variable $zerr:ZDTY0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZDTY0001");
+
+(:~
+:)
+declare variable $zerr:ZDTY0010 as xs:QName := fn:QName($zerr:NS, "zerr:ZDTY0010");
+
+(:~
+:)
+declare variable $zerr:ZDTY0011 as xs:QName := fn:QName($zerr:NS, "zerr:ZDTY0011");
+
+(:~
+:)
+declare variable $zerr:ZDTY0012 as xs:QName := fn:QName($zerr:NS, "zerr:ZDTY0012");
+
+
+declare variable $zerr:ZGDB0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZGDB0001");
+
+(:~
+:)
+declare variable $zerr:ZOSE0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZOSE0001");
+
+(:~
+:)
+declare variable $zerr:ZOSE0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZOSE0002");
+
+(:~
+:)
+declare variable $zerr:ZOSE0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZOSE0003");
+
+(:~
+:)
+declare variable $zerr:ZOSE0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZOSE0004");
+
+(:~
+:)
+declare variable $zerr:ZOSE0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZOSE0005");
+
+(:~
+:)
+declare variable $zerr:ZSTR0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0001");
+
+(:~
+:)
+declare variable $zerr:ZSTR0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0002");
+
+(:~
+:)
+declare variable $zerr:ZSTR0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0003");
+
+(:~
+:)
+declare variable $zerr:ZSTR0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0004");
+
+(:~
+:)
+declare variable $zerr:ZSTR0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0005");
+
+(:~
+:)
+declare variable $zerr:ZSTR0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0006");
+
+(:~
+:)
+declare variable $zerr:ZSTR0007 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0007");
+
+(:~
+:)
+declare variable $zerr:ZSTR0008 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0008");
+
+(:~
+:)
+declare variable $zerr:ZSTR0009 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0009");
+
+(:~
+:)
+declare variable $zerr:ZSTR0010 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0010");
+
+(:~
+:)
+declare variable $zerr:ZSTR0011 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0011");
+
+(:~
+:)
+declare variable $zerr:ZSTR0012 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0012");
+
+(:~
+:)
+declare variable $zerr:ZSTR0015 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0015");
+
+(:~
+:)
+declare variable $zerr:ZSTR0016 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0016");
+
+(:~
+:)
+declare variable $zerr:ZSTR0020 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0020");
+
+(:~
+:)
+declare variable $zerr:ZSTR0021 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0021");
+
+(:~
+:)
+declare variable $zerr:ZSTR0030 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0030");
+
+(:~
+:)
+declare variable $zerr:ZSTR0040 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0040");
+
+(:~
+:)
+declare variable $zerr:ZSTR0041 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0041");
+
+(:~
+:)
+declare variable $zerr:ZSTR0045 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0045");
+
+(:~
+:)
+declare variable $zerr:ZSTR0050 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0050");
+
+(:~
+:)
+declare variable $zerr:ZSTR0055 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0055");
+
+(:~
+:)
+declare variable $zerr:ZSTR0060 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0060");
+
+(:~
+:)
+declare variable $zerr:XSST0001 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0001");
+
+(:~
+:)
+declare variable $zerr:XSST0002 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0002");
+
+(:~
+:)
+declare variable $zerr:XSST0003 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0003");
+
+(:~
+:)
+declare variable $zerr:XSST0004 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0004");
+
+(:~
+:)
+declare variable $zerr:XSST0005 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0005");
+
+(:~
+:)
+declare variable $zerr:XSST0006 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0006");
+
+(:~
+:)
+declare variable $zerr:XSST0007 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0007");
+
+(:~
+:)
+declare variable $zerr:XSST0008 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0008");
+
+(:~
+:)
+declare variable $zerr:XSST0009 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0009");
+
+(:~
+:)
 declare variable $zerr:XSST0010 as xs:QName := fn:QName($zerr:NS, "zerr:XSST0010");
\ No newline at end of file

=== modified file 'modules/com/zorba-xquery/www/modules/pregenerated/warnings.xq'
--- modules/com/zorba-xquery/www/modules/pregenerated/warnings.xq	2011-10-19 15:28:51 +0000
+++ modules/com/zorba-xquery/www/modules/pregenerated/warnings.xq	2011-11-03 16:28:29 +0000
@@ -1,56 +1,56 @@
-(:
- : Copyright 2006-2011 The FLWOR Foundation.
- :
- : Licensed under the Apache License, Version 2.0 (the "License");
- : you may not use this file except in compliance with the License.
- : You may obtain a copy of the License at
- :
- : http://www.apache.org/licenses/LICENSE-2.0
- :
- : Unless required by applicable law or agreed to in writing, software
- : distributed under the License is distributed on an "AS IS" BASIS,
- : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- : See the License for the specific language governing permissions and
- : limitations under the License.
- :)
- 
- (:
-  : THIS FILE IS GENERATED.
-  : PLEASE DO NOT EDIT.
-  :)
- (:~
- : This module contains one declaration of a variable for each
- : error of the http://www.zorba-xquery.com/warnings namespace.
- : The variables serves as documentation for the errors but can also
- : be used in the code. For example, one useful scenario is to compare
- : an error caught in the catch clause of a try-catch expression with one of
- : the variables.
- :
- : @author Carlos Lopez
- :
- : @project error
- :)
-
-xquery version '1.0';
-
-module namespace zwarn = 'http://www.zorba-xquery.com/warnings';
-
-declare variable $zwarn:NS := 'http://www.zorba-xquery.com/warnings';
-
-(:~
- :
- : This warning is reported if the declaration of a function, variable,
- : collection, or index contains an annotation that is not in the
- : http://www.zorba-xquery.com/annotations namespace and Zorba doesn't know
- : how to handle.
- : 
-:)
-declare variable $zwarn:ZWST0002 as xs:QName := fn:QName($zwarn:NS, "zwarn:ZWST0002");
-
-(:~
-:)
-declare variable $zwarn:ZWST0003 as xs:QName := fn:QName($zwarn:NS, "zwarn:ZWST0003");
-
-(:~
-:)
+(:
+ : Copyright 2006-2011 The FLWOR Foundation.
+ :
+ : Licensed under the Apache License, Version 2.0 (the "License");
+ : you may not use this file except in compliance with the License.
+ : You may obtain a copy of the License at
+ :
+ : http://www.apache.org/licenses/LICENSE-2.0
+ :
+ : Unless required by applicable law or agreed to in writing, software
+ : distributed under the License is distributed on an "AS IS" BASIS,
+ : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ : See the License for the specific language governing permissions and
+ : limitations under the License.
+ :)
+ 
+ (:
+  : THIS FILE IS GENERATED.
+  : PLEASE DO NOT EDIT.
+  :)
+ (:~
+ : This module contains one declaration of a variable for each
+ : error of the http://www.zorba-xquery.com/warnings namespace.
+ : The variables serves as documentation for the errors but can also
+ : be used in the code. For example, one useful scenario is to compare
+ : an error caught in the catch clause of a try-catch expression with one of
+ : the variables.
+ :
+ : @author Carlos Lopez
+ :
+ : @project error
+ :)
+
+xquery version '1.0';
+
+module namespace zwarn = 'http://www.zorba-xquery.com/warnings';
+
+declare variable $zwarn:NS := 'http://www.zorba-xquery.com/warnings';
+
+(:~
+ :
+ : This warning is reported if the declaration of a function, variable,
+ : collection, or index contains an annotation that is not in the
+ : http://www.zorba-xquery.com/annotations namespace and Zorba doesn't know
+ : how to handle.
+ : 
+:)
+declare variable $zwarn:ZWST0002 as xs:QName := fn:QName($zwarn:NS, "zwarn:ZWST0002");
+
+(:~
+:)
+declare variable $zwarn:ZWST0003 as xs:QName := fn:QName($zwarn:NS, "zwarn:ZWST0003");
+
+(:~
+:)
 declare variable $zwarn:ZWST0004 as xs:QName := fn:QName($zwarn:NS, "zwarn:ZWST0004");
\ No newline at end of file

=== modified file 'modules/w3c/pregenerated/xqt-errors.xq'
--- modules/w3c/pregenerated/xqt-errors.xq	2011-10-19 15:28:51 +0000
+++ modules/w3c/pregenerated/xqt-errors.xq	2011-11-03 16:28:29 +0000
@@ -1,1687 +1,1687 @@
-(:
- : Copyright 2006-2011 The FLWOR Foundation.
- :
- : Licensed under the Apache License, Version 2.0 (the "License");
- : you may not use this file except in compliance with the License.
- : You may obtain a copy of the License at
- :
- : http://www.apache.org/licenses/LICENSE-2.0
- :
- : Unless required by applicable law or agreed to in writing, software
- : distributed under the License is distributed on an "AS IS" BASIS,
- : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- : See the License for the specific language governing permissions and
- : limitations under the License.
- :)
- 
- (:
-  : THIS FILE IS GENERATED.
-  : PLEASE DO NOT EDIT.
-  :)
- (:~
- : This module contains one declaration of a variable for each
- : error of the http://www.w3.org/2005/xqt-errors namespace.
- : The variables serves as documentation for the errors but can also
- : be used in the code. For example, one useful scenario is to compare
- : an error caught in the catch clause of a try-catch expression with one of
- : the variables.
- :
- : @author Carlos Lopez
- :
- : @project error
- :)
-
-xquery version '1.0';
-
-module namespace err = 'http://www.w3.org/2005/xqt-errors';
-
-declare variable $err:NS := 'http://www.w3.org/2005/xqt-errors';
-
-(:~
- :
- : It is a static error if analysis of an expression relies on some
- : component of the static context that has not been assigned a value.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XPST0001 as xs:QName := fn:QName($err:NS, "err:XPST0001");
-
-(:~
- :
- : It is a dynamic error if evaluation of an expression relies on some part
- : of the dynamic context that has not been assigned a value.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XPDY0002 as xs:QName := fn:QName($err:NS, "err:XPDY0002");
-
-(:~
- :
- : It is a static error if an expression is not a valid instance of the
- : grammar.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XPST0003 as xs:QName := fn:QName($err:NS, "err:XPST0003");
-
-(:~
- :
- : It is a type error if, during the static analysis phase, an expression
- : is found to have a static type that is not appropriate for the context
- : in which the expression occurs, or during the dynamic evaluation phase,
- : the dynamic type of a value does not match a required type as specified
- : by the matching rules in 2.5.4 SequenceType Matching.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XPTY0004 as xs:QName := fn:QName($err:NS, "err:XPTY0004");
-
-(:~
- :
- : During the analysis phase, it is a static error if the static type
- : assigned to an expression other than the expression \c () or \c data(())
- : is \c empty-sequence().
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XPST0005 as xs:QName := fn:QName($err:NS, "err:XPST0005");
-
-(:~
- :
- : It is a static error if an expression refers to an element name,
- : attribute name, schema type name, namespace prefix, or variable name
- : that is not defined in the static context, except for an ElementName in
- : an ElementTest or an AttributeName in an AttributeTest.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XPST0008 as xs:QName := fn:QName($err:NS, "err:XPST0008");
-
-(:~
- :
- : An implementation that does not support the Schema Import Feature must
- : raise a static error if a Prolog contains a schema import.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0009 as xs:QName := fn:QName($err:NS, "err:XQST0009");
-
-(:~
- :
- : It is a static error if the set of definitions contained in all schemas
- : imported by a Prolog do not satisfy the conditions for schema validity
- : specified in Sections 3 and 5 of [XML Schema] Part 1--i.e., each
- : definition must be valid, complete, and unique.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0012 as xs:QName := fn:QName($err:NS, "err:XQST0012");
-
-(:~
- :
- : It is a static error if an implementation recognizes a pragma but
- : determines that its content is invalid.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0013 as xs:QName := fn:QName($err:NS, "err:XQST0013");
-
-(:~
- :
- : It is a static error if the expanded QName and number of arguments in a
- : function call do not match the name and arity of a function signature in
- : the static context.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XPST0017 as xs:QName := fn:QName($err:NS, "err:XPST0017");
-
-(:~
- :
- : It is a type error if the result of the last step in a path expression
- : contains both nodes and non-nodes.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XPTY0018 as xs:QName := fn:QName($err:NS, "err:XPTY0018");
-
-(:~
- :
- : It is a type error if the result of a step (other than the last step) in a
- : path expression contains an atomic value.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XPTY0019 as xs:QName := fn:QName($err:NS, "err:XPTY0019");
-
-(:~
- :
- : It is a type error if, in an axis step, the context item is not a node.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XPTY0020 as xs:QName := fn:QName($err:NS, "err:XPTY0020");
-
-(:~
- :
- : It is a static error if the value of a namespace declaration attribute is
- : not a URILiteral.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0022 as xs:QName := fn:QName($err:NS, "err:XQST0022");
-
-(:~
- :
- : It is a type error if the content sequence in an element constructor
- : contains an attribute node following a node that is not an attribute node.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQTY0024 as xs:QName := fn:QName($err:NS, "err:XQTY0024");
-
-(:~
- :
- : It is a dynamic error if any attribute of a constructed element does not
- : have a name that is distinct from the names of all other attributes of
- : the constructed element.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQDY0025 as xs:QName := fn:QName($err:NS, "err:XQDY0025");
-
-(:~
- :
- : It is a dynamic error if the result of the content expression of a
- : computed processing instruction constructor contains the string "?>".
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQDY0026 as xs:QName := fn:QName($err:NS, "err:XQDY0026");
-
-(:~
- :
- : In a validate expression, it is a dynamic error if the root element
- : information item in the PSVI resulting from validation does not have the
- : expected validity property: \c valid if validation mode is \c strict, or
- : either \c valid or \c notKnown if validation mode is \c lax.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQDY0027 as xs:QName := fn:QName($err:NS, "err:XQDY0027");
-
-(:~
- :
- : It is a type error if the argument of a validate expression does not
- : evaluate to exactly one document or element node.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQTY0030 as xs:QName := fn:QName($err:NS, "err:XQTY0030");
-
-(:~
- :
- : It is a static error if the version number specified in a version
- : declaration is not supported by the implementation.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0031 as xs:QName := fn:QName($err:NS, "err:XQST0031");
-
-(:~
- :
- : A static error is raised if a Prolog contains more than one base URI
- : declaration.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0032 as xs:QName := fn:QName($err:NS, "err:XQST0032");
-
-(:~
- :
- : It is a static error if a module contains multiple bindings for the same
- : namespace prefix.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0033 as xs:QName := fn:QName($err:NS, "err:XQST0033");
-
-(:~
- :
- : It is a static error if multiple functions declared or imported by a
- : module have the same number of arguments and their expanded QNames are
- : equal (as defined by the eq operator).
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0034 as xs:QName := fn:QName($err:NS, "err:XQST0034");
-
-(:~
- :
- : It is a static error to import two schema components that both define the
- : same name in the same symbol space and in the same scope.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0035 as xs:QName := fn:QName($err:NS, "err:XQST0035");
-
-(:~
- :
- : It is a static error to import a module if the in-scope schema
- : definitions of the importing module do not include all of the following:
- : 
- : -# An in-scope schema type for each type-name that appears:
- : - in the type of a variable that is declared in the imported module
- : and referenced in the importing module, OR
- : - in a parameter-type or result-type of a function that is declared in
- : the imported module and referenced in the importing module.
- : -# An in-scope element declaration for each element-name \c EN such that:
- : - \c schema-element(EN) appears in the declared type of a variable in
- : the imported module, and that variable is referenced in the
- : importing module, OR
- : - \c schema-element(EN) appears in a parameter-type or result-type
- : of a function declared in the imported module, and that function is
- : referenced in the importing module.
- : -# An in-scope attribute declaration for each attribute-name \c AN such
- : that:
- : - \c schema-attribute(AN) appears in the declared type of a variable
- : in the imported module, and that variable is referenced in the
- : importing module, OR
- : - \c schema-attribute(AN) appears in a parameter-type or result-type
- : of a function declared in the imported module, and that function is
- : referenced in the importing module.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0036 as xs:QName := fn:QName($err:NS, "err:XQST0036");
-
-(:~
- :
- : It is a static error if a Prolog contains more than one default collation
- : declaration, or the value specified by a default collation declaration is
- : not present in statically known collations.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0038 as xs:QName := fn:QName($err:NS, "err:XQST0038");
-
-(:~
- :
- : It is a static error for a function declaration to have more than one
- : parameter with the same name.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0039 as xs:QName := fn:QName($err:NS, "err:XQST0039");
-
-(:~
- :
- : It is a static error if the attributes specified by a direct element
- : constructor do not have distinct expanded QNames.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0040 as xs:QName := fn:QName($err:NS, "err:XQST0040");
-
-(:~
- :
- : It is a dynamic error if the value of the name expression in a computed
- : processing instruction constructor cannot be cast to the type
- : \c xs:NCName.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQDY0041 as xs:QName := fn:QName($err:NS, "err:XQDY0041");
-
-(:~
- :
- : It is a static error the node-name of a node constructed by a computed
- : attribute constructor has any of the following properties:
- : - Its namespace prefix is \c xmlns.
- : - It has no namespace prefix and its local name is \c xmlns.
- : - Its namespace URI is http://www.w3.org/2000/xmlns/.
- : - Its namespace prefix is \c xml and its namespace URI is not
- : http://www.w3.org/XML/1998/namespace.
- : - Its namespace prefix is other than \c xml and its namespace URI is
- : http://www.w3.org/XML/1998/namespace.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQDY0044 as xs:QName := fn:QName($err:NS, "err:XQDY0044");
-
-(:~
- :
- : It is a static error if the function name in a function declaration is in
- : one of the following namespaces:
- : http://www.w3.org/XML/1998/namespace,
- : http://www.w3.org/2001/XMLSchema,
- : http://www.w3.org/2001/XMLSchema-instance,
- : http://www.w3.org/2005/xpath-functions.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0045 as xs:QName := fn:QName($err:NS, "err:XQST0045");
-
-(:~
- :
- : An implementation MAY raise a static error if the value of a URILiteral
- : is of nonzero length and is not in the lexical space of \c xs:anyURI.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0046 as xs:QName := fn:QName($err:NS, "err:XQST0046");
-
-(:~
- :
- : It is a static error if multiple module imports in the same Prolog
- : specify the same target namespace.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0047 as xs:QName := fn:QName($err:NS, "err:XQST0047");
-
-(:~
- :
- : It is a static error if a function or variable declared in a library
- : module is not in the target namespace of the library module.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0048 as xs:QName := fn:QName($err:NS, "err:XQST0048");
-
-(:~
- :
- : It is a static error if two or more variables declared or imported by a
- : module have equal expanded QNames (as defined by the eq operator.)
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0049 as xs:QName := fn:QName($err:NS, "err:XQST0049");
-
-(:~
- :
- : It is a dynamic error if the dynamic type of the operand of a treat
- : expression does not match the sequence type specified by the treat
- : expression. This error might also be raised by a path expression
- : beginning with "/" or "//" if the context node
- : is not in a tree that is rooted at a document node. This is because a
- : leading "/" or "//" in a path expression is an
- : abbreviation for an initial step that includes the clause \c treat as \c
- : document-node().
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XPDY0050 as xs:QName := fn:QName($err:NS, "err:XPDY0050");
-
-(:~
- :
- : It is a static error if a QName that is used as an AtomicType in a
- : SequenceType is not defined in the in-scope schema types as an atomic
- : type.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XPST0051 as xs:QName := fn:QName($err:NS, "err:XPST0051");
-
-(:~
- :
- : It is a static error if a variable depends on itself.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0054 as xs:QName := fn:QName($err:NS, "err:XQST0054");
-
-(:~
- :
- : It is a static error if a Prolog contains more than one copy-namespaces
- : declaration.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0055 as xs:QName := fn:QName($err:NS, "err:XQST0055");
-
-(:~
- :
- : It is a static error if a schema import binds a namespace prefix but does
- : not specify a target namespace other than a zero-length string.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0057 as xs:QName := fn:QName($err:NS, "err:XQST0057");
-
-(:~
- :
- : It is a static error if multiple schema imports specify the same target
- : namespace.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0058 as xs:QName := fn:QName($err:NS, "err:XQST0058");
-
-(:~
- :
- : It is a static error if an implementation is unable to process a schema
- : or module import by finding a schema or module with the specified target
- : namespace.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0059 as xs:QName := fn:QName($err:NS, "err:XQST0059");
-
-(:~
- :
- : It is a static error if the name of a function in a function declaration
- : is not in a namespace (expanded QName has a null namespace URI).
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0060 as xs:QName := fn:QName($err:NS, "err:XQST0060");
-
-(:~
- :
- : It is a dynamic error if the operand of a validate expression is a
- : document node whose children do not consist of exactly one element node
- : and zero or more comment and processing instruction nodes, in any order.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQDY0061 as xs:QName := fn:QName($err:NS, "err:XQDY0061");
-
-(:~
- :
- : It is a dynamic error if the value of the name expression in a computed
- : processing instruction constructor is equal to "XML" (in any combination
- : of upper and lower case).
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQDY0064 as xs:QName := fn:QName($err:NS, "err:XQDY0064");
-
-(:~
- :
- : A static error is raised if a Prolog contains more than one ordering mode
- : declaration.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0065 as xs:QName := fn:QName($err:NS, "err:XQST0065");
-
-(:~
- :
- : A static error is raised if a Prolog contains more than one default
- : element/type namespace declaration, or more than one default function
- : namespace declaration.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0066 as xs:QName := fn:QName($err:NS, "err:XQST0066");
-
-(:~
- :
- : A static error is raised if a Prolog contains more than one construction
- : declaration.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0067 as xs:QName := fn:QName($err:NS, "err:XQST0067");
-
-(:~
- :
- : A static error is raised if a Prolog contains more than one
- : boundary-space declaration.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0068 as xs:QName := fn:QName($err:NS, "err:XQST0068");
-
-(:~
- :
- : A static error is raised if a Prolog contains more than one empty order
- : declaration.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0069 as xs:QName := fn:QName($err:NS, "err:XQST0069");
-
-(:~
- :
- : A static error is raised if one of the predefined prefixes \c xml or \c
- : xmlns appears in a namespace declaration, or if any of the following
- : conditions is statically detected in any expression or declaration:
- : - The prefix \c xml is bound to some namespace URI other than
- : http://www.w3.org/XML/1998/namespace.
- : - A prefix other than \c xml is bound to the namespace URI
- : http://www.w3.org/XML/1998/namespace.
- : - The prefix \c xmlns is bound to any namespace URI.
- : - A prefix other than \c xmlns is bound to the namespace URI
- : http://www.w3.org/2000/xmlns/.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0070 as xs:QName := fn:QName($err:NS, "err:XQST0070");
-
-(:~
- :
- : A static error is raised if the namespace declaration attributes of a
- : direct element constructor do not have distinct names.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0071 as xs:QName := fn:QName($err:NS, "err:XQST0071");
-
-(:~
- :
- : It is a dynamic error if the result of the content expression of a
- : computed comment constructor contains two adjacent hyphens or ends with
- : a hyphen.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQDY0072 as xs:QName := fn:QName($err:NS, "err:XQDY0072");
-
-(:~
- :
- : It is a dynamic error if the value of the name expression in a computed
- : element or attribute constructor cannot be converted to an expanded
- : QName (for example, because it contains a namespace prefix not found in
- : statically known namespaces).
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQDY0074 as xs:QName := fn:QName($err:NS, "err:XQDY0074");
-
-(:~
- :
- : It is a static error if a \c collation subclause in an order by clause
- : of a FLWOR expression does not identify a collation that is present in
- : statically known collations.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0076 as xs:QName := fn:QName($err:NS, "err:XQST0076");
-
-(:~
- :
- : It is a static error if an extension expression contains neither a
- : pragma that is recognized by the implementation nor an expression
- : enclosed in curly braces.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0079 as xs:QName := fn:QName($err:NS, "err:XQST0079");
-
-(:~
- :
- : It is a static error if the target type of a \c cast or \c castable
- : expression is \c xs:NOTATION or \c xs:anyAtomicType.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XPST0080 as xs:QName := fn:QName($err:NS, "err:XPST0080");
-
-(:~
- :
- : It is a static error if a QName used in a query contains a namespace
- : prefix that cannot be expanded into a namespace URI by using the
- : statically known namespaces.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XPST0081 as xs:QName := fn:QName($err:NS, "err:XPST0081");
-
-(:~
- :
- : It is a static error if the target type of a \c cast expression or
- : constructor function is \c xs:QName or a type derived from \c xs:QName
- : or \c xs:NOTATION, and the argument of the cast expression or
- : constructor function is not a string literal.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XPST0083 as xs:QName := fn:QName($err:NS, "err:XPST0083");
-
-(:~
- :
- : It is a dynamic error if the element validated by a \c validate statement
- : does not have a top-level element declaration in the in-scope element
- : declarations, if validation mode is \c strict.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQDY0084 as xs:QName := fn:QName($err:NS, "err:XQDY0084");
-
-(:~
- :
- : It is a static error if the namespace URI in a namespace declaration
- : attribute is a zero-length string, and the implementation does not
- : support [XML Names 1.1].
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0085 as xs:QName := fn:QName($err:NS, "err:XQST0085");
-
-(:~
- :
- : It is a type error if the typed value of a copied element or attribute
- : node is namespace-sensitive when construction mode is \c preserve and
- : copy-namespaces mode is \c no-preserve.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQTY0086 as xs:QName := fn:QName($err:NS, "err:XQTY0086");
-
-(:~
- :
- : It is a static error if the encoding specified in a Version Declaration
- : does not conform to the definition of \c EncName specified in [XML 1.0]
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0087 as xs:QName := fn:QName($err:NS, "err:XQST0087");
-
-(:~
- :
- : It is a static error if the literal that specifies the target namespace
- : in a module import or a module declaration is of zero length.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0088 as xs:QName := fn:QName($err:NS, "err:XQST0088");
-
-(:~
- :
- : It is a static error if a variable bound in a \c for or \c window clause
- : of a FLWOR expression, and its associated positional variable, do not
- : have distinct names (expanded QNames).
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0089 as xs:QName := fn:QName($err:NS, "err:XQST0089");
-
-(:~
- :
- : It is a static error if a character reference does not identify a valid
- : character in the version of XML that is in use.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0090 as xs:QName := fn:QName($err:NS, "err:XQST0090");
-
-(:~
- :
- : An implementation MAY raise a dynamic error if an \c xml:id error, as
- : defined in [XML ID], is encountered during construction of an attribute
- : named \c xml:id.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQDY0091 as xs:QName := fn:QName($err:NS, "err:XQDY0091");
-
-(:~
- :
- : An implementation MAY raise a dynamic error if a constructed attribute
- : named \c xml:space has a value other than \c preserve or \c default.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQDY0092 as xs:QName := fn:QName($err:NS, "err:XQDY0092");
-
-(:~
- :
- : It is a static error to import a module M1 if there exists a sequence of
- : modules M1 ... Mi ... M1 such that each module directly depends on the
- : next module in the sequence (informally, if M1 depends on itself through
- : some chain of module dependencies.)
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0093 as xs:QName := fn:QName($err:NS, "err:XQST0093");
-
-(:~
- :
- : It is a dynamic error the node-name of a node constructed by a computed
- : element constructor has any of the following properties:
- : - Its namespace prefix is \c xmlns.
- : - Its namespace URI is http://www.w3.org/2000/xmlns/.
- : - Its namespace prefix is \c xml and its namespace URI is not
- : http://www.w3.org/XML/1998/namespace.
- : - Its namespace prefix is other than \c xml and its namespace URI is
- : http://www.w3.org/XML/1998/namespace.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQDY0096 as xs:QName := fn:QName($err:NS, "err:XQDY0096");
-
-(:~
- :
- : It is a static error if, for any named or unnamed decimal format, the
- : properties representing characters used in a picture string do not each
- : have distinct values. These properties are decimal-separator-sign,
- : grouping-separator, percent-sign, per-mille-sign, zero-digit,
- : digit-sign, and pattern-separator-sign.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0098 as xs:QName := fn:QName($err:NS, "err:XQST0098");
-
-(:~
- :
- : It is a static error if a function's annotations contain more than one
- : annotation named \c private or \c public.  It is a static error if a
- : function's annotations contain more than one annotation named \c
- : deterministic or \c nondeterministic.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0106 as xs:QName := fn:QName($err:NS, "err:XQST0106");
-
-(:~
- :
- : It is a static error for a query prolog to contain two decimal formats
- : with the same name, or to contain two default decimal formats.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XQST0111 as xs:QName := fn:QName($err:NS, "err:XQST0111");
-
-(:~
- :
- : It is a non-recoverable dynamic error if the picture string does not
- : satisfy the format-number function rules.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XTDE1310 as xs:QName := fn:QName($err:NS, "err:XTDE1310");
-
-(:~
- :
- : It is a non-recoverable dynamic error if the syntax of the picture is
- : incorrect.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XTDE1340 as xs:QName := fn:QName($err:NS, "err:XTDE1340");
-
-(:~
- :
- : It is a non-recoverable dynamic error if a component specifier within the
- : picture refers to components that are not available in the given type of
- : \c $value.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XTDE1350 as xs:QName := fn:QName($err:NS, "err:XTDE1350");
-
-(:~
- :
- : It is a static error if, during the static analysis phase, the query is
- : found to contain a stop word option that refers to a stop word list that
- : is not found in the statically known stop word lists.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FTST0008 as xs:QName := fn:QName($err:NS, "err:FTST0008");
-
-(:~
- :
- : It may be a static error if, during the static analysis phase, the query
- : is found to contain a language identifier in a language option that the
- : implementation does not support. The implementation may choose not to
- : raise this error and instead provide some other implementation-defined
- : behavior.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FTST0009 as xs:QName := fn:QName($err:NS, "err:FTST0009");
-
-(:~
- :
- : It is a dynamic error if a weight value is not within the required range
- : of values; it is also a dynamic error if an implementation that does not
- : support negative weights encounters a negative weight value.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FTDY0016 as xs:QName := fn:QName($err:NS, "err:FTDY0016");
-
-(:~
- :
- : It is a dynamic error if an implementation encounters a mild not
- : selection, one of whose operands evaluates to an AllMatches that
- : contains a StringExclude.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FTDY0017 as xs:QName := fn:QName($err:NS, "err:FTDY0017");
-
-(:~
- :
- : It is a static error if, during the static analysis phase, the query is
- : found to contain a thesaurus option that refers to a thesaurus that is
- : not found in the statically known thesauri.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FTST0018 as xs:QName := fn:QName($err:NS, "err:FTST0018");
-
-(:~
- :
- : It is a static error if, within a single FTMatchOptions, there is more
- : than one match option of any given match option group.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FTST0019 as xs:QName := fn:QName($err:NS, "err:FTST0019");
-
-(:~
- :
- : It is a dynamic error if, when "wildcards" is in effect, a query string
- : violates wildcard syntax.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FTDY0020 as xs:QName := fn:QName($err:NS, "err:FTDY0020");
-
-(:~
- :
- : Unidentified error.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOER0000 as xs:QName := fn:QName($err:NS, "err:FOER0000");
-
-(:~
- :
- : Division by zero.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOAR0001 as xs:QName := fn:QName($err:NS, "err:FOAR0001");
-
-(:~
- :
- : Numeric operation overflow/underflow.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOAR0002 as xs:QName := fn:QName($err:NS, "err:FOAR0002");
-
-(:~
- :
- : Input value too large for decimal.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOCA0001 as xs:QName := fn:QName($err:NS, "err:FOCA0001");
-
-(:~
- :
- : Invalid lexical value.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOCA0002 as xs:QName := fn:QName($err:NS, "err:FOCA0002");
-
-(:~
- :
- : Input value too large for integer.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOCA0003 as xs:QName := fn:QName($err:NS, "err:FOCA0003");
-
-(:~
- :
- : NaN supplied as float/double value.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOCA0005 as xs:QName := fn:QName($err:NS, "err:FOCA0005");
-
-(:~
- :
- : String to be cast to decimal has too many digits of precision.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOCA0006 as xs:QName := fn:QName($err:NS, "err:FOCA0006");
-
-(:~
- :
- : Code point not valid.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOCH0001 as xs:QName := fn:QName($err:NS, "err:FOCH0001");
-
-(:~
- :
- : Unsupported collation.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOCH0002 as xs:QName := fn:QName($err:NS, "err:FOCH0002");
-
-(:~
- :
- : Unsupported normalization form.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOCH0003 as xs:QName := fn:QName($err:NS, "err:FOCH0003");
-
-(:~
- :
- : Collation does not support collation units.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOCH0004 as xs:QName := fn:QName($err:NS, "err:FOCH0004");
-
-(:~
- :
- : No context document.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FODC0001 as xs:QName := fn:QName($err:NS, "err:FODC0001");
-
-(:~
- :
- : Error retrieving resource.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FODC0002 as xs:QName := fn:QName($err:NS, "err:FODC0002");
-
-(:~
- :
- : Function stability not defined.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FODC0003 as xs:QName := fn:QName($err:NS, "err:FODC0003");
-
-(:~
- :
- : Invalid argument to \c fn:collection().
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FODC0004 as xs:QName := fn:QName($err:NS, "err:FODC0004");
-
-(:~
- :
- : Invalid argument to \c fn:doc() or \c fn:doc-available().
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FODC0005 as xs:QName := fn:QName($err:NS, "err:FODC0005");
-
-(:~
- :
- : Invalid content passed to \c fn:parse().
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FODC0006 as xs:QName := fn:QName($err:NS, "err:FODC0006");
-
-(:~
- :
- : Base URI passed to \c fn:parse() is not a valid absolute URI.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FODC0007 as xs:QName := fn:QName($err:NS, "err:FODC0007");
-
-(:~
- :
- : Invalid decimal format name supplied to \c fn:format-number().
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FODF1280 as xs:QName := fn:QName($err:NS, "err:FODF1280");
-
-(:~
- :
- : Invalid \c fn:format-number() picture string.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FODF1310 as xs:QName := fn:QName($err:NS, "err:FODF1310");
-
-(:~
- :
- : Overflow/underflow in date/time operation.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FODT0001 as xs:QName := fn:QName($err:NS, "err:FODT0001");
-
-(:~
- :
- : Overflow/underflow in duration operation.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FODT0002 as xs:QName := fn:QName($err:NS, "err:FODT0002");
-
-(:~
- :
- : Invalid timezone value.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FODT0003 as xs:QName := fn:QName($err:NS, "err:FODT0003");
-
-(:~
- :
- : format-integer: Cannot cast $language to \c xs:language.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOFI0001 as xs:QName := fn:QName($err:NS, "err:FOFI0001");
-
-(:~
- :
- : format-integer: invalid parameter.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOFI0002 as xs:QName := fn:QName($err:NS, "err:FOFI0002");
-
-(:~
- :
- : No namespace found for prefix.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FONS0004 as xs:QName := fn:QName($err:NS, "err:FONS0004");
-
-(:~
- :
- : Base-URI not defined in static context.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FONS0005 as xs:QName := fn:QName($err:NS, "err:FONS0005");
-
-(:~
- :
- : Invalid value for cast/constructor.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FORG0001 as xs:QName := fn:QName($err:NS, "err:FORG0001");
-
-(:~
- :
- : Invalid argument to \c fn:resolve-uri().
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FORG0002 as xs:QName := fn:QName($err:NS, "err:FORG0002");
-
-(:~
- :
- : \c fn:zero-or-one() called with a sequence containing more than one
- : item.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FORG0003 as xs:QName := fn:QName($err:NS, "err:FORG0003");
-
-(:~
- :
- : \c fn:one-or-more() called with a sequence containing no items.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FORG0004 as xs:QName := fn:QName($err:NS, "err:FORG0004");
-
-(:~
- :
- : \c fn:exactly-one() called with a sequence containing zero or more
- : than one item.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FORG0005 as xs:QName := fn:QName($err:NS, "err:FORG0005");
-
-(:~
- :
- : Invalid argument type.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FORG0006 as xs:QName := fn:QName($err:NS, "err:FORG0006");
-
-(:~
- :
- : The two arguments to fn:dateTime() have inconsistent timezones.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FORG0008 as xs:QName := fn:QName($err:NS, "err:FORG0008");
-
-(:~
- :
- : Error in resolving a relative URI against a base URI in
- : \c fn:resolve-uri().
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FORG0009 as xs:QName := fn:QName($err:NS, "err:FORG0009");
-
-(:~
- :
- : Invalid regular expression flags.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FORX0001 as xs:QName := fn:QName($err:NS, "err:FORX0001");
-
-(:~
- :
- : Invalid regular expression.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FORX0002 as xs:QName := fn:QName($err:NS, "err:FORX0002");
-
-(:~
- :
- : Regular expression matches zero-length string.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FORX0003 as xs:QName := fn:QName($err:NS, "err:FORX0003");
-
-(:~
- :
- : Invalid replacement string.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FORX0004 as xs:QName := fn:QName($err:NS, "err:FORX0004");
-
-(:~
- :
- : Argument node does not have a typed value.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOTY0012 as xs:QName := fn:QName($err:NS, "err:FOTY0012");
-
-(:~
- :
- : An argument to \c fn:data() contains a node that does not have a typed
- : value.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOTY0013 as xs:QName := fn:QName($err:NS, "err:FOTY0013");
-
-(:~
- :
- : The argument to \c fn:string() is a function item.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOTY0014 as xs:QName := fn:QName($err:NS, "err:FOTY0014");
-
-(:~
- :
- : An argument to \c fn:deep-equal() contains a function item.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOTY0015 as xs:QName := fn:QName($err:NS, "err:FOTY0015");
-
-(:~
- :
- : It is a static error if an updating expression is used in any position
- : other than one of the following:
- : - The topmost expression in the body of a query.
- : - The \c modify clause of a transform expression.
- : - The \c return clause of a FLWOR expression.
- : - The \c return clauses of a typeswitch expression in which every \c
- : return clause contains an updating expression or a vacuous expression.
- : - The \c then and \c else clauses of a conditional statement in which
- : both the \c then and \c else clauses contain either an updating
- : expression or a vacuous expression.
- : - An operand of a comma expression in which each operand is either an
- : updating expression or a vacuous expression.
- : - The content of a parenthesized expression.
- : - The body of a function declaration in which the keyword \c updating is
- : specified.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUST0001 as xs:QName := fn:QName($err:NS, "err:XUST0001");
-
-(:~
- :
- : It is a static error if a simple expression that is not a vacuous
- : expression is used in one of the following positions:
- : - The \c modify clause of a transform expression.
- : - The top-level expression in the body of a function declaration in
- : which the keyword \c updating is specified.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUST0002 as xs:QName := fn:QName($err:NS, "err:XUST0002");
-
-(:~
- :
- : It is a static error if a Prolog contains more than one revalidation
- : declaration.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUST0003 as xs:QName := fn:QName($err:NS, "err:XUST0003");
-
-(:~
- :
- : It is a type error if the insertion sequence of an insert expression
- : contains an attribute node following a node that is not an attribute
- : node.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUTY0004 as xs:QName := fn:QName($err:NS, "err:XUTY0004");
-
-(:~
- :
- : In an insert expression where into, as first
- : into, or as last into is specified, it is a type
- : error if the target expression returns a non-empty result that does not
- : consist of a single element or document node.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUTY0005 as xs:QName := fn:QName($err:NS, "err:XUTY0005");
-
-(:~
- :
- : In an insert expression where \c before or \c after is specified, it is
- : a type error if the target expression returns a non-empty result that
- : does not consist of a single element, text, comment, or processing
- : instruction node.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUTY0006 as xs:QName := fn:QName($err:NS, "err:XUTY0006");
-
-(:~
- :
- : It is a type error if the target expression of a delete expression does
- : not return a sequence of zero or more nodes.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUTY0007 as xs:QName := fn:QName($err:NS, "err:XUTY0007");
-
-(:~
- :
- : In a replace expression, it is a type error if the target expression
- : returns a non-empty result that does not consist of a single element,
- : attribute, text, comment, or processing instruction node.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUTY0008 as xs:QName := fn:QName($err:NS, "err:XUTY0008");
-
-(:~
- :
- : In a replace expression where value of is not specified, it
- : is a dynamic error if the node returned by the target expression does
- : not have a parent.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUDY0009 as xs:QName := fn:QName($err:NS, "err:XUDY0009");
-
-(:~
- :
- : In a replace expression where value of is not specified and
- : the target is an element, text, comment, or processing instruction node,
- : it is a type error if the replacement sequence does not consist of zero
- : or more element, text, comment, or processing instruction nodes.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUTY0010 as xs:QName := fn:QName($err:NS, "err:XUTY0010");
-
-(:~
- :
- : In a replace expression where value of is not specified and
- : the target is an attribute node, it is a type error if the replacement
- : sequence does not consist of zero or more attribute nodes.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUTY0011 as xs:QName := fn:QName($err:NS, "err:XUTY0011");
-
-(:~
- :
- : In a rename expression, it is a type error if the target expression
- : returns a non-empty result that does not consist of a single element,
- : attribute, or processing instruction node.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUTY0012 as xs:QName := fn:QName($err:NS, "err:XUTY0012");
-
-(:~
- :
- : In a transform expression, it is a type error if a source expression in
- : the \c copy clause does not return a single node.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUTY0013 as xs:QName := fn:QName($err:NS, "err:XUTY0013");
-
-(:~
- :
- : In a transform expression, it is a dynamic error if the \c modify clause
- : modifies any node that was not created by the \c copy clause.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUDY0014 as xs:QName := fn:QName($err:NS, "err:XUDY0014");
-
-(:~
- :
- : It is a dynamic error if any node is the target of more than one \c
- : rename expression within the same query.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUDY0015 as xs:QName := fn:QName($err:NS, "err:XUDY0015");
-
-(:~
- :
- : It is a dynamic error if any node is the target of more than one \c
- : replace expression (without value of being specified)
- : within the same query.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUDY0016 as xs:QName := fn:QName($err:NS, "err:XUDY0016");
-
-(:~
- :
- : It is a dynamic error if any node is the target of more than one
- : replace value of expression within the same query.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUDY0017 as xs:QName := fn:QName($err:NS, "err:XUDY0017");
-
-(:~
- :
- : It is a dynamic error if a function that was declared to be \c external
- : but not \c updating returns a non-empty pending update list.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUDY0018 as xs:QName := fn:QName($err:NS, "err:XUDY0018");
-
-(:~
- :
- : It is a dynamic error if a function that was declared to be both \c
- : external and \c updating returns a non-empty data model instance.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUDY0019 as xs:QName := fn:QName($err:NS, "err:XUDY0019");
-
-(:~
- :
- : It is a dynamic error if the XDM instance that would result from
- : applying all the updates in a query violates any constraint specified in
- : [XQuery 1.0 and XPath 2.0 Data Model]. In this case, none of the updates
- : in the query are made effective.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUDY0021 as xs:QName := fn:QName($err:NS, "err:XUDY0021");
-
-(:~
- :
- : It is a type error if an insert expression specifies the insertion of an
- : attribute node into a document node.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUTY0022 as xs:QName := fn:QName($err:NS, "err:XUTY0022");
-
-(:~
- :
- : It is a dynamic error if an insert, replace, or rename expression
- : affects an element node by introducing a new namespace binding that
- : conflicts with one of its existing namespace bindings.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUDY0023 as xs:QName := fn:QName($err:NS, "err:XUDY0023");
-
-(:~
- :
- : It is a dynamic error if the effect of a set of updating expressions is
- : to introduce conflicting namespace bindings into an element node.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUDY0024 as xs:QName := fn:QName($err:NS, "err:XUDY0024");
-
-(:~
- :
- : It is a dynamic error if the target expression of an insert, replace, or
- : rename expression evaluates to an empty sequence.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUDY0027 as xs:QName := fn:QName($err:NS, "err:XUDY0027");
-
-(:~
- :
- : It is a static error if a function declaration specifies both \c updating
- : and a return type.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUST0028 as xs:QName := fn:QName($err:NS, "err:XUST0028");
-
-(:~
- :
- : In an insert expression where \c before or \c after is specified, it is
- : a dynamic error if the node returned by the target expression does not
- : have a parent.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUDY0029 as xs:QName := fn:QName($err:NS, "err:XUDY0029");
-
-(:~
- :
- : It is a dynamic error if an insert expression specifies the insertion of
- : an attribute node before or after a child of a document node.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUDY0030 as xs:QName := fn:QName($err:NS, "err:XUDY0030");
-
-(:~
- :
- : It is a dynamic error if multiple calls to \c fn:put() in the same
- : snapshot specify the same URI (after resolution of relative URIs).
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:XUDY0031 as xs:QName := fn:QName($err:NS, "err:XUDY0031");
-
-(:~
- :
- : It is a dynamic error if the first operand of \c fn:put() is not a node
- : of a supported kind.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOUP0001 as xs:QName := fn:QName($err:NS, "err:FOUP0001");
-
-(:~
- :
- : It is a dynamic error if the second operand of \c fn:put() is not a valid
- : lexical representation of the \c xs:anyURI type.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:FOUP0002 as xs:QName := fn:QName($err:NS, "err:FOUP0002");
-
-(:~
- :
- : It is an error if an item in S6 in sequence normalization is an attribute
- : node or a namespace node.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:SENR0001 as xs:QName := fn:QName($err:NS, "err:SENR0001");
-
-(:~
- :
- : It is an error if the serializer is unable to satisfy the rules for
- : either a well-formed XML document entity or a well-formed XML external
- : general parsed entity, or both, except for content modified by the
- : character expansion phase of serialization.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:SERE0003 as xs:QName := fn:QName($err:NS, "err:SERE0003");
-
-(:~
- :
- : It is an error to specify the doctype-system parameter, or to specify
- : the standalone parameter with a value other than omit, if the instance
- : of the data model contains text nodes or multiple element nodes as
- : children of the root node.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:SEPM0004 as xs:QName := fn:QName($err:NS, "err:SEPM0004");
-
-(:~
- :
- : It is an error if the serialized result would contain an NCName Names
- : that contains a character that is not permitted by the version of
- : Namespaces in XML specified by the version parameter.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:SERE0005 as xs:QName := fn:QName($err:NS, "err:SERE0005");
-
-(:~
- :
- : It is an error if the serialized result would contain a character that is
- : not permitted by the version of XML specified by the version parameter.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:SERE0006 as xs:QName := fn:QName($err:NS, "err:SERE0006");
-
-(:~
- :
- : It is an error if an output encoding other than UTF-8 or UTF-16 is
- : requested and the serializer does not support that encoding.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:SESU0007 as xs:QName := fn:QName($err:NS, "err:SESU0007");
-
-(:~
- :
- : It is an error if a character that cannot be represented in the encoding
- : that the serializer is using for output appears in a context where
- : character references are not allowed (for example if the character
- : occurs in the name of an element).
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:SERE0008 as xs:QName := fn:QName($err:NS, "err:SERE0008");
-
-(:~
- :
- : It is an error if the omit-xml-declaration parameter has the value yes,
- : and the standalone attribute has a value other than omit; or the version
- : parameter has a value other than 1.0 and the doctype-system parameter is
- : specified.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:SEPM0009 as xs:QName := fn:QName($err:NS, "err:SEPM0009");
-
-(:~
- :
- : It is an error if the output method is xml, the value of the
- : undeclare-prefixes parameter is yes, and the value of the version
- : parameter is 1.0.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:SEPM0010 as xs:QName := fn:QName($err:NS, "err:SEPM0010");
-
-(:~
- :
- : It is an error if the value of the normalization-form parameter
- : specifies a normalization form that is not supported by the serializer.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:SESU0011 as xs:QName := fn:QName($err:NS, "err:SESU0011");
-
-(:~
- :
- : It is an error if the value of the normalization-form parameter is
- : fully-normalized and any relevant construct of the result begins with a
- : combining character.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:SERE0012 as xs:QName := fn:QName($err:NS, "err:SERE0012");
-
-(:~
- :
- : It is an error if the serializer does not support the version of XML or
- : HTML specified by the version parameter.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:SESU0013 as xs:QName := fn:QName($err:NS, "err:SESU0013");
-
-(:~
- :
- : It is an error to use the HTML output method when characters which are
- : legal in XML but not in HTML, specifically the control characters
- : #x7F-#x9F, appear in the instance of the data model.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:SERE0014 as xs:QName := fn:QName($err:NS, "err:SERE0014");
-
-(:~
- :
- : It is an error to use the HTML output method when \c > appears within a
- : processing instruction in the data model instance being serialized.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
-declare variable $err:SERE0015 as xs:QName := fn:QName($err:NS, "err:SERE0015");
-
-(:~
- :
- : It is a an error if a parameter value is invalid for the defined domain.
- : 
- : @see http://www.w3.org/2005/xqt-errors
-:)
+(:
+ : Copyright 2006-2011 The FLWOR Foundation.
+ :
+ : Licensed under the Apache License, Version 2.0 (the "License");
+ : you may not use this file except in compliance with the License.
+ : You may obtain a copy of the License at
+ :
+ : http://www.apache.org/licenses/LICENSE-2.0
+ :
+ : Unless required by applicable law or agreed to in writing, software
+ : distributed under the License is distributed on an "AS IS" BASIS,
+ : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ : See the License for the specific language governing permissions and
+ : limitations under the License.
+ :)
+ 
+ (:
+  : THIS FILE IS GENERATED.
+  : PLEASE DO NOT EDIT.
+  :)
+ (:~
+ : This module contains one declaration of a variable for each
+ : error of the http://www.w3.org/2005/xqt-errors namespace.
+ : The variables serves as documentation for the errors but can also
+ : be used in the code. For example, one useful scenario is to compare
+ : an error caught in the catch clause of a try-catch expression with one of
+ : the variables.
+ :
+ : @author Carlos Lopez
+ :
+ : @project error
+ :)
+
+xquery version '1.0';
+
+module namespace err = 'http://www.w3.org/2005/xqt-errors';
+
+declare variable $err:NS := 'http://www.w3.org/2005/xqt-errors';
+
+(:~
+ :
+ : It is a static error if analysis of an expression relies on some
+ : component of the static context that has not been assigned a value.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XPST0001 as xs:QName := fn:QName($err:NS, "err:XPST0001");
+
+(:~
+ :
+ : It is a dynamic error if evaluation of an expression relies on some part
+ : of the dynamic context that has not been assigned a value.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XPDY0002 as xs:QName := fn:QName($err:NS, "err:XPDY0002");
+
+(:~
+ :
+ : It is a static error if an expression is not a valid instance of the
+ : grammar.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XPST0003 as xs:QName := fn:QName($err:NS, "err:XPST0003");
+
+(:~
+ :
+ : It is a type error if, during the static analysis phase, an expression
+ : is found to have a static type that is not appropriate for the context
+ : in which the expression occurs, or during the dynamic evaluation phase,
+ : the dynamic type of a value does not match a required type as specified
+ : by the matching rules in 2.5.4 SequenceType Matching.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XPTY0004 as xs:QName := fn:QName($err:NS, "err:XPTY0004");
+
+(:~
+ :
+ : During the analysis phase, it is a static error if the static type
+ : assigned to an expression other than the expression \c () or \c data(())
+ : is \c empty-sequence().
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XPST0005 as xs:QName := fn:QName($err:NS, "err:XPST0005");
+
+(:~
+ :
+ : It is a static error if an expression refers to an element name,
+ : attribute name, schema type name, namespace prefix, or variable name
+ : that is not defined in the static context, except for an ElementName in
+ : an ElementTest or an AttributeName in an AttributeTest.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XPST0008 as xs:QName := fn:QName($err:NS, "err:XPST0008");
+
+(:~
+ :
+ : An implementation that does not support the Schema Import Feature must
+ : raise a static error if a Prolog contains a schema import.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0009 as xs:QName := fn:QName($err:NS, "err:XQST0009");
+
+(:~
+ :
+ : It is a static error if the set of definitions contained in all schemas
+ : imported by a Prolog do not satisfy the conditions for schema validity
+ : specified in Sections 3 and 5 of [XML Schema] Part 1--i.e., each
+ : definition must be valid, complete, and unique.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0012 as xs:QName := fn:QName($err:NS, "err:XQST0012");
+
+(:~
+ :
+ : It is a static error if an implementation recognizes a pragma but
+ : determines that its content is invalid.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0013 as xs:QName := fn:QName($err:NS, "err:XQST0013");
+
+(:~
+ :
+ : It is a static error if the expanded QName and number of arguments in a
+ : function call do not match the name and arity of a function signature in
+ : the static context.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XPST0017 as xs:QName := fn:QName($err:NS, "err:XPST0017");
+
+(:~
+ :
+ : It is a type error if the result of the last step in a path expression
+ : contains both nodes and non-nodes.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XPTY0018 as xs:QName := fn:QName($err:NS, "err:XPTY0018");
+
+(:~
+ :
+ : It is a type error if the result of a step (other than the last step) in a
+ : path expression contains an atomic value.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XPTY0019 as xs:QName := fn:QName($err:NS, "err:XPTY0019");
+
+(:~
+ :
+ : It is a type error if, in an axis step, the context item is not a node.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XPTY0020 as xs:QName := fn:QName($err:NS, "err:XPTY0020");
+
+(:~
+ :
+ : It is a static error if the value of a namespace declaration attribute is
+ : not a URILiteral.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0022 as xs:QName := fn:QName($err:NS, "err:XQST0022");
+
+(:~
+ :
+ : It is a type error if the content sequence in an element constructor
+ : contains an attribute node following a node that is not an attribute node.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQTY0024 as xs:QName := fn:QName($err:NS, "err:XQTY0024");
+
+(:~
+ :
+ : It is a dynamic error if any attribute of a constructed element does not
+ : have a name that is distinct from the names of all other attributes of
+ : the constructed element.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQDY0025 as xs:QName := fn:QName($err:NS, "err:XQDY0025");
+
+(:~
+ :
+ : It is a dynamic error if the result of the content expression of a
+ : computed processing instruction constructor contains the string "?>".
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQDY0026 as xs:QName := fn:QName($err:NS, "err:XQDY0026");
+
+(:~
+ :
+ : In a validate expression, it is a dynamic error if the root element
+ : information item in the PSVI resulting from validation does not have the
+ : expected validity property: \c valid if validation mode is \c strict, or
+ : either \c valid or \c notKnown if validation mode is \c lax.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQDY0027 as xs:QName := fn:QName($err:NS, "err:XQDY0027");
+
+(:~
+ :
+ : It is a type error if the argument of a validate expression does not
+ : evaluate to exactly one document or element node.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQTY0030 as xs:QName := fn:QName($err:NS, "err:XQTY0030");
+
+(:~
+ :
+ : It is a static error if the version number specified in a version
+ : declaration is not supported by the implementation.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0031 as xs:QName := fn:QName($err:NS, "err:XQST0031");
+
+(:~
+ :
+ : A static error is raised if a Prolog contains more than one base URI
+ : declaration.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0032 as xs:QName := fn:QName($err:NS, "err:XQST0032");
+
+(:~
+ :
+ : It is a static error if a module contains multiple bindings for the same
+ : namespace prefix.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0033 as xs:QName := fn:QName($err:NS, "err:XQST0033");
+
+(:~
+ :
+ : It is a static error if multiple functions declared or imported by a
+ : module have the same number of arguments and their expanded QNames are
+ : equal (as defined by the eq operator).
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0034 as xs:QName := fn:QName($err:NS, "err:XQST0034");
+
+(:~
+ :
+ : It is a static error to import two schema components that both define the
+ : same name in the same symbol space and in the same scope.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0035 as xs:QName := fn:QName($err:NS, "err:XQST0035");
+
+(:~
+ :
+ : It is a static error to import a module if the in-scope schema
+ : definitions of the importing module do not include all of the following:
+ : 
+ : -# An in-scope schema type for each type-name that appears:
+ : - in the type of a variable that is declared in the imported module
+ : and referenced in the importing module, OR
+ : - in a parameter-type or result-type of a function that is declared in
+ : the imported module and referenced in the importing module.
+ : -# An in-scope element declaration for each element-name \c EN such that:
+ : - \c schema-element(EN) appears in the declared type of a variable in
+ : the imported module, and that variable is referenced in the
+ : importing module, OR
+ : - \c schema-element(EN) appears in a parameter-type or result-type
+ : of a function declared in the imported module, and that function is
+ : referenced in the importing module.
+ : -# An in-scope attribute declaration for each attribute-name \c AN such
+ : that:
+ : - \c schema-attribute(AN) appears in the declared type of a variable
+ : in the imported module, and that variable is referenced in the
+ : importing module, OR
+ : - \c schema-attribute(AN) appears in a parameter-type or result-type
+ : of a function declared in the imported module, and that function is
+ : referenced in the importing module.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0036 as xs:QName := fn:QName($err:NS, "err:XQST0036");
+
+(:~
+ :
+ : It is a static error if a Prolog contains more than one default collation
+ : declaration, or the value specified by a default collation declaration is
+ : not present in statically known collations.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0038 as xs:QName := fn:QName($err:NS, "err:XQST0038");
+
+(:~
+ :
+ : It is a static error for a function declaration to have more than one
+ : parameter with the same name.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0039 as xs:QName := fn:QName($err:NS, "err:XQST0039");
+
+(:~
+ :
+ : It is a static error if the attributes specified by a direct element
+ : constructor do not have distinct expanded QNames.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0040 as xs:QName := fn:QName($err:NS, "err:XQST0040");
+
+(:~
+ :
+ : It is a dynamic error if the value of the name expression in a computed
+ : processing instruction constructor cannot be cast to the type
+ : \c xs:NCName.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQDY0041 as xs:QName := fn:QName($err:NS, "err:XQDY0041");
+
+(:~
+ :
+ : It is a static error the node-name of a node constructed by a computed
+ : attribute constructor has any of the following properties:
+ : - Its namespace prefix is \c xmlns.
+ : - It has no namespace prefix and its local name is \c xmlns.
+ : - Its namespace URI is http://www.w3.org/2000/xmlns/.
+ : - Its namespace prefix is \c xml and its namespace URI is not
+ : http://www.w3.org/XML/1998/namespace.
+ : - Its namespace prefix is other than \c xml and its namespace URI is
+ : http://www.w3.org/XML/1998/namespace.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQDY0044 as xs:QName := fn:QName($err:NS, "err:XQDY0044");
+
+(:~
+ :
+ : It is a static error if the function name in a function declaration is in
+ : one of the following namespaces:
+ : http://www.w3.org/XML/1998/namespace,
+ : http://www.w3.org/2001/XMLSchema,
+ : http://www.w3.org/2001/XMLSchema-instance,
+ : http://www.w3.org/2005/xpath-functions.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0045 as xs:QName := fn:QName($err:NS, "err:XQST0045");
+
+(:~
+ :
+ : An implementation MAY raise a static error if the value of a URILiteral
+ : is of nonzero length and is not in the lexical space of \c xs:anyURI.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0046 as xs:QName := fn:QName($err:NS, "err:XQST0046");
+
+(:~
+ :
+ : It is a static error if multiple module imports in the same Prolog
+ : specify the same target namespace.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0047 as xs:QName := fn:QName($err:NS, "err:XQST0047");
+
+(:~
+ :
+ : It is a static error if a function or variable declared in a library
+ : module is not in the target namespace of the library module.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0048 as xs:QName := fn:QName($err:NS, "err:XQST0048");
+
+(:~
+ :
+ : It is a static error if two or more variables declared or imported by a
+ : module have equal expanded QNames (as defined by the eq operator.)
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0049 as xs:QName := fn:QName($err:NS, "err:XQST0049");
+
+(:~
+ :
+ : It is a dynamic error if the dynamic type of the operand of a treat
+ : expression does not match the sequence type specified by the treat
+ : expression. This error might also be raised by a path expression
+ : beginning with "/" or "//" if the context node
+ : is not in a tree that is rooted at a document node. This is because a
+ : leading "/" or "//" in a path expression is an
+ : abbreviation for an initial step that includes the clause \c treat as \c
+ : document-node().
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XPDY0050 as xs:QName := fn:QName($err:NS, "err:XPDY0050");
+
+(:~
+ :
+ : It is a static error if a QName that is used as an AtomicType in a
+ : SequenceType is not defined in the in-scope schema types as an atomic
+ : type.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XPST0051 as xs:QName := fn:QName($err:NS, "err:XPST0051");
+
+(:~
+ :
+ : It is a static error if a variable depends on itself.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0054 as xs:QName := fn:QName($err:NS, "err:XQST0054");
+
+(:~
+ :
+ : It is a static error if a Prolog contains more than one copy-namespaces
+ : declaration.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0055 as xs:QName := fn:QName($err:NS, "err:XQST0055");
+
+(:~
+ :
+ : It is a static error if a schema import binds a namespace prefix but does
+ : not specify a target namespace other than a zero-length string.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0057 as xs:QName := fn:QName($err:NS, "err:XQST0057");
+
+(:~
+ :
+ : It is a static error if multiple schema imports specify the same target
+ : namespace.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0058 as xs:QName := fn:QName($err:NS, "err:XQST0058");
+
+(:~
+ :
+ : It is a static error if an implementation is unable to process a schema
+ : or module import by finding a schema or module with the specified target
+ : namespace.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0059 as xs:QName := fn:QName($err:NS, "err:XQST0059");
+
+(:~
+ :
+ : It is a static error if the name of a function in a function declaration
+ : is not in a namespace (expanded QName has a null namespace URI).
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0060 as xs:QName := fn:QName($err:NS, "err:XQST0060");
+
+(:~
+ :
+ : It is a dynamic error if the operand of a validate expression is a
+ : document node whose children do not consist of exactly one element node
+ : and zero or more comment and processing instruction nodes, in any order.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQDY0061 as xs:QName := fn:QName($err:NS, "err:XQDY0061");
+
+(:~
+ :
+ : It is a dynamic error if the value of the name expression in a computed
+ : processing instruction constructor is equal to "XML" (in any combination
+ : of upper and lower case).
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQDY0064 as xs:QName := fn:QName($err:NS, "err:XQDY0064");
+
+(:~
+ :
+ : A static error is raised if a Prolog contains more than one ordering mode
+ : declaration.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0065 as xs:QName := fn:QName($err:NS, "err:XQST0065");
+
+(:~
+ :
+ : A static error is raised if a Prolog contains more than one default
+ : element/type namespace declaration, or more than one default function
+ : namespace declaration.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0066 as xs:QName := fn:QName($err:NS, "err:XQST0066");
+
+(:~
+ :
+ : A static error is raised if a Prolog contains more than one construction
+ : declaration.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0067 as xs:QName := fn:QName($err:NS, "err:XQST0067");
+
+(:~
+ :
+ : A static error is raised if a Prolog contains more than one
+ : boundary-space declaration.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0068 as xs:QName := fn:QName($err:NS, "err:XQST0068");
+
+(:~
+ :
+ : A static error is raised if a Prolog contains more than one empty order
+ : declaration.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0069 as xs:QName := fn:QName($err:NS, "err:XQST0069");
+
+(:~
+ :
+ : A static error is raised if one of the predefined prefixes \c xml or \c
+ : xmlns appears in a namespace declaration, or if any of the following
+ : conditions is statically detected in any expression or declaration:
+ : - The prefix \c xml is bound to some namespace URI other than
+ : http://www.w3.org/XML/1998/namespace.
+ : - A prefix other than \c xml is bound to the namespace URI
+ : http://www.w3.org/XML/1998/namespace.
+ : - The prefix \c xmlns is bound to any namespace URI.
+ : - A prefix other than \c xmlns is bound to the namespace URI
+ : http://www.w3.org/2000/xmlns/.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0070 as xs:QName := fn:QName($err:NS, "err:XQST0070");
+
+(:~
+ :
+ : A static error is raised if the namespace declaration attributes of a
+ : direct element constructor do not have distinct names.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0071 as xs:QName := fn:QName($err:NS, "err:XQST0071");
+
+(:~
+ :
+ : It is a dynamic error if the result of the content expression of a
+ : computed comment constructor contains two adjacent hyphens or ends with
+ : a hyphen.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQDY0072 as xs:QName := fn:QName($err:NS, "err:XQDY0072");
+
+(:~
+ :
+ : It is a dynamic error if the value of the name expression in a computed
+ : element or attribute constructor cannot be converted to an expanded
+ : QName (for example, because it contains a namespace prefix not found in
+ : statically known namespaces).
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQDY0074 as xs:QName := fn:QName($err:NS, "err:XQDY0074");
+
+(:~
+ :
+ : It is a static error if a \c collation subclause in an order by clause
+ : of a FLWOR expression does not identify a collation that is present in
+ : statically known collations.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0076 as xs:QName := fn:QName($err:NS, "err:XQST0076");
+
+(:~
+ :
+ : It is a static error if an extension expression contains neither a
+ : pragma that is recognized by the implementation nor an expression
+ : enclosed in curly braces.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0079 as xs:QName := fn:QName($err:NS, "err:XQST0079");
+
+(:~
+ :
+ : It is a static error if the target type of a \c cast or \c castable
+ : expression is \c xs:NOTATION or \c xs:anyAtomicType.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XPST0080 as xs:QName := fn:QName($err:NS, "err:XPST0080");
+
+(:~
+ :
+ : It is a static error if a QName used in a query contains a namespace
+ : prefix that cannot be expanded into a namespace URI by using the
+ : statically known namespaces.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XPST0081 as xs:QName := fn:QName($err:NS, "err:XPST0081");
+
+(:~
+ :
+ : It is a static error if the target type of a \c cast expression or
+ : constructor function is \c xs:QName or a type derived from \c xs:QName
+ : or \c xs:NOTATION, and the argument of the cast expression or
+ : constructor function is not a string literal.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XPST0083 as xs:QName := fn:QName($err:NS, "err:XPST0083");
+
+(:~
+ :
+ : It is a dynamic error if the element validated by a \c validate statement
+ : does not have a top-level element declaration in the in-scope element
+ : declarations, if validation mode is \c strict.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQDY0084 as xs:QName := fn:QName($err:NS, "err:XQDY0084");
+
+(:~
+ :
+ : It is a static error if the namespace URI in a namespace declaration
+ : attribute is a zero-length string, and the implementation does not
+ : support [XML Names 1.1].
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0085 as xs:QName := fn:QName($err:NS, "err:XQST0085");
+
+(:~
+ :
+ : It is a type error if the typed value of a copied element or attribute
+ : node is namespace-sensitive when construction mode is \c preserve and
+ : copy-namespaces mode is \c no-preserve.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQTY0086 as xs:QName := fn:QName($err:NS, "err:XQTY0086");
+
+(:~
+ :
+ : It is a static error if the encoding specified in a Version Declaration
+ : does not conform to the definition of \c EncName specified in [XML 1.0]
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0087 as xs:QName := fn:QName($err:NS, "err:XQST0087");
+
+(:~
+ :
+ : It is a static error if the literal that specifies the target namespace
+ : in a module import or a module declaration is of zero length.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0088 as xs:QName := fn:QName($err:NS, "err:XQST0088");
+
+(:~
+ :
+ : It is a static error if a variable bound in a \c for or \c window clause
+ : of a FLWOR expression, and its associated positional variable, do not
+ : have distinct names (expanded QNames).
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0089 as xs:QName := fn:QName($err:NS, "err:XQST0089");
+
+(:~
+ :
+ : It is a static error if a character reference does not identify a valid
+ : character in the version of XML that is in use.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0090 as xs:QName := fn:QName($err:NS, "err:XQST0090");
+
+(:~
+ :
+ : An implementation MAY raise a dynamic error if an \c xml:id error, as
+ : defined in [XML ID], is encountered during construction of an attribute
+ : named \c xml:id.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQDY0091 as xs:QName := fn:QName($err:NS, "err:XQDY0091");
+
+(:~
+ :
+ : An implementation MAY raise a dynamic error if a constructed attribute
+ : named \c xml:space has a value other than \c preserve or \c default.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQDY0092 as xs:QName := fn:QName($err:NS, "err:XQDY0092");
+
+(:~
+ :
+ : It is a static error to import a module M1 if there exists a sequence of
+ : modules M1 ... Mi ... M1 such that each module directly depends on the
+ : next module in the sequence (informally, if M1 depends on itself through
+ : some chain of module dependencies.)
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0093 as xs:QName := fn:QName($err:NS, "err:XQST0093");
+
+(:~
+ :
+ : It is a dynamic error the node-name of a node constructed by a computed
+ : element constructor has any of the following properties:
+ : - Its namespace prefix is \c xmlns.
+ : - Its namespace URI is http://www.w3.org/2000/xmlns/.
+ : - Its namespace prefix is \c xml and its namespace URI is not
+ : http://www.w3.org/XML/1998/namespace.
+ : - Its namespace prefix is other than \c xml and its namespace URI is
+ : http://www.w3.org/XML/1998/namespace.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQDY0096 as xs:QName := fn:QName($err:NS, "err:XQDY0096");
+
+(:~
+ :
+ : It is a static error if, for any named or unnamed decimal format, the
+ : properties representing characters used in a picture string do not each
+ : have distinct values. These properties are decimal-separator-sign,
+ : grouping-separator, percent-sign, per-mille-sign, zero-digit,
+ : digit-sign, and pattern-separator-sign.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0098 as xs:QName := fn:QName($err:NS, "err:XQST0098");
+
+(:~
+ :
+ : It is a static error if a function's annotations contain more than one
+ : annotation named \c private or \c public.  It is a static error if a
+ : function's annotations contain more than one annotation named \c
+ : deterministic or \c nondeterministic.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0106 as xs:QName := fn:QName($err:NS, "err:XQST0106");
+
+(:~
+ :
+ : It is a static error for a query prolog to contain two decimal formats
+ : with the same name, or to contain two default decimal formats.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XQST0111 as xs:QName := fn:QName($err:NS, "err:XQST0111");
+
+(:~
+ :
+ : It is a non-recoverable dynamic error if the picture string does not
+ : satisfy the format-number function rules.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XTDE1310 as xs:QName := fn:QName($err:NS, "err:XTDE1310");
+
+(:~
+ :
+ : It is a non-recoverable dynamic error if the syntax of the picture is
+ : incorrect.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XTDE1340 as xs:QName := fn:QName($err:NS, "err:XTDE1340");
+
+(:~
+ :
+ : It is a non-recoverable dynamic error if a component specifier within the
+ : picture refers to components that are not available in the given type of
+ : \c $value.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XTDE1350 as xs:QName := fn:QName($err:NS, "err:XTDE1350");
+
+(:~
+ :
+ : It is a static error if, during the static analysis phase, the query is
+ : found to contain a stop word option that refers to a stop word list that
+ : is not found in the statically known stop word lists.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FTST0008 as xs:QName := fn:QName($err:NS, "err:FTST0008");
+
+(:~
+ :
+ : It may be a static error if, during the static analysis phase, the query
+ : is found to contain a language identifier in a language option that the
+ : implementation does not support. The implementation may choose not to
+ : raise this error and instead provide some other implementation-defined
+ : behavior.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FTST0009 as xs:QName := fn:QName($err:NS, "err:FTST0009");
+
+(:~
+ :
+ : It is a dynamic error if a weight value is not within the required range
+ : of values; it is also a dynamic error if an implementation that does not
+ : support negative weights encounters a negative weight value.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FTDY0016 as xs:QName := fn:QName($err:NS, "err:FTDY0016");
+
+(:~
+ :
+ : It is a dynamic error if an implementation encounters a mild not
+ : selection, one of whose operands evaluates to an AllMatches that
+ : contains a StringExclude.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FTDY0017 as xs:QName := fn:QName($err:NS, "err:FTDY0017");
+
+(:~
+ :
+ : It is a static error if, during the static analysis phase, the query is
+ : found to contain a thesaurus option that refers to a thesaurus that is
+ : not found in the statically known thesauri.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FTST0018 as xs:QName := fn:QName($err:NS, "err:FTST0018");
+
+(:~
+ :
+ : It is a static error if, within a single FTMatchOptions, there is more
+ : than one match option of any given match option group.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FTST0019 as xs:QName := fn:QName($err:NS, "err:FTST0019");
+
+(:~
+ :
+ : It is a dynamic error if, when "wildcards" is in effect, a query string
+ : violates wildcard syntax.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FTDY0020 as xs:QName := fn:QName($err:NS, "err:FTDY0020");
+
+(:~
+ :
+ : Unidentified error.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOER0000 as xs:QName := fn:QName($err:NS, "err:FOER0000");
+
+(:~
+ :
+ : Division by zero.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOAR0001 as xs:QName := fn:QName($err:NS, "err:FOAR0001");
+
+(:~
+ :
+ : Numeric operation overflow/underflow.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOAR0002 as xs:QName := fn:QName($err:NS, "err:FOAR0002");
+
+(:~
+ :
+ : Input value too large for decimal.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOCA0001 as xs:QName := fn:QName($err:NS, "err:FOCA0001");
+
+(:~
+ :
+ : Invalid lexical value.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOCA0002 as xs:QName := fn:QName($err:NS, "err:FOCA0002");
+
+(:~
+ :
+ : Input value too large for integer.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOCA0003 as xs:QName := fn:QName($err:NS, "err:FOCA0003");
+
+(:~
+ :
+ : NaN supplied as float/double value.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOCA0005 as xs:QName := fn:QName($err:NS, "err:FOCA0005");
+
+(:~
+ :
+ : String to be cast to decimal has too many digits of precision.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOCA0006 as xs:QName := fn:QName($err:NS, "err:FOCA0006");
+
+(:~
+ :
+ : Code point not valid.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOCH0001 as xs:QName := fn:QName($err:NS, "err:FOCH0001");
+
+(:~
+ :
+ : Unsupported collation.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOCH0002 as xs:QName := fn:QName($err:NS, "err:FOCH0002");
+
+(:~
+ :
+ : Unsupported normalization form.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOCH0003 as xs:QName := fn:QName($err:NS, "err:FOCH0003");
+
+(:~
+ :
+ : Collation does not support collation units.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOCH0004 as xs:QName := fn:QName($err:NS, "err:FOCH0004");
+
+(:~
+ :
+ : No context document.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FODC0001 as xs:QName := fn:QName($err:NS, "err:FODC0001");
+
+(:~
+ :
+ : Error retrieving resource.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FODC0002 as xs:QName := fn:QName($err:NS, "err:FODC0002");
+
+(:~
+ :
+ : Function stability not defined.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FODC0003 as xs:QName := fn:QName($err:NS, "err:FODC0003");
+
+(:~
+ :
+ : Invalid argument to \c fn:collection().
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FODC0004 as xs:QName := fn:QName($err:NS, "err:FODC0004");
+
+(:~
+ :
+ : Invalid argument to \c fn:doc() or \c fn:doc-available().
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FODC0005 as xs:QName := fn:QName($err:NS, "err:FODC0005");
+
+(:~
+ :
+ : Invalid content passed to \c fn:parse().
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FODC0006 as xs:QName := fn:QName($err:NS, "err:FODC0006");
+
+(:~
+ :
+ : Base URI passed to \c fn:parse() is not a valid absolute URI.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FODC0007 as xs:QName := fn:QName($err:NS, "err:FODC0007");
+
+(:~
+ :
+ : Invalid decimal format name supplied to \c fn:format-number().
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FODF1280 as xs:QName := fn:QName($err:NS, "err:FODF1280");
+
+(:~
+ :
+ : Invalid \c fn:format-number() picture string.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FODF1310 as xs:QName := fn:QName($err:NS, "err:FODF1310");
+
+(:~
+ :
+ : Overflow/underflow in date/time operation.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FODT0001 as xs:QName := fn:QName($err:NS, "err:FODT0001");
+
+(:~
+ :
+ : Overflow/underflow in duration operation.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FODT0002 as xs:QName := fn:QName($err:NS, "err:FODT0002");
+
+(:~
+ :
+ : Invalid timezone value.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FODT0003 as xs:QName := fn:QName($err:NS, "err:FODT0003");
+
+(:~
+ :
+ : format-integer: Cannot cast $language to \c xs:language.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOFI0001 as xs:QName := fn:QName($err:NS, "err:FOFI0001");
+
+(:~
+ :
+ : format-integer: invalid parameter.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOFI0002 as xs:QName := fn:QName($err:NS, "err:FOFI0002");
+
+(:~
+ :
+ : No namespace found for prefix.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FONS0004 as xs:QName := fn:QName($err:NS, "err:FONS0004");
+
+(:~
+ :
+ : Base-URI not defined in static context.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FONS0005 as xs:QName := fn:QName($err:NS, "err:FONS0005");
+
+(:~
+ :
+ : Invalid value for cast/constructor.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FORG0001 as xs:QName := fn:QName($err:NS, "err:FORG0001");
+
+(:~
+ :
+ : Invalid argument to \c fn:resolve-uri().
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FORG0002 as xs:QName := fn:QName($err:NS, "err:FORG0002");
+
+(:~
+ :
+ : \c fn:zero-or-one() called with a sequence containing more than one
+ : item.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FORG0003 as xs:QName := fn:QName($err:NS, "err:FORG0003");
+
+(:~
+ :
+ : \c fn:one-or-more() called with a sequence containing no items.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FORG0004 as xs:QName := fn:QName($err:NS, "err:FORG0004");
+
+(:~
+ :
+ : \c fn:exactly-one() called with a sequence containing zero or more
+ : than one item.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FORG0005 as xs:QName := fn:QName($err:NS, "err:FORG0005");
+
+(:~
+ :
+ : Invalid argument type.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FORG0006 as xs:QName := fn:QName($err:NS, "err:FORG0006");
+
+(:~
+ :
+ : The two arguments to fn:dateTime() have inconsistent timezones.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FORG0008 as xs:QName := fn:QName($err:NS, "err:FORG0008");
+
+(:~
+ :
+ : Error in resolving a relative URI against a base URI in
+ : \c fn:resolve-uri().
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FORG0009 as xs:QName := fn:QName($err:NS, "err:FORG0009");
+
+(:~
+ :
+ : Invalid regular expression flags.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FORX0001 as xs:QName := fn:QName($err:NS, "err:FORX0001");
+
+(:~
+ :
+ : Invalid regular expression.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FORX0002 as xs:QName := fn:QName($err:NS, "err:FORX0002");
+
+(:~
+ :
+ : Regular expression matches zero-length string.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FORX0003 as xs:QName := fn:QName($err:NS, "err:FORX0003");
+
+(:~
+ :
+ : Invalid replacement string.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FORX0004 as xs:QName := fn:QName($err:NS, "err:FORX0004");
+
+(:~
+ :
+ : Argument node does not have a typed value.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOTY0012 as xs:QName := fn:QName($err:NS, "err:FOTY0012");
+
+(:~
+ :
+ : An argument to \c fn:data() contains a node that does not have a typed
+ : value.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOTY0013 as xs:QName := fn:QName($err:NS, "err:FOTY0013");
+
+(:~
+ :
+ : The argument to \c fn:string() is a function item.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOTY0014 as xs:QName := fn:QName($err:NS, "err:FOTY0014");
+
+(:~
+ :
+ : An argument to \c fn:deep-equal() contains a function item.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOTY0015 as xs:QName := fn:QName($err:NS, "err:FOTY0015");
+
+(:~
+ :
+ : It is a static error if an updating expression is used in any position
+ : other than one of the following:
+ : - The topmost expression in the body of a query.
+ : - The \c modify clause of a transform expression.
+ : - The \c return clause of a FLWOR expression.
+ : - The \c return clauses of a typeswitch expression in which every \c
+ : return clause contains an updating expression or a vacuous expression.
+ : - The \c then and \c else clauses of a conditional statement in which
+ : both the \c then and \c else clauses contain either an updating
+ : expression or a vacuous expression.
+ : - An operand of a comma expression in which each operand is either an
+ : updating expression or a vacuous expression.
+ : - The content of a parenthesized expression.
+ : - The body of a function declaration in which the keyword \c updating is
+ : specified.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUST0001 as xs:QName := fn:QName($err:NS, "err:XUST0001");
+
+(:~
+ :
+ : It is a static error if a simple expression that is not a vacuous
+ : expression is used in one of the following positions:
+ : - The \c modify clause of a transform expression.
+ : - The top-level expression in the body of a function declaration in
+ : which the keyword \c updating is specified.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUST0002 as xs:QName := fn:QName($err:NS, "err:XUST0002");
+
+(:~
+ :
+ : It is a static error if a Prolog contains more than one revalidation
+ : declaration.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUST0003 as xs:QName := fn:QName($err:NS, "err:XUST0003");
+
+(:~
+ :
+ : It is a type error if the insertion sequence of an insert expression
+ : contains an attribute node following a node that is not an attribute
+ : node.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUTY0004 as xs:QName := fn:QName($err:NS, "err:XUTY0004");
+
+(:~
+ :
+ : In an insert expression where into, as first
+ : into, or as last into is specified, it is a type
+ : error if the target expression returns a non-empty result that does not
+ : consist of a single element or document node.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUTY0005 as xs:QName := fn:QName($err:NS, "err:XUTY0005");
+
+(:~
+ :
+ : In an insert expression where \c before or \c after is specified, it is
+ : a type error if the target expression returns a non-empty result that
+ : does not consist of a single element, text, comment, or processing
+ : instruction node.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUTY0006 as xs:QName := fn:QName($err:NS, "err:XUTY0006");
+
+(:~
+ :
+ : It is a type error if the target expression of a delete expression does
+ : not return a sequence of zero or more nodes.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUTY0007 as xs:QName := fn:QName($err:NS, "err:XUTY0007");
+
+(:~
+ :
+ : In a replace expression, it is a type error if the target expression
+ : returns a non-empty result that does not consist of a single element,
+ : attribute, text, comment, or processing instruction node.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUTY0008 as xs:QName := fn:QName($err:NS, "err:XUTY0008");
+
+(:~
+ :
+ : In a replace expression where value of is not specified, it
+ : is a dynamic error if the node returned by the target expression does
+ : not have a parent.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUDY0009 as xs:QName := fn:QName($err:NS, "err:XUDY0009");
+
+(:~
+ :
+ : In a replace expression where value of is not specified and
+ : the target is an element, text, comment, or processing instruction node,
+ : it is a type error if the replacement sequence does not consist of zero
+ : or more element, text, comment, or processing instruction nodes.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUTY0010 as xs:QName := fn:QName($err:NS, "err:XUTY0010");
+
+(:~
+ :
+ : In a replace expression where value of is not specified and
+ : the target is an attribute node, it is a type error if the replacement
+ : sequence does not consist of zero or more attribute nodes.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUTY0011 as xs:QName := fn:QName($err:NS, "err:XUTY0011");
+
+(:~
+ :
+ : In a rename expression, it is a type error if the target expression
+ : returns a non-empty result that does not consist of a single element,
+ : attribute, or processing instruction node.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUTY0012 as xs:QName := fn:QName($err:NS, "err:XUTY0012");
+
+(:~
+ :
+ : In a transform expression, it is a type error if a source expression in
+ : the \c copy clause does not return a single node.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUTY0013 as xs:QName := fn:QName($err:NS, "err:XUTY0013");
+
+(:~
+ :
+ : In a transform expression, it is a dynamic error if the \c modify clause
+ : modifies any node that was not created by the \c copy clause.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUDY0014 as xs:QName := fn:QName($err:NS, "err:XUDY0014");
+
+(:~
+ :
+ : It is a dynamic error if any node is the target of more than one \c
+ : rename expression within the same query.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUDY0015 as xs:QName := fn:QName($err:NS, "err:XUDY0015");
+
+(:~
+ :
+ : It is a dynamic error if any node is the target of more than one \c
+ : replace expression (without value of being specified)
+ : within the same query.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUDY0016 as xs:QName := fn:QName($err:NS, "err:XUDY0016");
+
+(:~
+ :
+ : It is a dynamic error if any node is the target of more than one
+ : replace value of expression within the same query.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUDY0017 as xs:QName := fn:QName($err:NS, "err:XUDY0017");
+
+(:~
+ :
+ : It is a dynamic error if a function that was declared to be \c external
+ : but not \c updating returns a non-empty pending update list.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUDY0018 as xs:QName := fn:QName($err:NS, "err:XUDY0018");
+
+(:~
+ :
+ : It is a dynamic error if a function that was declared to be both \c
+ : external and \c updating returns a non-empty data model instance.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUDY0019 as xs:QName := fn:QName($err:NS, "err:XUDY0019");
+
+(:~
+ :
+ : It is a dynamic error if the XDM instance that would result from
+ : applying all the updates in a query violates any constraint specified in
+ : [XQuery 1.0 and XPath 2.0 Data Model]. In this case, none of the updates
+ : in the query are made effective.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUDY0021 as xs:QName := fn:QName($err:NS, "err:XUDY0021");
+
+(:~
+ :
+ : It is a type error if an insert expression specifies the insertion of an
+ : attribute node into a document node.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUTY0022 as xs:QName := fn:QName($err:NS, "err:XUTY0022");
+
+(:~
+ :
+ : It is a dynamic error if an insert, replace, or rename expression
+ : affects an element node by introducing a new namespace binding that
+ : conflicts with one of its existing namespace bindings.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUDY0023 as xs:QName := fn:QName($err:NS, "err:XUDY0023");
+
+(:~
+ :
+ : It is a dynamic error if the effect of a set of updating expressions is
+ : to introduce conflicting namespace bindings into an element node.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUDY0024 as xs:QName := fn:QName($err:NS, "err:XUDY0024");
+
+(:~
+ :
+ : It is a dynamic error if the target expression of an insert, replace, or
+ : rename expression evaluates to an empty sequence.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUDY0027 as xs:QName := fn:QName($err:NS, "err:XUDY0027");
+
+(:~
+ :
+ : It is a static error if a function declaration specifies both \c updating
+ : and a return type.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUST0028 as xs:QName := fn:QName($err:NS, "err:XUST0028");
+
+(:~
+ :
+ : In an insert expression where \c before or \c after is specified, it is
+ : a dynamic error if the node returned by the target expression does not
+ : have a parent.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUDY0029 as xs:QName := fn:QName($err:NS, "err:XUDY0029");
+
+(:~
+ :
+ : It is a dynamic error if an insert expression specifies the insertion of
+ : an attribute node before or after a child of a document node.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUDY0030 as xs:QName := fn:QName($err:NS, "err:XUDY0030");
+
+(:~
+ :
+ : It is a dynamic error if multiple calls to \c fn:put() in the same
+ : snapshot specify the same URI (after resolution of relative URIs).
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:XUDY0031 as xs:QName := fn:QName($err:NS, "err:XUDY0031");
+
+(:~
+ :
+ : It is a dynamic error if the first operand of \c fn:put() is not a node
+ : of a supported kind.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOUP0001 as xs:QName := fn:QName($err:NS, "err:FOUP0001");
+
+(:~
+ :
+ : It is a dynamic error if the second operand of \c fn:put() is not a valid
+ : lexical representation of the \c xs:anyURI type.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOUP0002 as xs:QName := fn:QName($err:NS, "err:FOUP0002");
+
+(:~
+ :
+ : It is an error if an item in S6 in sequence normalization is an attribute
+ : node or a namespace node.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:SENR0001 as xs:QName := fn:QName($err:NS, "err:SENR0001");
+
+(:~
+ :
+ : It is an error if the serializer is unable to satisfy the rules for
+ : either a well-formed XML document entity or a well-formed XML external
+ : general parsed entity, or both, except for content modified by the
+ : character expansion phase of serialization.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:SERE0003 as xs:QName := fn:QName($err:NS, "err:SERE0003");
+
+(:~
+ :
+ : It is an error to specify the doctype-system parameter, or to specify
+ : the standalone parameter with a value other than omit, if the instance
+ : of the data model contains text nodes or multiple element nodes as
+ : children of the root node.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:SEPM0004 as xs:QName := fn:QName($err:NS, "err:SEPM0004");
+
+(:~
+ :
+ : It is an error if the serialized result would contain an NCName Names
+ : that contains a character that is not permitted by the version of
+ : Namespaces in XML specified by the version parameter.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:SERE0005 as xs:QName := fn:QName($err:NS, "err:SERE0005");
+
+(:~
+ :
+ : It is an error if the serialized result would contain a character that is
+ : not permitted by the version of XML specified by the version parameter.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:SERE0006 as xs:QName := fn:QName($err:NS, "err:SERE0006");
+
+(:~
+ :
+ : It is an error if an output encoding other than UTF-8 or UTF-16 is
+ : requested and the serializer does not support that encoding.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:SESU0007 as xs:QName := fn:QName($err:NS, "err:SESU0007");
+
+(:~
+ :
+ : It is an error if a character that cannot be represented in the encoding
+ : that the serializer is using for output appears in a context where
+ : character references are not allowed (for example if the character
+ : occurs in the name of an element).
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:SERE0008 as xs:QName := fn:QName($err:NS, "err:SERE0008");
+
+(:~
+ :
+ : It is an error if the omit-xml-declaration parameter has the value yes,
+ : and the standalone attribute has a value other than omit; or the version
+ : parameter has a value other than 1.0 and the doctype-system parameter is
+ : specified.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:SEPM0009 as xs:QName := fn:QName($err:NS, "err:SEPM0009");
+
+(:~
+ :
+ : It is an error if the output method is xml, the value of the
+ : undeclare-prefixes parameter is yes, and the value of the version
+ : parameter is 1.0.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:SEPM0010 as xs:QName := fn:QName($err:NS, "err:SEPM0010");
+
+(:~
+ :
+ : It is an error if the value of the normalization-form parameter
+ : specifies a normalization form that is not supported by the serializer.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:SESU0011 as xs:QName := fn:QName($err:NS, "err:SESU0011");
+
+(:~
+ :
+ : It is an error if the value of the normalization-form parameter is
+ : fully-normalized and any relevant construct of the result begins with a
+ : combining character.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:SERE0012 as xs:QName := fn:QName($err:NS, "err:SERE0012");
+
+(:~
+ :
+ : It is an error if the serializer does not support the version of XML or
+ : HTML specified by the version parameter.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:SESU0013 as xs:QName := fn:QName($err:NS, "err:SESU0013");
+
+(:~
+ :
+ : It is an error to use the HTML output method when characters which are
+ : legal in XML but not in HTML, specifically the control characters
+ : #x7F-#x9F, appear in the instance of the data model.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:SERE0014 as xs:QName := fn:QName($err:NS, "err:SERE0014");
+
+(:~
+ :
+ : It is an error to use the HTML output method when \c > appears within a
+ : processing instruction in the data model instance being serialized.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:SERE0015 as xs:QName := fn:QName($err:NS, "err:SERE0015");
+
+(:~
+ :
+ : It is a an error if a parameter value is invalid for the defined domain.
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
 declare variable $err:SEPM0016 as xs:QName := fn:QName($err:NS, "err:SEPM0016");
\ No newline at end of file

=== modified file 'src/api/dynamiccontextimpl.cpp'
--- src/api/dynamiccontextimpl.cpp	2011-10-03 09:18:49 +0000
+++ src/api/dynamiccontextimpl.cpp	2011-11-03 16:28:29 +0000
@@ -182,7 +182,6 @@
   return var;
 }
 
-
 /****************************************************************************//**
 
 ********************************************************************************/

=== modified file 'src/api/dynamiccontextimpl.h'
--- src/api/dynamiccontextimpl.h	2011-10-03 09:18:49 +0000
+++ src/api/dynamiccontextimpl.h	2011-11-03 16:28:29 +0000
@@ -81,6 +81,7 @@
   virtual ~DynamicContextImpl();
 
 public:
+
   virtual bool
   getVariable(
       const String& inNamespace,

=== modified file 'src/api/staticcontextimpl.cpp'
--- src/api/staticcontextimpl.cpp	2011-09-14 11:08:52 +0000
+++ src/api/staticcontextimpl.cpp	2011-11-03 16:28:29 +0000
@@ -46,6 +46,7 @@
 
 #include "compiler/parser/query_loc.h"
 #include "compiler/api/compilercb.h"
+#include "compiler/expression/var_expr.h"
 
 #include "functions/function.h"
 
@@ -1356,5 +1357,23 @@
   return theCtx->get_audit_event();
 }
 
+bool
+StaticContextImpl::getExternalVariables(std::vector<Item>& aVars) const
+{
+  std::vector<var_expr_t> lVars;
+  theCtx->getVariables(lVars, true, false, true);
+  std::vector<var_expr_t>::const_iterator lIte = lVars.begin();
+  std::vector<var_expr_t>::const_iterator lEnd = lVars.end();
+  
+  for (; lIte != lEnd; ++lIte) 
+  { 
+    aVars.push_back(lIte->getp()->get_name());        
+  }    
+  if(aVars.empty())
+    return false;
+
+  return true;
+}
+
 } /* namespace zorba */
 /* vim:set et sw=2 ts=2: */

=== modified file 'src/api/staticcontextimpl.h'
--- src/api/staticcontextimpl.h	2011-08-31 13:17:59 +0000
+++ src/api/staticcontextimpl.h	2011-11-03 16:28:29 +0000
@@ -265,10 +265,13 @@
 
   virtual void
   setAuditEvent(audit::Event* anEvent);
-
+  
   virtual audit::Event*
   getAuditEvent();
 
+  virtual bool
+  getExternalVariables(std::vector<Item>& aVars) const;  
+
 protected:
   String
   createInvokeQuery(const Function_t&, size_t aArity) const;

=== modified file 'src/api/xqueryimpl.cpp'
--- src/api/xqueryimpl.cpp	2011-09-14 11:08:52 +0000
+++ src/api/xqueryimpl.cpp	2011-11-03 16:28:29 +0000
@@ -54,6 +54,7 @@
 
 #include "compiler/api/compiler_api.h"
 #include "compiler/api/compilercb.h"
+#include "compiler/expression/var_expr.h"
 
 #include "runtime/base/plan_iterator.h"
 #include "runtime/api/plan_wrapper.h"
@@ -727,6 +728,58 @@
   return theCollMgr;
 }
 
+/*******************************************************************************
+
+********************************************************************************/
+bool compareStringValueItem(Item a, Item b)
+{
+  return (a.getStringValue() < b.getStringValue());
+}
+
+bool XQueryImpl::getExternalVariables(std::vector<Item>& aVars) const
+{
+  try
+  {
+    std::map<short, static_context_t>::const_iterator lIte = theCompilerCB->theSctxMap.begin();
+    std::map<short, static_context_t>::const_iterator lEnd = theCompilerCB->theSctxMap.end();
+
+    for(; lIte != lEnd; ++lIte)
+    {
+      std::vector<var_expr_t> lVars;
+      lIte->second.getp()->getVariables(lVars, false, false, true);
+
+      std::vector<var_expr_t>::const_iterator lVarIte = lVars.begin();
+      std::vector<var_expr_t>::const_iterator lVarEnd = lVars.end();
+      
+      for(; lVarIte != lVarEnd; ++lVarIte)
+      { 
+        aVars.push_back(lVarIte->getp()->get_name());
+      }
+      std::sort(aVars.begin(), aVars.end(),compareStringValueItem);
+      
+      std::vector<Item>::iterator aVarIte = aVars.begin();
+      std::vector<Item>::iterator aVarEnd = aVars.end();
+      
+      while((aVarIte+1) != aVarEnd)
+      {
+        if(aVarIte->getStringValue() == (aVarIte+1)->getStringValue())
+        {
+          aVars.erase(aVarIte+1);
+          aVarEnd = aVars.end();
+        }
+        else
+          aVarIte++;
+      }
+
+    }
+    
+    
+  }
+  QUERY_CATCH
+  return true;
+}
+
+
 
 /*******************************************************************************
   Give to the caller read-only access to the static context of the query
@@ -771,6 +824,24 @@
 
 
 /*******************************************************************************
+ Return true, if the root expr of the query is a sequential expr.
+********************************************************************************/
+bool XQueryImpl::isSequential() const
+{
+  SYNC_CODE(AutoMutex lock(&theMutex);)
+
+  try
+  {
+    checkNotClosed();
+    checkCompiled();
+
+    return theCompilerCB->isSequential();
+  }
+  QUERY_CATCH
+  return false;
+}
+
+/*******************************************************************************
   Serialize the execution plan inot the given output stream.
 ********************************************************************************/
 bool XQueryImpl::saveExecutionPlan(

=== modified file 'src/api/xqueryimpl.h'
--- src/api/xqueryimpl.h	2011-09-14 11:08:52 +0000
+++ src/api/xqueryimpl.h	2011-11-03 16:28:29 +0000
@@ -285,6 +285,8 @@
   const StaticContext* getStaticContext() const;
 
   bool isUpdating() const;
+  
+  bool isSequential() const;
 
   bool saveExecutionPlan(
         std::ostream& os,
@@ -347,6 +349,9 @@
   StaticCollectionManager*
   getStaticCollectionManager() const;
 
+  bool
+  getExternalVariables(std::vector<Item>& aVars) const;
+
 protected:
 
   void doCompile(

=== modified file 'src/compiler/api/compilercb.cpp'
--- src/compiler/api/compilercb.cpp	2011-06-14 17:26:33 +0000
+++ src/compiler/api/compilercb.cpp	2011-11-03 16:28:29 +0000
@@ -114,6 +114,7 @@
   theIsEval(false),
   theIsLoadProlog(false),
   theIsUpdating(false),
+  theIsSequential(false),
   theTimeout(timeout),
   theTempIndexCounter(0)
 {

=== modified file 'src/compiler/api/compilercb.h'
--- src/compiler/api/compilercb.h	2011-06-14 17:26:33 +0000
+++ src/compiler/api/compilercb.h	2011-11-03 16:28:29 +0000
@@ -155,6 +155,8 @@
 
   bool                      theIsUpdating;
 
+  bool                      theIsSequential;
+
   long                      theTimeout;
 
   ulong                     theTempIndexCounter;
@@ -181,6 +183,10 @@
 
   bool isUpdating() const { return theIsUpdating; }
 
+  void setIsSequential(bool aIsSequential) {theIsSequential = aIsSequential;}
+
+  bool isSequential() const { return theIsSequential;}
+
   static_context* getStaticContext(short id);
 };
 

=== modified file 'src/compiler/codegen/plan_visitor.cpp'
--- src/compiler/codegen/plan_visitor.cpp	2011-09-16 19:36:18 +0000
+++ src/compiler/codegen/plan_visitor.cpp	2011-11-03 16:28:29 +0000
@@ -199,7 +199,10 @@
 
 
 /*******************************************************************************
-
+  A FlworClauseVarMap is created for each flwor clause that defines variables.
+  If M is such a clause, then for each variable Vi defined by M, theVarExprs[i]
+  and theVarRebinds[i] contain an entry for Vi. theVarExprs[i] contains the
+  var_expr representing the Vi definition. 
 ********************************************************************************/
 class FlworClauseVarMap : public SimpleRCObject
 {
@@ -207,7 +210,7 @@
   bool                          theIsGeneral;
   const flwor_clause          * theClause;
 
-  std::vector<const var_expr*>  theVarExprs;
+  std::vector<var_expr*>        theVarExprs;
   std::vector<VarRebind_t>      theVarRebinds;
 
 public:
@@ -222,8 +225,8 @@
 
   long find_var(const var_expr* var) const
   {
-    ulong numVars = (ulong)theVarExprs.size();
-    for (ulong i = 0; i < numVars; ++i)
+    csize numVars = theVarExprs.size();
+    for (csize i = 0; i < numVars; ++i)
     {
       if (theVarExprs[i] == var)
         return i;
@@ -759,7 +762,7 @@
         {
           varRebind = new VarRebind;
 
-          clauseVarMap->theVarExprs.push_back(&var);
+          clauseVarMap->theVarExprs.push_back(const_cast<var_expr*>(&var));
           clauseVarMap->theVarRebinds.push_back(varRebind);
 
           varRebind->theInputVar = varIter;
@@ -1189,14 +1192,14 @@
     const group_clause::rebind_list_t& grouping_vars = gbc->get_grouping_vars();
     const group_clause::rebind_list_t& nongrouping_vars = gbc->get_nongrouping_vars();
 
-    for (unsigned i = 0; i < grouping_vars.size(); i++)
+    for (unsigned i = 0; i < grouping_vars.size(); ++i)
     {
       VarRebind_t varRebind = new VarRebind;
       clauseVarMap->theVarExprs.push_back(grouping_vars[i].second.getp());
       clauseVarMap->theVarRebinds.push_back(varRebind);
     }
 
-    for (unsigned i = 0; i < nongrouping_vars.size(); i++)
+    for (unsigned i = 0; i < nongrouping_vars.size(); ++i)
     {
       VarRebind_t varRebind = new VarRebind;
       clauseVarMap->theVarExprs.push_back(nongrouping_vars[i].second.getp());
@@ -1363,22 +1366,17 @@
 
   xqtref_t colType = colExpr->get_return_type();
 
-  if (TypeOps::is_subtype(tm, *colType, *rtm.STRING_TYPE_STAR, loc) ||
-      TypeOps::is_subtype(tm, *colType, *rtm.DOUBLE_TYPE_STAR, loc) ||
-      TypeOps::is_subtype(tm, *colType, *rtm.FLOAT_TYPE_STAR, loc) ||
-      TypeOps::is_subtype(tm, *colType, *rtm.LONG_TYPE_STAR, loc) ||
-      TypeOps::is_subtype(tm, *colType, *rtm.UNSIGNED_LONG_TYPE_STAR, loc) ||
-      TypeOps::is_equal(tm,
-                        *TypeOps::prime_type(tm, *colType),
-                        *rtm.DECIMAL_TYPE_ONE,
-                        loc) ||
-      TypeOps::is_equal(tm,
-                        *TypeOps::prime_type(tm, *colType),
-                        *rtm.INTEGER_TYPE_ONE,
-                        loc) ||
-      TypeOps::is_subtype(tm, *colType, *rtm.DATE_TYPE_STAR, loc) ||
-      TypeOps::is_subtype(tm, *colType, *rtm.TIME_TYPE_STAR, loc) ||
-      TypeOps::is_subtype(tm, *colType, *rtm.DATETIME_TYPE_STAR, loc))
+  if (colType->type_kind() == XQType::NODE_TYPE_KIND)
+  {
+    colType = static_cast<const NodeXQType*>(colType.getp())->get_content_type();
+  }
+
+  if (colType != NULL &&
+      TypeOps::is_subtype(tm, *colType, *rtm.ANY_ATOMIC_TYPE_STAR, loc) &&
+      !TypeOps::is_equal(tm, 
+                         *TypeOps::prime_type(tm, *colType),
+                         *rtm.ANY_ATOMIC_TYPE_ONE,
+                         loc))
   {
     return true;
   }
@@ -1669,7 +1667,7 @@
     if (c.get_kind() != flwor_clause::where_clause)
     {
       ZORBA_ASSERT(!theClauseStack.empty());
-      ulong stackSize = (ulong)theClauseStack.size();
+      csize stackSize = theClauseStack.size();
 
       clauseVarMap = theClauseStack[stackSize-1];
       theClauseStack.resize(stackSize - 1);
@@ -1878,9 +1876,12 @@
     std::vector<flwor::NonGroupingSpec>& ngspecs)
 {
   const group_clause* gbc = static_cast<const group_clause*>(clauseVarMap->theClause);
+
   const group_clause::rebind_list_t& gvars = gbc->get_grouping_vars();
   const group_clause::rebind_list_t& ngvars = gbc->get_nongrouping_vars();
+
   const std::vector<std::string>& collations = gbc->get_collations();
+
   long numVars = (long)(gvars.size() + ngvars.size());
   long numGroupVars = (long)gvars.size();
   long i = numVars - 1;
@@ -1900,7 +1901,12 @@
 
     const std::vector<PlanIter_t>& varRefs = varRebind->theOutputVarRefs;
 
-    gspecs.push_back(flwor::GroupingSpec(pop_itstack(), varRefs, collations[i]));
+    bool fastComparison = nativeColumnSort(clauseVarMap->theVarExprs[i]);
+
+    gspecs.push_back(flwor::GroupingSpec(pop_itstack(),
+                                         varRefs,
+                                         collations[i],
+                                         fastComparison));
   }
 }
 

=== modified file 'src/compiler/expression/flwor_expr.cpp'
--- src/compiler/expression/flwor_expr.cpp	2011-08-15 14:17:09 +0000
+++ src/compiler/expression/flwor_expr.cpp	2011-11-03 16:28:29 +0000
@@ -616,26 +616,26 @@
   theNonGroupVars(ngvars),
   theCollations(collations)
 {
-  ulong numGVars = (ulong)theGroupVars.size();
-  ulong numNGVars = (ulong)theNonGroupVars.size();
+  csize numGVars = theGroupVars.size();
+  csize numNGVars = theNonGroupVars.size();
 
-  for (ulong i = 0; i < numGVars; ++i)
+  for (csize i = 0; i < numGVars; ++i)
     theGroupVars[i].second->set_flwor_clause(this);
 
-  for (ulong i = 0; i < numNGVars; ++i)
+  for (csize i = 0; i < numNGVars; ++i)
     theNonGroupVars[i].second->set_flwor_clause(this);
 }
 
 
 group_clause::~group_clause()
 {
-  ulong numGVars = (ulong)theGroupVars.size();
-  ulong numNGVars = (ulong)theNonGroupVars.size();
+  csize numGVars = theGroupVars.size();
+  csize numNGVars = theNonGroupVars.size();
 
-  for (ulong i = 0; i < numGVars; ++i)
+  for (csize i = 0; i < numGVars; ++i)
     theGroupVars[i].second->set_flwor_clause(NULL);
 
-  for (ulong i = 0; i < numNGVars; ++i)
+  for (csize i = 0; i < numNGVars; ++i)
     theNonGroupVars[i].second->set_flwor_clause(NULL);
 }
 
@@ -651,8 +651,8 @@
 
 expr* group_clause::get_input_for_group_var(const var_expr* var)
 {
-  ulong numVars = (ulong)theGroupVars.size();
-  for (ulong i = 0; i < numVars; ++i)
+  csize numVars = theGroupVars.size();
+  for (csize i = 0; i < numVars; ++i)
   {
     if (theGroupVars[i].second.getp() == var)
       return theGroupVars[i].first.getp();
@@ -664,8 +664,8 @@
 
 expr* group_clause::get_input_for_nongroup_var(const var_expr* var)
 {
-  ulong numVars = (ulong)theNonGroupVars.size();
-  for (ulong i = 0; i < numVars; ++i)
+  csize numVars = theNonGroupVars.size();
+  for (csize i = 0; i < numVars; ++i)
   {
     if (theNonGroupVars[i].second.getp() == var)
       return theNonGroupVars[i].first.getp();
@@ -677,20 +677,20 @@
 
 flwor_clause_t group_clause::clone(expr::substitution_t& subst) const
 {
-  ulong numGroupVars = (ulong)theGroupVars.size();
-  ulong numNonGroupVars = (ulong)theNonGroupVars.size();
+  csize numGroupVars = theGroupVars.size();
+  csize numNonGroupVars = theNonGroupVars.size();
 
   rebind_list_t cloneGroupVars(numGroupVars);
   rebind_list_t cloneNonGroupVars(numNonGroupVars);
 
-  for (ulong i = 0; i < numGroupVars; ++i)
+  for (csize i = 0; i < numGroupVars; ++i)
   {
     cloneGroupVars[i].first = theGroupVars[i].first->clone(subst);
     cloneGroupVars[i].second = new var_expr(*theGroupVars[i].second);
     subst[theGroupVars[i].second.getp()] = cloneGroupVars[i].second.getp();
   }
 
-  for (ulong i = 0; i < numNonGroupVars; ++i)
+  for (csize i = 0; i < numNonGroupVars; ++i)
   {
     cloneNonGroupVars[i].first = theNonGroupVars[i].first->clone(subst);
     cloneNonGroupVars[i].second = new var_expr(*theNonGroupVars[i].second);

=== modified file 'src/compiler/translator/translator.cpp'
--- src/compiler/translator/translator.cpp	2011-10-18 21:29:50 +0000
+++ src/compiler/translator/translator.cpp	2011-11-03 16:28:29 +0000
@@ -1305,11 +1305,25 @@
     if (qname != NULL)
     {
       RAISE_ERROR(zerr::ZDDY0025_INDEX_WRONG_NUMBER_OF_PROBE_ARGS, loc,
-      ERROR_PARAMS(qname->getStringValue()));
+      ERROR_PARAMS(
+        qname->getStringValue(),
+        "index",
+        n-1,
+        "multiple of 6"
+      )
+      );
     }
     else
     {
-      RAISE_ERROR_NO_PARAMS(zerr::ZDDY0025_INDEX_WRONG_NUMBER_OF_PROBE_ARGS, loc);
+      RAISE_ERROR(
+          zerr::ZDDY0025_INDEX_WRONG_NUMBER_OF_PROBE_ARGS, loc,
+          ERROR_PARAMS(
+            "anonymous",
+            "index",
+            n-1,
+            "multiple of 6"
+          )
+      );
     }
   }
 
@@ -5191,6 +5205,11 @@
     theModulesInfo->theCCB->setIsUpdating(true);
   }
 
+  if(program->is_sequential())
+  {
+    theModulesInfo->theCCB->setIsSequential(true);
+  }
+
   if (program->is_updating() && !theCCB->theIsEval)
   {
     program = new apply_expr(theRootSctx,

=== modified file 'src/context/dynamic_context.h'
--- src/context/dynamic_context.h	2011-10-18 21:29:50 +0000
+++ src/context/dynamic_context.h	2011-11-03 16:28:29 +0000
@@ -163,6 +163,7 @@
       const store::Item_t& varname,
       const QueryLoc& loc);
 
+
   void get_variable(
         ulong varid,
         const store::Item_t& varname,

=== modified file 'src/context/static_context.cpp'
--- src/context/static_context.cpp	2011-10-18 19:06:06 +0000
+++ src/context/static_context.cpp	2011-11-03 16:28:29 +0000
@@ -2026,7 +2026,8 @@
 void static_context::getVariables(
   std::vector<var_expr_t>& vars,
   bool aLocalsOnly,
-  bool returnPrivateVars) const
+  bool returnPrivateVars,
+  bool externalVarsOnly) const
 {
   const static_context* sctx = this;
 
@@ -2048,7 +2049,15 @@
         }
 
         if (i == numVars)
-          vars.push_back((*ite).second);
+        {
+          if(externalVarsOnly)
+          {
+            if((*ite).second->is_external())          
+              vars.push_back((*ite).second);
+          }
+          else
+            vars.push_back((*ite).second);
+        }
       }
     }
     
@@ -2068,7 +2077,15 @@
         }
 
         if (i == numVars)
-          vars.push_back((*ite).second);
+        {
+          if(externalVarsOnly)
+          {
+            if((*ite).second->is_external())          
+              vars.push_back((*ite).second);
+          }
+          else
+            vars.push_back((*ite).second);
+        }
       }
     }
 

=== modified file 'src/context/static_context.h'
--- src/context/static_context.h	2011-10-18 19:06:06 +0000
+++ src/context/static_context.h	2011-11-03 16:28:29 +0000
@@ -796,7 +796,8 @@
   void getVariables(
     std::vector<var_expr_t>& variableList,
     bool localsOnly = false,
-    bool returnPrivateVars = false) const;
+    bool returnPrivateVars = false,
+    bool externalVarsOnly = false) const;
 
   void set_context_item_type(xqtref_t& t);
 

=== modified file 'src/diagnostics/diagnostic_en.xml'
--- src/diagnostics/diagnostic_en.xml	2011-10-17 21:17:05 +0000
+++ src/diagnostics/diagnostic_en.xml	2011-11-03 16:28:29 +0000
@@ -1966,7 +1966,7 @@
     </diagnostic>
 
     <diagnostic code="ZDDY0025" name="INDEX_WRONG_NUMBER_OF_PROBE_ARGS">
-      <value>${"1": }invalid number of arguments in probe</value>
+      <value>"$1": invalid number of arguments to $2 operation; given $3 expected $4</value>
     </diagnostic>
 
     <diagnostic code="ZDDY0026" name="INDEX_RANGE_PROBE_NOT_ALLOWED">

=== modified file 'src/diagnostics/pregenerated/diagnostic_list.cpp'
--- src/diagnostics/pregenerated/diagnostic_list.cpp	2011-10-19 15:28:51 +0000
+++ src/diagnostics/pregenerated/diagnostic_list.cpp	2011-11-03 16:28:29 +0000
@@ -1,1114 +1,1114 @@
-/**
- * Copyright 2006-2011 The FLWOR Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- 
- /*
-  * THIS FILE IS GENERATED.
-  * PLEASE DO NOT EDIT.
-  */
- 
-
-#include "stdafx.h"
-#include <zorba/diagnostic_list.h>
-
-namespace zorba {
-
-
-namespace err {
-
-XQueryErrorCode XPST0001( "XPST0001" );
-
-
-XQueryErrorCode XPDY0002( "XPDY0002" );
-
-
-XQueryErrorCode XPST0003( "XPST0003" );
-
-
-XQueryErrorCode XPTY0004( "XPTY0004" );
-
-
-XQueryErrorCode XPST0005( "XPST0005" );
-
-
-XQueryErrorCode XPST0008( "XPST0008" );
-
-
-XQueryErrorCode XQST0009( "XQST0009" );
-
-
-XQueryErrorCode XQST0012( "XQST0012" );
-
-
-XQueryErrorCode XQST0013( "XQST0013" );
-
-
-XQueryErrorCode XPST0017( "XPST0017" );
-
-
-XQueryErrorCode XPTY0018( "XPTY0018" );
-
-
-XQueryErrorCode XPTY0019( "XPTY0019" );
-
-
-XQueryErrorCode XPTY0020( "XPTY0020" );
-
-
-XQueryErrorCode XQST0022( "XQST0022" );
-
-
-XQueryErrorCode XQTY0024( "XQTY0024" );
-
-
-XQueryErrorCode XQDY0025( "XQDY0025" );
-
-
-XQueryErrorCode XQDY0026( "XQDY0026" );
-
-
-XQueryErrorCode XQDY0027( "XQDY0027" );
-
-
-XQueryErrorCode XQTY0030( "XQTY0030" );
-
-
-XQueryErrorCode XQST0031( "XQST0031" );
-
-
-XQueryErrorCode XQST0032( "XQST0032" );
-
-
-XQueryErrorCode XQST0033( "XQST0033" );
-
-
-XQueryErrorCode XQST0034( "XQST0034" );
-
-
-XQueryErrorCode XQST0035( "XQST0035" );
-
-
-XQueryErrorCode XQST0036( "XQST0036" );
-
-
-XQueryErrorCode XQST0038( "XQST0038" );
-
-
-XQueryErrorCode XQST0039( "XQST0039" );
-
-
-XQueryErrorCode XQST0040( "XQST0040" );
-
-
-XQueryErrorCode XQDY0041( "XQDY0041" );
-
-
-XQueryErrorCode XQDY0044( "XQDY0044" );
-
-
-XQueryErrorCode XQST0045( "XQST0045" );
-
-
-XQueryErrorCode XQST0046( "XQST0046" );
-
-
-XQueryErrorCode XQST0047( "XQST0047" );
-
-
-XQueryErrorCode XQST0048( "XQST0048" );
-
-
-XQueryErrorCode XQST0049( "XQST0049" );
-
-
-XQueryErrorCode XPDY0050( "XPDY0050" );
-
-
-XQueryErrorCode XPST0051( "XPST0051" );
-
-
-XQueryErrorCode XQST0054( "XQST0054" );
-
-
-XQueryErrorCode XQST0055( "XQST0055" );
-
-
-XQueryErrorCode XQST0057( "XQST0057" );
-
-
-XQueryErrorCode XQST0058( "XQST0058" );
-
-
-XQueryErrorCode XQST0059( "XQST0059" );
-
-
-XQueryErrorCode XQST0060( "XQST0060" );
-
-
-XQueryErrorCode XQDY0061( "XQDY0061" );
-
-
-XQueryErrorCode XQDY0064( "XQDY0064" );
-
-
-XQueryErrorCode XQST0065( "XQST0065" );
-
-
-XQueryErrorCode XQST0066( "XQST0066" );
-
-
-XQueryErrorCode XQST0067( "XQST0067" );
-
-
-XQueryErrorCode XQST0068( "XQST0068" );
-
-
-XQueryErrorCode XQST0069( "XQST0069" );
-
-
-XQueryErrorCode XQST0070( "XQST0070" );
-
-
-XQueryErrorCode XQST0071( "XQST0071" );
-
-
-XQueryErrorCode XQDY0072( "XQDY0072" );
-
-
-XQueryErrorCode XQDY0074( "XQDY0074" );
-
-
-XQueryErrorCode XQST0076( "XQST0076" );
-
-
-XQueryErrorCode XQST0079( "XQST0079" );
-
-
-XQueryErrorCode XPST0080( "XPST0080" );
-
-
-XQueryErrorCode XPST0081( "XPST0081" );
-
-
-XQueryErrorCode XPST0083( "XPST0083" );
-
-
-XQueryErrorCode XQDY0084( "XQDY0084" );
-
-
-XQueryErrorCode XQST0085( "XQST0085" );
-
-
-XQueryErrorCode XQTY0086( "XQTY0086" );
-
-
-XQueryErrorCode XQST0087( "XQST0087" );
-
-
-XQueryErrorCode XQST0088( "XQST0088" );
-
-
-XQueryErrorCode XQST0089( "XQST0089" );
-
-
-XQueryErrorCode XQST0090( "XQST0090" );
-
-
-XQueryErrorCode XQDY0091( "XQDY0091" );
-
-
-XQueryErrorCode XQDY0092( "XQDY0092" );
-
-
-XQueryErrorCode XQST0093( "XQST0093" );
-
-
-XQueryErrorCode XQDY0096( "XQDY0096" );
-
-
-XQueryErrorCode XQST0098( "XQST0098" );
-
-
-XQueryErrorCode XQST0106( "XQST0106" );
-
-
-XQueryErrorCode XQST0111( "XQST0111" );
-
-
-XQueryErrorCode XTDE1310( "XTDE1310" );
-
-
-XQueryErrorCode XTDE1340( "XTDE1340" );
-
-
-XQueryErrorCode XTDE1350( "XTDE1350" );
-
-
-#if !defined(ZORBA_NO_FULL_TEXT)
-XQueryErrorCode FTST0008( "FTST0008" );
-
-
-XQueryErrorCode FTST0009( "FTST0009" );
-
-
-XQueryErrorCode FTDY0016( "FTDY0016" );
-
-
-XQueryErrorCode FTDY0017( "FTDY0017" );
-
-
-XQueryErrorCode FTST0018( "FTST0018" );
-
-
-XQueryErrorCode FTST0019( "FTST0019" );
-
-
-XQueryErrorCode FTDY0020( "FTDY0020" );
-#endif
-
-
-XQueryErrorCode FOER0000( "FOER0000" );
-
-
-XQueryErrorCode FOAR0001( "FOAR0001" );
-
-
-XQueryErrorCode FOAR0002( "FOAR0002" );
-
-
-XQueryErrorCode FOCA0001( "FOCA0001" );
-
-
-XQueryErrorCode FOCA0002( "FOCA0002" );
-
-
-XQueryErrorCode FOCA0003( "FOCA0003" );
-
-
-XQueryErrorCode FOCA0005( "FOCA0005" );
-
-
-XQueryErrorCode FOCA0006( "FOCA0006" );
-
-
-XQueryErrorCode FOCH0001( "FOCH0001" );
-
-
-XQueryErrorCode FOCH0002( "FOCH0002" );
-
-
-XQueryErrorCode FOCH0003( "FOCH0003" );
-
-
-XQueryErrorCode FOCH0004( "FOCH0004" );
-
-
-XQueryErrorCode FODC0001( "FODC0001" );
-
-
-XQueryErrorCode FODC0002( "FODC0002" );
-
-
-XQueryErrorCode FODC0003( "FODC0003" );
-
-
-XQueryErrorCode FODC0004( "FODC0004" );
-
-
-XQueryErrorCode FODC0005( "FODC0005" );
-
-
-XQueryErrorCode FODC0006( "FODC0006" );
-
-
-XQueryErrorCode FODC0007( "FODC0007" );
-
-
-XQueryErrorCode FODF1280( "FODF1280" );
-
-
-XQueryErrorCode FODF1310( "FODF1310" );
-
-
-XQueryErrorCode FODT0001( "FODT0001" );
-
-
-XQueryErrorCode FODT0002( "FODT0002" );
-
-
-XQueryErrorCode FODT0003( "FODT0003" );
-
-
-XQueryErrorCode FOFI0001( "FOFI0001" );
-
-
-XQueryErrorCode FOFI0002( "FOFI0002" );
-
-
-XQueryErrorCode FONS0004( "FONS0004" );
-
-
-XQueryErrorCode FONS0005( "FONS0005" );
-
-
-XQueryErrorCode FORG0001( "FORG0001" );
-
-
-XQueryErrorCode FORG0002( "FORG0002" );
-
-
-XQueryErrorCode FORG0003( "FORG0003" );
-
-
-XQueryErrorCode FORG0004( "FORG0004" );
-
-
-XQueryErrorCode FORG0005( "FORG0005" );
-
-
-XQueryErrorCode FORG0006( "FORG0006" );
-
-
-XQueryErrorCode FORG0008( "FORG0008" );
-
-
-XQueryErrorCode FORG0009( "FORG0009" );
-
-
-XQueryErrorCode FORX0001( "FORX0001" );
-
-
-XQueryErrorCode FORX0002( "FORX0002" );
-
-
-XQueryErrorCode FORX0003( "FORX0003" );
-
-
-XQueryErrorCode FORX0004( "FORX0004" );
-
-
-XQueryErrorCode FOTY0012( "FOTY0012" );
-
-
-XQueryErrorCode FOTY0013( "FOTY0013" );
-
-
-XQueryErrorCode FOTY0014( "FOTY0014" );
-
-
-XQueryErrorCode FOTY0015( "FOTY0015" );
-
-
-XQueryErrorCode XUST0001( "XUST0001" );
-
-
-XQueryErrorCode XUST0002( "XUST0002" );
-
-
-XQueryErrorCode XUST0003( "XUST0003" );
-
-
-XQueryErrorCode XUTY0004( "XUTY0004" );
-
-
-XQueryErrorCode XUTY0005( "XUTY0005" );
-
-
-XQueryErrorCode XUTY0006( "XUTY0006" );
-
-
-XQueryErrorCode XUTY0007( "XUTY0007" );
-
-
-XQueryErrorCode XUTY0008( "XUTY0008" );
-
-
-XQueryErrorCode XUDY0009( "XUDY0009" );
-
-
-XQueryErrorCode XUTY0010( "XUTY0010" );
-
-
-XQueryErrorCode XUTY0011( "XUTY0011" );
-
-
-XQueryErrorCode XUTY0012( "XUTY0012" );
-
-
-XQueryErrorCode XUTY0013( "XUTY0013" );
-
-
-XQueryErrorCode XUDY0014( "XUDY0014" );
-
-
-XQueryErrorCode XUDY0015( "XUDY0015" );
-
-
-XQueryErrorCode XUDY0016( "XUDY0016" );
-
-
-XQueryErrorCode XUDY0017( "XUDY0017" );
-
-
-XQueryErrorCode XUDY0018( "XUDY0018" );
-
-
-XQueryErrorCode XUDY0019( "XUDY0019" );
-
-
-XQueryErrorCode XUDY0021( "XUDY0021" );
-
-
-XQueryErrorCode XUTY0022( "XUTY0022" );
-
-
-XQueryErrorCode XUDY0023( "XUDY0023" );
-
-
-XQueryErrorCode XUDY0024( "XUDY0024" );
-
-
-XQueryErrorCode XUDY0027( "XUDY0027" );
-
-
-XQueryErrorCode XUST0028( "XUST0028" );
-
-
-XQueryErrorCode XUDY0029( "XUDY0029" );
-
-
-XQueryErrorCode XUDY0030( "XUDY0030" );
-
-
-XQueryErrorCode XUDY0031( "XUDY0031" );
-
-
-XQueryErrorCode FOUP0001( "FOUP0001" );
-
-
-XQueryErrorCode FOUP0002( "FOUP0002" );
-
-
-XQueryErrorCode SENR0001( "SENR0001" );
-
-
-XQueryErrorCode SERE0003( "SERE0003" );
-
-
-XQueryErrorCode SEPM0004( "SEPM0004" );
-
-
-XQueryErrorCode SERE0005( "SERE0005" );
-
-
-XQueryErrorCode SERE0006( "SERE0006" );
-
-
-XQueryErrorCode SESU0007( "SESU0007" );
-
-
-XQueryErrorCode SERE0008( "SERE0008" );
-
-
-XQueryErrorCode SEPM0009( "SEPM0009" );
-
-
-XQueryErrorCode SEPM0010( "SEPM0010" );
-
-
-XQueryErrorCode SESU0011( "SESU0011" );
-
-
-XQueryErrorCode SERE0012( "SERE0012" );
-
-
-XQueryErrorCode SESU0013( "SESU0013" );
-
-
-XQueryErrorCode SERE0014( "SERE0014" );
-
-
-XQueryErrorCode SERE0015( "SERE0015" );
-
-
-XQueryErrorCode SEPM0016( "SEPM0016" );
-
-
-} // namespace err
-
-namespace zerr {
-
-ZorbaErrorCode ZXQP0000_NO_ERROR( "ZXQP0000" );
-
-
-ZorbaErrorCode ZXQP0001_DYNAMIC_RUNTIME_ERROR( "ZXQP0001" );
-
-
-ZorbaErrorCode ZXQP0002_ASSERT_FAILED( "ZXQP0002" );
-
-
-ZorbaErrorCode ZXQP0003_INTERNAL_ERROR( "ZXQP0003" );
-
-
-ZorbaErrorCode ZXQP0004_NOT_IMPLEMENTED( "ZXQP0004" );
-
-
-ZorbaErrorCode ZXQP0005_NOT_ENABLED( "ZXQP0005" );
-
-
-ZorbaErrorCode ZXQP0007_FUNCTION_SIGNATURE_NOT_EQUAL( "ZXQP0007" );
-
-
-ZorbaErrorCode ZXQP0008_FUNCTION_IMPL_NOT_FOUND( "ZXQP0008" );
-
-
-ZorbaErrorCode ZXQP0009_FUNCTION_LOCALNAME_MISMATCH( "ZXQP0009" );
-
-
-ZorbaErrorCode ZXQP0010_FUNCTION_NOT_SEQUENTIAL( "ZXQP0010" );
-
-
-ZorbaErrorCode ZXQP0013_FXCHARHEAP_EXCEPTION( "ZXQP0013" );
-
-
-ZorbaErrorCode ZXQP0016_RESERVED_MODULE_TARGET_NAMESPACE( "ZXQP0016" );
-
-
-ZorbaErrorCode ZXQP0017_FILE_ACCESS_DISABLED( "ZXQP0017" );
-
-
-ZorbaErrorCode ZXQP0020_INVALID_URI( "ZXQP0020" );
-
-
-ZorbaErrorCode ZXQP0021_USER_ERROR( "ZXQP0021" );
-
-
-ZorbaErrorCode ZXQP0024_XML_DOES_NOT_MATCH_SCHEMA( "ZXQP0024" );
-
-
-ZorbaErrorCode ZXQP0025_ITEM_CREATION_FAILED( "ZXQP0025" );
-
-
-ZorbaErrorCode ZXQP0026_INVALID_ENUM_VALUE( "ZXQP0026" );
-
-
-ZorbaErrorCode ZXQP0028_TARGET_NAMESPACE_NOT_PROVIDED( "ZXQP0028" );
-
-
-ZorbaErrorCode ZXQP0029_URI_ACCESS_DENIED( "ZXQP0029" );
-
-
-ZorbaErrorCode ZXQP0030_DEADLOCK( "ZXQP0030" );
-
-
-ZorbaErrorCode ZXQP0031_MALFORMED_XQUERYX_INPUT( "ZXQP0031" );
-
-
-ZorbaErrorCode ZXQP0032_ERROR_TRANSFORMING_XQUERYX_TO_XQUERY( "ZXQP0032" );
-
-
-ZorbaErrorCode ZXQP0036_BREAKITERATOR_CREATION_FAILED( "ZXQP0036" );
-
-
-ZorbaErrorCode ZXQP0037_INAPPROPRIATE_MODULE_VERSION( "ZXQP0037" );
-
-
-ZorbaErrorCode ZXQP0038_INAPPROPRIATE_ZORBA_VERSION( "ZXQP0038" );
-
-
-ZorbaErrorCode ZXQP0039_INVALID_VERSION_SPECIFICATION( "ZXQP0039" );
-
-
-ZorbaErrorCode ZXQP0040_MISSING_NONDETERMINISTIC_ANNOTATION( "ZXQP0040" );
-
-
-ZorbaErrorCode ZXQP0050_FEATURE_NOT_AVAILABLE( "ZXQP0050" );
-
-
-ZorbaErrorCode ZXQP0060_OPTION_NOT_KNOWN( "ZXQP0060" );
-
-
-#if !defined(ZORBA_NO_FULL_TEXT)
-ZorbaErrorCode ZXQP8401_THESAURUS_VERSION_MISMATCH( "ZXQP8401" );
-
-
-ZorbaErrorCode ZXQP8402_THESAURUS_ENDIANNESS_MISMATCH( "ZXQP8402" );
-
-
-ZorbaErrorCode ZXQP8403_THESAURUS_DATA_ERROR( "ZXQP8403" );
-#endif
-
-
-ZorbaErrorCode ZXQD0001_PREFIX_NOT_DECLARED( "ZXQD0001" );
-
-
-ZorbaErrorCode ZXQD0002_DOCUMENT_NOT_VALID( "ZXQD0002" );
-
-
-ZorbaErrorCode ZXQD0003_INCONSISTENT_PARSE_FRAGMENT_OPTIONS( "ZXQD0003" );
-
-
-ZorbaErrorCode ZXQD0004_INVALID_PARAMETER( "ZXQD0004" );
-
-
-ZorbaErrorCode ZXQD0005_INVALID_KEY_FOR_MAP( "ZXQD0005" );
-
-
-ZorbaErrorCode ZAPI0002_XQUERY_COMPILATION_FAILED( "ZAPI0002" );
-
-
-ZorbaErrorCode ZAPI0003_XQUERY_NOT_COMPILED( "ZAPI0003" );
-
-
-ZorbaErrorCode ZAPI0004_XQUERY_ALREADY_COMPILED( "ZAPI0004" );
-
-
-ZorbaErrorCode ZAPI0005_XQUERY_ALREADY_EXECUTING( "ZAPI0005" );
-
-
-ZorbaErrorCode ZAPI0006_XQUERY_ALREADY_CLOSED( "ZAPI0006" );
-
-
-ZorbaErrorCode ZAPI0007_CANNOT_SERIALIZE_PUL( "ZAPI0007" );
-
-
-ZorbaErrorCode ZAPI0008_NOT_AN_UPDATE_XQUERY( "ZAPI0008" );
-
-
-ZorbaErrorCode ZAPI0009_XQUERY_NOT_COMPILED_IN_DEBUG_MODE( "ZAPI0009" );
-
-
-ZorbaErrorCode ZAPI0014_INVALID_ARGUMENT( "ZAPI0014" );
-
-
-ZorbaErrorCode ZAPI0015_CREATEMODULE_NOT_FOUND( "ZAPI0015" );
-
-
-ZorbaErrorCode ZAPI0019_MODULE_ALREADY_REGISTERED( "ZAPI0019" );
-
-
-ZorbaErrorCode ZAPI0020_DOCUMENT_ALREADY_EXISTS( "ZAPI0020" );
-
-
-ZorbaErrorCode ZAPI0021_ITEM_TO_LOAD_IS_NOT_NODE( "ZAPI0021" );
-
-
-ZorbaErrorCode ZAPI0027_CANNOT_UPDATE_DCTX_WITH_ITERATORS( "ZAPI0027" );
-
-
-ZorbaErrorCode ZAPI0028_INVALID_NODE_URI( "ZAPI0028" );
-
-
-ZorbaErrorCode ZAPI0029_REFERENCE_ALREADY_PRESENT( "ZAPI0029" );
-
-
-ZorbaErrorCode ZAPI0030_NO_CURRENT_REFERENCE( "ZAPI0030" );
-
-
-ZorbaErrorCode ZAPI0039_XQUERY_HAS_ITERATOR_ALREADY( "ZAPI0039" );
-
-
-ZorbaErrorCode ZAPI0040_ITERATOR_NOT_OPEN( "ZAPI0040" );
-
-
-ZorbaErrorCode ZAPI0041_ITERATOR_ALREADY_OPEN( "ZAPI0041" );
-
-
-ZorbaErrorCode ZAPI0042_ITERATOR_CLOSED( "ZAPI0042" );
-
-
-ZorbaErrorCode ZAPI0070_INVALID_SERIALIZATION_METHOD_FOR_SAX( "ZAPI0070" );
-
-
-ZorbaErrorCode ZAPI0080_CANNOT_RETRIEVE_NODE_REFERENCE( "ZAPI0080" );
-
-
-ZorbaErrorCode ZCSE0001_NONEXISTENT_INPUT_FIELD( "ZCSE0001" );
-
-
-ZorbaErrorCode ZCSE0002_INCOMPATIBLE_INPUT_FIELD( "ZCSE0002" );
-
-
-ZorbaErrorCode ZCSE0003_UNRECOGNIZED_CLASS_FIELD( "ZCSE0003" );
-
-
-ZorbaErrorCode ZCSE0004_UNRESOLVED_FIELD_REFERENCE( "ZCSE0004" );
-
-
-ZorbaErrorCode ZCSE0005_CLASS_VERSION_TOO_NEW( "ZCSE0005" );
-
-
-ZorbaErrorCode ZCSE0006_CLASS_VERSION_TOO_OLD( "ZCSE0006" );
-
-
-ZorbaErrorCode ZCSE0007_INPUT_ARCHIVE_USED_FOR_OUT_SERIALIZATION( "ZCSE0007" );
-
-
-ZorbaErrorCode ZCSE0008_OUTPUT_ARCHIVE_USED_FOR_IN_SERIALIZATION( "ZCSE0008" );
-
-
-ZorbaErrorCode ZCSE0009_CLASS_NOT_SERIALIZABLE( "ZCSE0009" );
-
-
-ZorbaErrorCode ZCSE0010_ITEM_TYPE_NOT_SERIALIZABLE( "ZCSE0010" );
-
-
-ZorbaErrorCode ZCSE0011_INPUT_ARCHIVE_NOT_ZORBA_ARCHIVE( "ZCSE0011" );
-
-
-ZorbaErrorCode ZCSE0012_INCOMPATIBLE_ARCHIVE_VERSION( "ZCSE0012" );
-
-
-ZorbaErrorCode ZCSE0013_UNABLE_TO_LOAD_QUERY( "ZCSE0013" );
-
-
-ZorbaErrorCode ZCSE0014_INFINITE_CIRCULAR_DEPENDENCIES( "ZCSE0014" );
-
-
-ZorbaErrorCode ZCSE0015_INCOMPATIBLE_BETWEEN_32_AND_64_BITS_OR_LE_AND_BE( "ZCSE0015" );
-
-
-ZorbaErrorCode ZCSE0016_CANNOT_LOAD_FROM_RELEASE_TO_DEBUG( "ZCSE0016" );
-
-
-ZorbaErrorCode ZCSE0017_CANNOT_LOAD_FROM_DEBUG_TO_RELEASE( "ZCSE0017" );
-
-
-ZorbaErrorCode ZDDY0001_COLLECTION_NOT_DECLARED( "ZDDY0001" );
-
-
-ZorbaErrorCode ZDDY0002_COLLECTION_ALREADY_EXISTS( "ZDDY0002" );
-
-
-ZorbaErrorCode ZDDY0003_COLLECTION_DOES_NOT_EXIST( "ZDDY0003" );
-
-
-ZorbaErrorCode ZDDY0004_COLLECTION_CONST_UPDATE( "ZDDY0004" );
-
-
-ZorbaErrorCode ZDDY0005_COLLECTION_APPEND_BAD_INSERT( "ZDDY0005" );
-
-
-ZorbaErrorCode ZDDY0006_COLLECTION_QUEUE_BAD_INSERT( "ZDDY0006" );
-
-
-ZorbaErrorCode ZDDY0007_COLLECTION_APPEND_BAD_DELETE( "ZDDY0007" );
-
-
-ZorbaErrorCode ZDDY0008_COLLECTION_QUEUE_BAD_DELETE( "ZDDY0008" );
-
-
-ZorbaErrorCode ZDDY0009_COLLECTION_QUEUE_BAD_DELETE( "ZDDY0009" );
-
-
-ZorbaErrorCode ZDDY0010_COLLECTION_CONST_NODE_UPDATE( "ZDDY0010" );
-
-
-ZorbaErrorCode ZDDY0011_COLLECTION_NODE_NOT_FOUND( "ZDDY0011" );
-
-
-ZorbaErrorCode ZDDY0012_COLLECTION_UNORDERED_BAD_OPERATION( "ZDDY0012" );
-
-
-ZorbaErrorCode ZDDY0013_COLLECTION_BAD_DESTROY_INDEXES( "ZDDY0013" );
-
-
-ZorbaErrorCode ZDDY0014_COLLECTION_BAD_DESTROY_ICS( "ZDDY0014" );
-
-
-ZorbaErrorCode ZDDY0015_COLLECTION_BAD_DESTROY_NODES( "ZDDY0015" );
-
-
-ZorbaErrorCode ZDDY0016_COLLECTION_MULTIPLE_CREATES( "ZDDY0016" );
-
-
-ZorbaErrorCode ZDDY0017_NODE_IS_ORPHAN( "ZDDY0017" );
-
-
-ZorbaErrorCode ZDDY0018_NODES_NOT_IN_SAME_COLLECTION( "ZDDY0018" );
-
-
-ZorbaErrorCode ZDDY0020_INDEX_DOMAIN_NODE_NOT_IN_COLLECTION( "ZDDY0020" );
-
-
-ZorbaErrorCode ZDDY0021_INDEX_NOT_DECLARED( "ZDDY0021" );
-
-
-ZorbaErrorCode ZDDY0022_INDEX_ALREADY_EXISTS( "ZDDY0022" );
-
-
-ZorbaErrorCode ZDDY0023_INDEX_DOES_NOT_EXIST( "ZDDY0023" );
-
-
-ZorbaErrorCode ZDDY0024_INDEX_UNIQUE_VIOLATION( "ZDDY0024" );
-
-
-ZorbaErrorCode ZDDY0025_INDEX_WRONG_NUMBER_OF_PROBE_ARGS( "ZDDY0025" );
-
-
-ZorbaErrorCode ZDDY0026_INDEX_RANGE_PROBE_NOT_ALLOWED( "ZDDY0026" );
-
-
-ZorbaErrorCode ZDDY0027_INDEX_MULTIPLE_CREATES( "ZDDY0027" );
-
-
-ZorbaErrorCode ZDDY0028_INDEX_DOMAIN_HAS_DUPLICATE_NODES( "ZDDY0028" );
-
-
-ZorbaErrorCode ZDDY0029_INDEX_POINT_GENERAL_PROBE_NOT_ALLOWED( "ZDDY0029" );
-
-
-ZorbaErrorCode ZDDY0030_INDEX_RANGE_GENERAL_PROBE_NOT_ALLOWED( "ZDDY0030" );
-
-
-ZorbaErrorCode ZDDY0034_INDEX_RANGE_VALUE_PROBE_BAD_KEY_TYPES( "ZDDY0034" );
-
-
-ZorbaErrorCode ZDDY0031_IC_NOT_DECLARED( "ZDDY0031" );
-
-
-ZorbaErrorCode ZDDY0032_IC_NOT_ACTIVATED( "ZDDY0032" );
-
-
-ZorbaErrorCode ZDDY0033_IC_NOT_MET( "ZDDY0033" );
-
-
-ZorbaErrorCode ZDST0001_COLLECTION_ALREADY_DECLARED( "ZDST0001" );
-
-
-ZorbaErrorCode ZDST0002_COLLECTION_ALREADY_IMPORTED( "ZDST0002" );
-
-
-ZorbaErrorCode ZDST0003_COLLECTION_DECL_IN_MAIN_MODULE( "ZDST0003" );
-
-
-ZorbaErrorCode ZDST0004_COLLECTION_MULTIPLE_PROPERTY_VALUES( "ZDST0004" );
-
-
-ZorbaErrorCode ZDST0006_COLLECTION_INVALID_PROPERTY_VALUE( "ZDST0006" );
-
-
-ZorbaErrorCode ZDST0007_COLLECTION_DECL_IN_FOREIGN_MODULE( "ZDST0007" );
-
-
-ZorbaErrorCode ZDST0021_INDEX_ALREADY_DECLARED( "ZDST0021" );
-
-
-ZorbaErrorCode ZDST0022_INDEX_ALREADY_IMPORTED( "ZDST0022" );
-
-
-ZorbaErrorCode ZDST0023_INDEX_DECL_IN_MAIN_MODULE( "ZDST0023" );
-
-
-ZorbaErrorCode ZDST0024_INDEX_MULTIPLE_PROPERTY_VALUES( "ZDST0024" );
-
-
-ZorbaErrorCode ZDST0026_INDEX_INVALID_PROPERTY_VALUE( "ZDST0026" );
-
-
-ZorbaErrorCode ZDST0027_INDEX_BAD_KEY_TYPE( "ZDST0027" );
-
-
-ZorbaErrorCode ZDST0028_INDEX_NOT_DETERMINISTIC( "ZDST0028" );
-
-
-ZorbaErrorCode ZDST0029_INDEX_INVALID_DATA_SOURCE( "ZDST0029" );
-
-
-ZorbaErrorCode ZDST0030_INDEX_NON_CONST_DATA_SOURCE( "ZDST0030" );
-
-
-ZorbaErrorCode ZDST0031_INDEX_HAS_FREE_VARS( "ZDST0031" );
-
-
-ZorbaErrorCode ZDST0032_INDEX_REFERENCES_CTX_ITEM( "ZDST0032" );
-
-
-ZorbaErrorCode ZDST0033_INDEX_NON_SIMPLE_EXPR( "ZDST0033" );
-
-
-ZorbaErrorCode ZDST0034_INDEX_CANNOT_DO_AUTOMATIC_MAINTENANCE( "ZDST0034" );
-
-
-ZorbaErrorCode ZDST0035_INDEX_GENERAL_MULTIKEY( "ZDST0035" );
-
-
-ZorbaErrorCode ZDST0036_INDEX_DECL_IN_FOREIGN_MODULE( "ZDST0036" );
-
-
-ZorbaErrorCode ZDST0041_IC_ALREADY_DECLARED( "ZDST0041" );
-
-
-ZorbaErrorCode ZDST0044_IC_DECL_IN_MAIN_MODULE( "ZDST0044" );
-
-
-ZorbaErrorCode ZDST0048_IC_DECL_IN_FOREIGN_MODULE( "ZDST0048" );
-
-
-ZorbaErrorCode ZDST0060_FEATURE_NOT_SUPPORTED( "ZDST0060" );
-
-
-ZorbaErrorCode ZDTY0001_COLLECTION_INVALID_NODE_TYPE( "ZDTY0001" );
-
-
-ZorbaErrorCode ZDTY0010_INDEX_DOMAIN_TYPE_ERROR( "ZDTY0010" );
-
-
-ZorbaErrorCode ZDTY0011_INDEX_KEY_TYPE_ERROR( "ZDTY0011" );
-
-
-ZorbaErrorCode ZDTY0012_INDEX_KEY_TYPE_ERROR( "ZDTY0012" );
-
-
-#if defined(ZORBA_WITH_DEBUGGER)
-ZorbaErrorCode ZGDB0001_CANNOT_CONNECT_TO_CLIENT( "ZGDB0001" );
-#endif
-
-
-ZorbaErrorCode ZOSE0001_FILE_NOT_FOUND( "ZOSE0001" );
-
-
-ZorbaErrorCode ZOSE0002_NOT_PLAIN_FILE( "ZOSE0002" );
-
-
-ZorbaErrorCode ZOSE0003_STREAM_READ_FAILURE( "ZOSE0003" );
-
-
-ZorbaErrorCode ZOSE0004_IO_ERROR( "ZOSE0004" );
-
-
-ZorbaErrorCode ZOSE0005_DLL_LOAD_FAILED( "ZOSE0005" );
-
-
-ZorbaErrorCode ZSTR0001_INDEX_ALREADY_EXISTS( "ZSTR0001" );
-
-
-ZorbaErrorCode ZSTR0002_INDEX_DOES_NOT_EXIST( "ZSTR0002" );
-
-
-ZorbaErrorCode ZSTR0003_INDEX_PARTIAL_KEY_INSERT( "ZSTR0003" );
-
-
-ZorbaErrorCode ZSTR0004_INDEX_PARTIAL_KEY_REMOVE( "ZSTR0004" );
-
-
-ZorbaErrorCode ZSTR0005_INDEX_PARTIAL_KEY_PROBE( "ZSTR0005" );
-
-
-ZorbaErrorCode ZSTR0006_INDEX_INVALID_BOX_PROBE( "ZSTR0006" );
-
-
-ZorbaErrorCode ZSTR0007_INDEX_UNSUPPORTED_PROBE_CONDITION( "ZSTR0007" );
-
-
-ZorbaErrorCode ZSTR0008_COLLECTION_ALREADY_EXISTS( "ZSTR0008" );
-
-
-ZorbaErrorCode ZSTR0009_COLLECTION_NOT_FOUND( "ZSTR0009" );
-
-
-ZorbaErrorCode ZSTR0010_COLLECTION_NODE_ALREADY_IN_COLLECTION( "ZSTR0010" );
-
-
-ZorbaErrorCode ZSTR0011_COLLECTION_NON_ROOT_NODE( "ZSTR0011" );
-
-
-ZorbaErrorCode ZSTR0012_COLLECTION_ITEM_MUST_BE_A_NODE( "ZSTR0012" );
-
-
-ZorbaErrorCode ZSTR0015_IC_ALREADY_EXISTS( "ZSTR0015" );
-
-
-ZorbaErrorCode ZSTR0016_IC_DOES_NOT_EXIST( "ZSTR0016" );
-
-
-ZorbaErrorCode ZSTR0020_LOADER_IO_ERROR( "ZSTR0020" );
-
-
-ZorbaErrorCode ZSTR0021_LOADER_PARSING_ERROR( "ZSTR0021" );
-
-
-ZorbaErrorCode ZSTR0030_NODEID_ERROR( "ZSTR0030" );
-
-
-ZorbaErrorCode ZSTR0040_TYPE_ERROR( "ZSTR0040" );
-
-
-ZorbaErrorCode ZSTR0041_NAN_COMPARISON( "ZSTR0041" );
-
-
-ZorbaErrorCode ZSTR0045_DUPLICATE_NODE_ERROR( "ZSTR0045" );
-
-
-ZorbaErrorCode ZSTR0050_FUNCTION_NOT_IMPLEMENTED_FOR_ITEMTYPE( "ZSTR0050" );
-
-
-ZorbaErrorCode ZSTR0055_STREAMABLE_STRING_CONSUMED( "ZSTR0055" );
-
-
-ZorbaErrorCode ZSTR0060_RANGE_EXCEPTION( "ZSTR0060" );
-
-
-ZorbaErrorCode XSST0001( "XSST0001" );
-
-
-ZorbaErrorCode XSST0002( "XSST0002" );
-
-
-ZorbaErrorCode XSST0003( "XSST0003" );
-
-
-ZorbaErrorCode XSST0004( "XSST0004" );
-
-
-ZorbaErrorCode XSST0005( "XSST0005" );
-
-
-ZorbaErrorCode XSST0006( "XSST0006" );
-
-
-ZorbaErrorCode XSST0007( "XSST0007" );
-
-
-ZorbaErrorCode XSST0008( "XSST0008" );
-
-
-ZorbaErrorCode XSST0009( "XSST0009" );
-
-
-ZorbaErrorCode XSST0010( "XSST0010" );
-
-
-} // namespace zerr
-
-namespace zwarn {
-
-ZorbaWarningCode ZWST0002_UNKNOWN_ANNOTATION( "ZWST0002" );
-
-
-ZorbaWarningCode ZWST0003_FAKE_SEQUENTIAL_FUNCTION( "ZWST0003" );
-
-
-ZorbaWarningCode ZWST0004_AMBIGUOUS_SEQUENTIAL_FLWOR( "ZWST0004" );
-
-
-} // namespace zwarn
-
-} // namespace zorba
-/*
- * Local variables:
- * mode: c++
- * End:
- */ 
+/**
+ * Copyright 2006-2011 The FLWOR Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
+ /*
+  * THIS FILE IS GENERATED.
+  * PLEASE DO NOT EDIT.
+  */
+ 
+
+#include "stdafx.h"
+#include <zorba/diagnostic_list.h>
+
+namespace zorba {
+
+
+namespace err {
+
+XQueryErrorCode XPST0001( "XPST0001" );
+
+
+XQueryErrorCode XPDY0002( "XPDY0002" );
+
+
+XQueryErrorCode XPST0003( "XPST0003" );
+
+
+XQueryErrorCode XPTY0004( "XPTY0004" );
+
+
+XQueryErrorCode XPST0005( "XPST0005" );
+
+
+XQueryErrorCode XPST0008( "XPST0008" );
+
+
+XQueryErrorCode XQST0009( "XQST0009" );
+
+
+XQueryErrorCode XQST0012( "XQST0012" );
+
+
+XQueryErrorCode XQST0013( "XQST0013" );
+
+
+XQueryErrorCode XPST0017( "XPST0017" );
+
+
+XQueryErrorCode XPTY0018( "XPTY0018" );
+
+
+XQueryErrorCode XPTY0019( "XPTY0019" );
+
+
+XQueryErrorCode XPTY0020( "XPTY0020" );
+
+
+XQueryErrorCode XQST0022( "XQST0022" );
+
+
+XQueryErrorCode XQTY0024( "XQTY0024" );
+
+
+XQueryErrorCode XQDY0025( "XQDY0025" );
+
+
+XQueryErrorCode XQDY0026( "XQDY0026" );
+
+
+XQueryErrorCode XQDY0027( "XQDY0027" );
+
+
+XQueryErrorCode XQTY0030( "XQTY0030" );
+
+
+XQueryErrorCode XQST0031( "XQST0031" );
+
+
+XQueryErrorCode XQST0032( "XQST0032" );
+
+
+XQueryErrorCode XQST0033( "XQST0033" );
+
+
+XQueryErrorCode XQST0034( "XQST0034" );
+
+
+XQueryErrorCode XQST0035( "XQST0035" );
+
+
+XQueryErrorCode XQST0036( "XQST0036" );
+
+
+XQueryErrorCode XQST0038( "XQST0038" );
+
+
+XQueryErrorCode XQST0039( "XQST0039" );
+
+
+XQueryErrorCode XQST0040( "XQST0040" );
+
+
+XQueryErrorCode XQDY0041( "XQDY0041" );
+
+
+XQueryErrorCode XQDY0044( "XQDY0044" );
+
+
+XQueryErrorCode XQST0045( "XQST0045" );
+
+
+XQueryErrorCode XQST0046( "XQST0046" );
+
+
+XQueryErrorCode XQST0047( "XQST0047" );
+
+
+XQueryErrorCode XQST0048( "XQST0048" );
+
+
+XQueryErrorCode XQST0049( "XQST0049" );
+
+
+XQueryErrorCode XPDY0050( "XPDY0050" );
+
+
+XQueryErrorCode XPST0051( "XPST0051" );
+
+
+XQueryErrorCode XQST0054( "XQST0054" );
+
+
+XQueryErrorCode XQST0055( "XQST0055" );
+
+
+XQueryErrorCode XQST0057( "XQST0057" );
+
+
+XQueryErrorCode XQST0058( "XQST0058" );
+
+
+XQueryErrorCode XQST0059( "XQST0059" );
+
+
+XQueryErrorCode XQST0060( "XQST0060" );
+
+
+XQueryErrorCode XQDY0061( "XQDY0061" );
+
+
+XQueryErrorCode XQDY0064( "XQDY0064" );
+
+
+XQueryErrorCode XQST0065( "XQST0065" );
+
+
+XQueryErrorCode XQST0066( "XQST0066" );
+
+
+XQueryErrorCode XQST0067( "XQST0067" );
+
+
+XQueryErrorCode XQST0068( "XQST0068" );
+
+
+XQueryErrorCode XQST0069( "XQST0069" );
+
+
+XQueryErrorCode XQST0070( "XQST0070" );
+
+
+XQueryErrorCode XQST0071( "XQST0071" );
+
+
+XQueryErrorCode XQDY0072( "XQDY0072" );
+
+
+XQueryErrorCode XQDY0074( "XQDY0074" );
+
+
+XQueryErrorCode XQST0076( "XQST0076" );
+
+
+XQueryErrorCode XQST0079( "XQST0079" );
+
+
+XQueryErrorCode XPST0080( "XPST0080" );
+
+
+XQueryErrorCode XPST0081( "XPST0081" );
+
+
+XQueryErrorCode XPST0083( "XPST0083" );
+
+
+XQueryErrorCode XQDY0084( "XQDY0084" );
+
+
+XQueryErrorCode XQST0085( "XQST0085" );
+
+
+XQueryErrorCode XQTY0086( "XQTY0086" );
+
+
+XQueryErrorCode XQST0087( "XQST0087" );
+
+
+XQueryErrorCode XQST0088( "XQST0088" );
+
+
+XQueryErrorCode XQST0089( "XQST0089" );
+
+
+XQueryErrorCode XQST0090( "XQST0090" );
+
+
+XQueryErrorCode XQDY0091( "XQDY0091" );
+
+
+XQueryErrorCode XQDY0092( "XQDY0092" );
+
+
+XQueryErrorCode XQST0093( "XQST0093" );
+
+
+XQueryErrorCode XQDY0096( "XQDY0096" );
+
+
+XQueryErrorCode XQST0098( "XQST0098" );
+
+
+XQueryErrorCode XQST0106( "XQST0106" );
+
+
+XQueryErrorCode XQST0111( "XQST0111" );
+
+
+XQueryErrorCode XTDE1310( "XTDE1310" );
+
+
+XQueryErrorCode XTDE1340( "XTDE1340" );
+
+
+XQueryErrorCode XTDE1350( "XTDE1350" );
+
+
+#if !defined(ZORBA_NO_FULL_TEXT)
+XQueryErrorCode FTST0008( "FTST0008" );
+
+
+XQueryErrorCode FTST0009( "FTST0009" );
+
+
+XQueryErrorCode FTDY0016( "FTDY0016" );
+
+
+XQueryErrorCode FTDY0017( "FTDY0017" );
+
+
+XQueryErrorCode FTST0018( "FTST0018" );
+
+
+XQueryErrorCode FTST0019( "FTST0019" );
+
+
+XQueryErrorCode FTDY0020( "FTDY0020" );
+#endif
+
+
+XQueryErrorCode FOER0000( "FOER0000" );
+
+
+XQueryErrorCode FOAR0001( "FOAR0001" );
+
+
+XQueryErrorCode FOAR0002( "FOAR0002" );
+
+
+XQueryErrorCode FOCA0001( "FOCA0001" );
+
+
+XQueryErrorCode FOCA0002( "FOCA0002" );
+
+
+XQueryErrorCode FOCA0003( "FOCA0003" );
+
+
+XQueryErrorCode FOCA0005( "FOCA0005" );
+
+
+XQueryErrorCode FOCA0006( "FOCA0006" );
+
+
+XQueryErrorCode FOCH0001( "FOCH0001" );
+
+
+XQueryErrorCode FOCH0002( "FOCH0002" );
+
+
+XQueryErrorCode FOCH0003( "FOCH0003" );
+
+
+XQueryErrorCode FOCH0004( "FOCH0004" );
+
+
+XQueryErrorCode FODC0001( "FODC0001" );
+
+
+XQueryErrorCode FODC0002( "FODC0002" );
+
+
+XQueryErrorCode FODC0003( "FODC0003" );
+
+
+XQueryErrorCode FODC0004( "FODC0004" );
+
+
+XQueryErrorCode FODC0005( "FODC0005" );
+
+
+XQueryErrorCode FODC0006( "FODC0006" );
+
+
+XQueryErrorCode FODC0007( "FODC0007" );
+
+
+XQueryErrorCode FODF1280( "FODF1280" );
+
+
+XQueryErrorCode FODF1310( "FODF1310" );
+
+
+XQueryErrorCode FODT0001( "FODT0001" );
+
+
+XQueryErrorCode FODT0002( "FODT0002" );
+
+
+XQueryErrorCode FODT0003( "FODT0003" );
+
+
+XQueryErrorCode FOFI0001( "FOFI0001" );
+
+
+XQueryErrorCode FOFI0002( "FOFI0002" );
+
+
+XQueryErrorCode FONS0004( "FONS0004" );
+
+
+XQueryErrorCode FONS0005( "FONS0005" );
+
+
+XQueryErrorCode FORG0001( "FORG0001" );
+
+
+XQueryErrorCode FORG0002( "FORG0002" );
+
+
+XQueryErrorCode FORG0003( "FORG0003" );
+
+
+XQueryErrorCode FORG0004( "FORG0004" );
+
+
+XQueryErrorCode FORG0005( "FORG0005" );
+
+
+XQueryErrorCode FORG0006( "FORG0006" );
+
+
+XQueryErrorCode FORG0008( "FORG0008" );
+
+
+XQueryErrorCode FORG0009( "FORG0009" );
+
+
+XQueryErrorCode FORX0001( "FORX0001" );
+
+
+XQueryErrorCode FORX0002( "FORX0002" );
+
+
+XQueryErrorCode FORX0003( "FORX0003" );
+
+
+XQueryErrorCode FORX0004( "FORX0004" );
+
+
+XQueryErrorCode FOTY0012( "FOTY0012" );
+
+
+XQueryErrorCode FOTY0013( "FOTY0013" );
+
+
+XQueryErrorCode FOTY0014( "FOTY0014" );
+
+
+XQueryErrorCode FOTY0015( "FOTY0015" );
+
+
+XQueryErrorCode XUST0001( "XUST0001" );
+
+
+XQueryErrorCode XUST0002( "XUST0002" );
+
+
+XQueryErrorCode XUST0003( "XUST0003" );
+
+
+XQueryErrorCode XUTY0004( "XUTY0004" );
+
+
+XQueryErrorCode XUTY0005( "XUTY0005" );
+
+
+XQueryErrorCode XUTY0006( "XUTY0006" );
+
+
+XQueryErrorCode XUTY0007( "XUTY0007" );
+
+
+XQueryErrorCode XUTY0008( "XUTY0008" );
+
+
+XQueryErrorCode XUDY0009( "XUDY0009" );
+
+
+XQueryErrorCode XUTY0010( "XUTY0010" );
+
+
+XQueryErrorCode XUTY0011( "XUTY0011" );
+
+
+XQueryErrorCode XUTY0012( "XUTY0012" );
+
+
+XQueryErrorCode XUTY0013( "XUTY0013" );
+
+
+XQueryErrorCode XUDY0014( "XUDY0014" );
+
+
+XQueryErrorCode XUDY0015( "XUDY0015" );
+
+
+XQueryErrorCode XUDY0016( "XUDY0016" );
+
+
+XQueryErrorCode XUDY0017( "XUDY0017" );
+
+
+XQueryErrorCode XUDY0018( "XUDY0018" );
+
+
+XQueryErrorCode XUDY0019( "XUDY0019" );
+
+
+XQueryErrorCode XUDY0021( "XUDY0021" );
+
+
+XQueryErrorCode XUTY0022( "XUTY0022" );
+
+
+XQueryErrorCode XUDY0023( "XUDY0023" );
+
+
+XQueryErrorCode XUDY0024( "XUDY0024" );
+
+
+XQueryErrorCode XUDY0027( "XUDY0027" );
+
+
+XQueryErrorCode XUST0028( "XUST0028" );
+
+
+XQueryErrorCode XUDY0029( "XUDY0029" );
+
+
+XQueryErrorCode XUDY0030( "XUDY0030" );
+
+
+XQueryErrorCode XUDY0031( "XUDY0031" );
+
+
+XQueryErrorCode FOUP0001( "FOUP0001" );
+
+
+XQueryErrorCode FOUP0002( "FOUP0002" );
+
+
+XQueryErrorCode SENR0001( "SENR0001" );
+
+
+XQueryErrorCode SERE0003( "SERE0003" );
+
+
+XQueryErrorCode SEPM0004( "SEPM0004" );
+
+
+XQueryErrorCode SERE0005( "SERE0005" );
+
+
+XQueryErrorCode SERE0006( "SERE0006" );
+
+
+XQueryErrorCode SESU0007( "SESU0007" );
+
+
+XQueryErrorCode SERE0008( "SERE0008" );
+
+
+XQueryErrorCode SEPM0009( "SEPM0009" );
+
+
+XQueryErrorCode SEPM0010( "SEPM0010" );
+
+
+XQueryErrorCode SESU0011( "SESU0011" );
+
+
+XQueryErrorCode SERE0012( "SERE0012" );
+
+
+XQueryErrorCode SESU0013( "SESU0013" );
+
+
+XQueryErrorCode SERE0014( "SERE0014" );
+
+
+XQueryErrorCode SERE0015( "SERE0015" );
+
+
+XQueryErrorCode SEPM0016( "SEPM0016" );
+
+
+} // namespace err
+
+namespace zerr {
+
+ZorbaErrorCode ZXQP0000_NO_ERROR( "ZXQP0000" );
+
+
+ZorbaErrorCode ZXQP0001_DYNAMIC_RUNTIME_ERROR( "ZXQP0001" );
+
+
+ZorbaErrorCode ZXQP0002_ASSERT_FAILED( "ZXQP0002" );
+
+
+ZorbaErrorCode ZXQP0003_INTERNAL_ERROR( "ZXQP0003" );
+
+
+ZorbaErrorCode ZXQP0004_NOT_IMPLEMENTED( "ZXQP0004" );
+
+
+ZorbaErrorCode ZXQP0005_NOT_ENABLED( "ZXQP0005" );
+
+
+ZorbaErrorCode ZXQP0007_FUNCTION_SIGNATURE_NOT_EQUAL( "ZXQP0007" );
+
+
+ZorbaErrorCode ZXQP0008_FUNCTION_IMPL_NOT_FOUND( "ZXQP0008" );
+
+
+ZorbaErrorCode ZXQP0009_FUNCTION_LOCALNAME_MISMATCH( "ZXQP0009" );
+
+
+ZorbaErrorCode ZXQP0010_FUNCTION_NOT_SEQUENTIAL( "ZXQP0010" );
+
+
+ZorbaErrorCode ZXQP0013_FXCHARHEAP_EXCEPTION( "ZXQP0013" );
+
+
+ZorbaErrorCode ZXQP0016_RESERVED_MODULE_TARGET_NAMESPACE( "ZXQP0016" );
+
+
+ZorbaErrorCode ZXQP0017_FILE_ACCESS_DISABLED( "ZXQP0017" );
+
+
+ZorbaErrorCode ZXQP0020_INVALID_URI( "ZXQP0020" );
+
+
+ZorbaErrorCode ZXQP0021_USER_ERROR( "ZXQP0021" );
+
+
+ZorbaErrorCode ZXQP0024_XML_DOES_NOT_MATCH_SCHEMA( "ZXQP0024" );
+
+
+ZorbaErrorCode ZXQP0025_ITEM_CREATION_FAILED( "ZXQP0025" );
+
+
+ZorbaErrorCode ZXQP0026_INVALID_ENUM_VALUE( "ZXQP0026" );
+
+
+ZorbaErrorCode ZXQP0028_TARGET_NAMESPACE_NOT_PROVIDED( "ZXQP0028" );
+
+
+ZorbaErrorCode ZXQP0029_URI_ACCESS_DENIED( "ZXQP0029" );
+
+
+ZorbaErrorCode ZXQP0030_DEADLOCK( "ZXQP0030" );
+
+
+ZorbaErrorCode ZXQP0031_MALFORMED_XQUERYX_INPUT( "ZXQP0031" );
+
+
+ZorbaErrorCode ZXQP0032_ERROR_TRANSFORMING_XQUERYX_TO_XQUERY( "ZXQP0032" );
+
+
+ZorbaErrorCode ZXQP0036_BREAKITERATOR_CREATION_FAILED( "ZXQP0036" );
+
+
+ZorbaErrorCode ZXQP0037_INAPPROPRIATE_MODULE_VERSION( "ZXQP0037" );
+
+
+ZorbaErrorCode ZXQP0038_INAPPROPRIATE_ZORBA_VERSION( "ZXQP0038" );
+
+
+ZorbaErrorCode ZXQP0039_INVALID_VERSION_SPECIFICATION( "ZXQP0039" );
+
+
+ZorbaErrorCode ZXQP0040_MISSING_NONDETERMINISTIC_ANNOTATION( "ZXQP0040" );
+
+
+ZorbaErrorCode ZXQP0050_FEATURE_NOT_AVAILABLE( "ZXQP0050" );
+
+
+ZorbaErrorCode ZXQP0060_OPTION_NOT_KNOWN( "ZXQP0060" );
+
+
+#if !defined(ZORBA_NO_FULL_TEXT)
+ZorbaErrorCode ZXQP8401_THESAURUS_VERSION_MISMATCH( "ZXQP8401" );
+
+
+ZorbaErrorCode ZXQP8402_THESAURUS_ENDIANNESS_MISMATCH( "ZXQP8402" );
+
+
+ZorbaErrorCode ZXQP8403_THESAURUS_DATA_ERROR( "ZXQP8403" );
+#endif
+
+
+ZorbaErrorCode ZXQD0001_PREFIX_NOT_DECLARED( "ZXQD0001" );
+
+
+ZorbaErrorCode ZXQD0002_DOCUMENT_NOT_VALID( "ZXQD0002" );
+
+
+ZorbaErrorCode ZXQD0003_INCONSISTENT_PARSE_FRAGMENT_OPTIONS( "ZXQD0003" );
+
+
+ZorbaErrorCode ZXQD0004_INVALID_PARAMETER( "ZXQD0004" );
+
+
+ZorbaErrorCode ZXQD0005_INVALID_KEY_FOR_MAP( "ZXQD0005" );
+
+
+ZorbaErrorCode ZAPI0002_XQUERY_COMPILATION_FAILED( "ZAPI0002" );
+
+
+ZorbaErrorCode ZAPI0003_XQUERY_NOT_COMPILED( "ZAPI0003" );
+
+
+ZorbaErrorCode ZAPI0004_XQUERY_ALREADY_COMPILED( "ZAPI0004" );
+
+
+ZorbaErrorCode ZAPI0005_XQUERY_ALREADY_EXECUTING( "ZAPI0005" );
+
+
+ZorbaErrorCode ZAPI0006_XQUERY_ALREADY_CLOSED( "ZAPI0006" );
+
+
+ZorbaErrorCode ZAPI0007_CANNOT_SERIALIZE_PUL( "ZAPI0007" );
+
+
+ZorbaErrorCode ZAPI0008_NOT_AN_UPDATE_XQUERY( "ZAPI0008" );
+
+
+ZorbaErrorCode ZAPI0009_XQUERY_NOT_COMPILED_IN_DEBUG_MODE( "ZAPI0009" );
+
+
+ZorbaErrorCode ZAPI0014_INVALID_ARGUMENT( "ZAPI0014" );
+
+
+ZorbaErrorCode ZAPI0015_CREATEMODULE_NOT_FOUND( "ZAPI0015" );
+
+
+ZorbaErrorCode ZAPI0019_MODULE_ALREADY_REGISTERED( "ZAPI0019" );
+
+
+ZorbaErrorCode ZAPI0020_DOCUMENT_ALREADY_EXISTS( "ZAPI0020" );
+
+
+ZorbaErrorCode ZAPI0021_ITEM_TO_LOAD_IS_NOT_NODE( "ZAPI0021" );
+
+
+ZorbaErrorCode ZAPI0027_CANNOT_UPDATE_DCTX_WITH_ITERATORS( "ZAPI0027" );
+
+
+ZorbaErrorCode ZAPI0028_INVALID_NODE_URI( "ZAPI0028" );
+
+
+ZorbaErrorCode ZAPI0029_REFERENCE_ALREADY_PRESENT( "ZAPI0029" );
+
+
+ZorbaErrorCode ZAPI0030_NO_CURRENT_REFERENCE( "ZAPI0030" );
+
+
+ZorbaErrorCode ZAPI0039_XQUERY_HAS_ITERATOR_ALREADY( "ZAPI0039" );
+
+
+ZorbaErrorCode ZAPI0040_ITERATOR_NOT_OPEN( "ZAPI0040" );
+
+
+ZorbaErrorCode ZAPI0041_ITERATOR_ALREADY_OPEN( "ZAPI0041" );
+
+
+ZorbaErrorCode ZAPI0042_ITERATOR_CLOSED( "ZAPI0042" );
+
+
+ZorbaErrorCode ZAPI0070_INVALID_SERIALIZATION_METHOD_FOR_SAX( "ZAPI0070" );
+
+
+ZorbaErrorCode ZAPI0080_CANNOT_RETRIEVE_NODE_REFERENCE( "ZAPI0080" );
+
+
+ZorbaErrorCode ZCSE0001_NONEXISTENT_INPUT_FIELD( "ZCSE0001" );
+
+
+ZorbaErrorCode ZCSE0002_INCOMPATIBLE_INPUT_FIELD( "ZCSE0002" );
+
+
+ZorbaErrorCode ZCSE0003_UNRECOGNIZED_CLASS_FIELD( "ZCSE0003" );
+
+
+ZorbaErrorCode ZCSE0004_UNRESOLVED_FIELD_REFERENCE( "ZCSE0004" );
+
+
+ZorbaErrorCode ZCSE0005_CLASS_VERSION_TOO_NEW( "ZCSE0005" );
+
+
+ZorbaErrorCode ZCSE0006_CLASS_VERSION_TOO_OLD( "ZCSE0006" );
+
+
+ZorbaErrorCode ZCSE0007_INPUT_ARCHIVE_USED_FOR_OUT_SERIALIZATION( "ZCSE0007" );
+
+
+ZorbaErrorCode ZCSE0008_OUTPUT_ARCHIVE_USED_FOR_IN_SERIALIZATION( "ZCSE0008" );
+
+
+ZorbaErrorCode ZCSE0009_CLASS_NOT_SERIALIZABLE( "ZCSE0009" );
+
+
+ZorbaErrorCode ZCSE0010_ITEM_TYPE_NOT_SERIALIZABLE( "ZCSE0010" );
+
+
+ZorbaErrorCode ZCSE0011_INPUT_ARCHIVE_NOT_ZORBA_ARCHIVE( "ZCSE0011" );
+
+
+ZorbaErrorCode ZCSE0012_INCOMPATIBLE_ARCHIVE_VERSION( "ZCSE0012" );
+
+
+ZorbaErrorCode ZCSE0013_UNABLE_TO_LOAD_QUERY( "ZCSE0013" );
+
+
+ZorbaErrorCode ZCSE0014_INFINITE_CIRCULAR_DEPENDENCIES( "ZCSE0014" );
+
+
+ZorbaErrorCode ZCSE0015_INCOMPATIBLE_BETWEEN_32_AND_64_BITS_OR_LE_AND_BE( "ZCSE0015" );
+
+
+ZorbaErrorCode ZCSE0016_CANNOT_LOAD_FROM_RELEASE_TO_DEBUG( "ZCSE0016" );
+
+
+ZorbaErrorCode ZCSE0017_CANNOT_LOAD_FROM_DEBUG_TO_RELEASE( "ZCSE0017" );
+
+
+ZorbaErrorCode ZDDY0001_COLLECTION_NOT_DECLARED( "ZDDY0001" );
+
+
+ZorbaErrorCode ZDDY0002_COLLECTION_ALREADY_EXISTS( "ZDDY0002" );
+
+
+ZorbaErrorCode ZDDY0003_COLLECTION_DOES_NOT_EXIST( "ZDDY0003" );
+
+
+ZorbaErrorCode ZDDY0004_COLLECTION_CONST_UPDATE( "ZDDY0004" );
+
+
+ZorbaErrorCode ZDDY0005_COLLECTION_APPEND_BAD_INSERT( "ZDDY0005" );
+
+
+ZorbaErrorCode ZDDY0006_COLLECTION_QUEUE_BAD_INSERT( "ZDDY0006" );
+
+
+ZorbaErrorCode ZDDY0007_COLLECTION_APPEND_BAD_DELETE( "ZDDY0007" );
+
+
+ZorbaErrorCode ZDDY0008_COLLECTION_QUEUE_BAD_DELETE( "ZDDY0008" );
+
+
+ZorbaErrorCode ZDDY0009_COLLECTION_QUEUE_BAD_DELETE( "ZDDY0009" );
+
+
+ZorbaErrorCode ZDDY0010_COLLECTION_CONST_NODE_UPDATE( "ZDDY0010" );
+
+
+ZorbaErrorCode ZDDY0011_COLLECTION_NODE_NOT_FOUND( "ZDDY0011" );
+
+
+ZorbaErrorCode ZDDY0012_COLLECTION_UNORDERED_BAD_OPERATION( "ZDDY0012" );
+
+
+ZorbaErrorCode ZDDY0013_COLLECTION_BAD_DESTROY_INDEXES( "ZDDY0013" );
+
+
+ZorbaErrorCode ZDDY0014_COLLECTION_BAD_DESTROY_ICS( "ZDDY0014" );
+
+
+ZorbaErrorCode ZDDY0015_COLLECTION_BAD_DESTROY_NODES( "ZDDY0015" );
+
+
+ZorbaErrorCode ZDDY0016_COLLECTION_MULTIPLE_CREATES( "ZDDY0016" );
+
+
+ZorbaErrorCode ZDDY0017_NODE_IS_ORPHAN( "ZDDY0017" );
+
+
+ZorbaErrorCode ZDDY0018_NODES_NOT_IN_SAME_COLLECTION( "ZDDY0018" );
+
+
+ZorbaErrorCode ZDDY0020_INDEX_DOMAIN_NODE_NOT_IN_COLLECTION( "ZDDY0020" );
+
+
+ZorbaErrorCode ZDDY0021_INDEX_NOT_DECLARED( "ZDDY0021" );
+
+
+ZorbaErrorCode ZDDY0022_INDEX_ALREADY_EXISTS( "ZDDY0022" );
+
+
+ZorbaErrorCode ZDDY0023_INDEX_DOES_NOT_EXIST( "ZDDY0023" );
+
+
+ZorbaErrorCode ZDDY0024_INDEX_UNIQUE_VIOLATION( "ZDDY0024" );
+
+
+ZorbaErrorCode ZDDY0025_INDEX_WRONG_NUMBER_OF_PROBE_ARGS( "ZDDY0025" );
+
+
+ZorbaErrorCode ZDDY0026_INDEX_RANGE_PROBE_NOT_ALLOWED( "ZDDY0026" );
+
+
+ZorbaErrorCode ZDDY0027_INDEX_MULTIPLE_CREATES( "ZDDY0027" );
+
+
+ZorbaErrorCode ZDDY0028_INDEX_DOMAIN_HAS_DUPLICATE_NODES( "ZDDY0028" );
+
+
+ZorbaErrorCode ZDDY0029_INDEX_POINT_GENERAL_PROBE_NOT_ALLOWED( "ZDDY0029" );
+
+
+ZorbaErrorCode ZDDY0030_INDEX_RANGE_GENERAL_PROBE_NOT_ALLOWED( "ZDDY0030" );
+
+
+ZorbaErrorCode ZDDY0034_INDEX_RANGE_VALUE_PROBE_BAD_KEY_TYPES( "ZDDY0034" );
+
+
+ZorbaErrorCode ZDDY0031_IC_NOT_DECLARED( "ZDDY0031" );
+
+
+ZorbaErrorCode ZDDY0032_IC_NOT_ACTIVATED( "ZDDY0032" );
+
+
+ZorbaErrorCode ZDDY0033_IC_NOT_MET( "ZDDY0033" );
+
+
+ZorbaErrorCode ZDST0001_COLLECTION_ALREADY_DECLARED( "ZDST0001" );
+
+
+ZorbaErrorCode ZDST0002_COLLECTION_ALREADY_IMPORTED( "ZDST0002" );
+
+
+ZorbaErrorCode ZDST0003_COLLECTION_DECL_IN_MAIN_MODULE( "ZDST0003" );
+
+
+ZorbaErrorCode ZDST0004_COLLECTION_MULTIPLE_PROPERTY_VALUES( "ZDST0004" );
+
+
+ZorbaErrorCode ZDST0006_COLLECTION_INVALID_PROPERTY_VALUE( "ZDST0006" );
+
+
+ZorbaErrorCode ZDST0007_COLLECTION_DECL_IN_FOREIGN_MODULE( "ZDST0007" );
+
+
+ZorbaErrorCode ZDST0021_INDEX_ALREADY_DECLARED( "ZDST0021" );
+
+
+ZorbaErrorCode ZDST0022_INDEX_ALREADY_IMPORTED( "ZDST0022" );
+
+
+ZorbaErrorCode ZDST0023_INDEX_DECL_IN_MAIN_MODULE( "ZDST0023" );
+
+
+ZorbaErrorCode ZDST0024_INDEX_MULTIPLE_PROPERTY_VALUES( "ZDST0024" );
+
+
+ZorbaErrorCode ZDST0026_INDEX_INVALID_PROPERTY_VALUE( "ZDST0026" );
+
+
+ZorbaErrorCode ZDST0027_INDEX_BAD_KEY_TYPE( "ZDST0027" );
+
+
+ZorbaErrorCode ZDST0028_INDEX_NOT_DETERMINISTIC( "ZDST0028" );
+
+
+ZorbaErrorCode ZDST0029_INDEX_INVALID_DATA_SOURCE( "ZDST0029" );
+
+
+ZorbaErrorCode ZDST0030_INDEX_NON_CONST_DATA_SOURCE( "ZDST0030" );
+
+
+ZorbaErrorCode ZDST0031_INDEX_HAS_FREE_VARS( "ZDST0031" );
+
+
+ZorbaErrorCode ZDST0032_INDEX_REFERENCES_CTX_ITEM( "ZDST0032" );
+
+
+ZorbaErrorCode ZDST0033_INDEX_NON_SIMPLE_EXPR( "ZDST0033" );
+
+
+ZorbaErrorCode ZDST0034_INDEX_CANNOT_DO_AUTOMATIC_MAINTENANCE( "ZDST0034" );
+
+
+ZorbaErrorCode ZDST0035_INDEX_GENERAL_MULTIKEY( "ZDST0035" );
+
+
+ZorbaErrorCode ZDST0036_INDEX_DECL_IN_FOREIGN_MODULE( "ZDST0036" );
+
+
+ZorbaErrorCode ZDST0041_IC_ALREADY_DECLARED( "ZDST0041" );
+
+
+ZorbaErrorCode ZDST0044_IC_DECL_IN_MAIN_MODULE( "ZDST0044" );
+
+
+ZorbaErrorCode ZDST0048_IC_DECL_IN_FOREIGN_MODULE( "ZDST0048" );
+
+
+ZorbaErrorCode ZDST0060_FEATURE_NOT_SUPPORTED( "ZDST0060" );
+
+
+ZorbaErrorCode ZDTY0001_COLLECTION_INVALID_NODE_TYPE( "ZDTY0001" );
+
+
+ZorbaErrorCode ZDTY0010_INDEX_DOMAIN_TYPE_ERROR( "ZDTY0010" );
+
+
+ZorbaErrorCode ZDTY0011_INDEX_KEY_TYPE_ERROR( "ZDTY0011" );
+
+
+ZorbaErrorCode ZDTY0012_INDEX_KEY_TYPE_ERROR( "ZDTY0012" );
+
+
+#if defined(ZORBA_WITH_DEBUGGER)
+ZorbaErrorCode ZGDB0001_CANNOT_CONNECT_TO_CLIENT( "ZGDB0001" );
+#endif
+
+
+ZorbaErrorCode ZOSE0001_FILE_NOT_FOUND( "ZOSE0001" );
+
+
+ZorbaErrorCode ZOSE0002_NOT_PLAIN_FILE( "ZOSE0002" );
+
+
+ZorbaErrorCode ZOSE0003_STREAM_READ_FAILURE( "ZOSE0003" );
+
+
+ZorbaErrorCode ZOSE0004_IO_ERROR( "ZOSE0004" );
+
+
+ZorbaErrorCode ZOSE0005_DLL_LOAD_FAILED( "ZOSE0005" );
+
+
+ZorbaErrorCode ZSTR0001_INDEX_ALREADY_EXISTS( "ZSTR0001" );
+
+
+ZorbaErrorCode ZSTR0002_INDEX_DOES_NOT_EXIST( "ZSTR0002" );
+
+
+ZorbaErrorCode ZSTR0003_INDEX_PARTIAL_KEY_INSERT( "ZSTR0003" );
+
+
+ZorbaErrorCode ZSTR0004_INDEX_PARTIAL_KEY_REMOVE( "ZSTR0004" );
+
+
+ZorbaErrorCode ZSTR0005_INDEX_PARTIAL_KEY_PROBE( "ZSTR0005" );
+
+
+ZorbaErrorCode ZSTR0006_INDEX_INVALID_BOX_PROBE( "ZSTR0006" );
+
+
+ZorbaErrorCode ZSTR0007_INDEX_UNSUPPORTED_PROBE_CONDITION( "ZSTR0007" );
+
+
+ZorbaErrorCode ZSTR0008_COLLECTION_ALREADY_EXISTS( "ZSTR0008" );
+
+
+ZorbaErrorCode ZSTR0009_COLLECTION_NOT_FOUND( "ZSTR0009" );
+
+
+ZorbaErrorCode ZSTR0010_COLLECTION_NODE_ALREADY_IN_COLLECTION( "ZSTR0010" );
+
+
+ZorbaErrorCode ZSTR0011_COLLECTION_NON_ROOT_NODE( "ZSTR0011" );
+
+
+ZorbaErrorCode ZSTR0012_COLLECTION_ITEM_MUST_BE_A_NODE( "ZSTR0012" );
+
+
+ZorbaErrorCode ZSTR0015_IC_ALREADY_EXISTS( "ZSTR0015" );
+
+
+ZorbaErrorCode ZSTR0016_IC_DOES_NOT_EXIST( "ZSTR0016" );
+
+
+ZorbaErrorCode ZSTR0020_LOADER_IO_ERROR( "ZSTR0020" );
+
+
+ZorbaErrorCode ZSTR0021_LOADER_PARSING_ERROR( "ZSTR0021" );
+
+
+ZorbaErrorCode ZSTR0030_NODEID_ERROR( "ZSTR0030" );
+
+
+ZorbaErrorCode ZSTR0040_TYPE_ERROR( "ZSTR0040" );
+
+
+ZorbaErrorCode ZSTR0041_NAN_COMPARISON( "ZSTR0041" );
+
+
+ZorbaErrorCode ZSTR0045_DUPLICATE_NODE_ERROR( "ZSTR0045" );
+
+
+ZorbaErrorCode ZSTR0050_FUNCTION_NOT_IMPLEMENTED_FOR_ITEMTYPE( "ZSTR0050" );
+
+
+ZorbaErrorCode ZSTR0055_STREAMABLE_STRING_CONSUMED( "ZSTR0055" );
+
+
+ZorbaErrorCode ZSTR0060_RANGE_EXCEPTION( "ZSTR0060" );
+
+
+ZorbaErrorCode XSST0001( "XSST0001" );
+
+
+ZorbaErrorCode XSST0002( "XSST0002" );
+
+
+ZorbaErrorCode XSST0003( "XSST0003" );
+
+
+ZorbaErrorCode XSST0004( "XSST0004" );
+
+
+ZorbaErrorCode XSST0005( "XSST0005" );
+
+
+ZorbaErrorCode XSST0006( "XSST0006" );
+
+
+ZorbaErrorCode XSST0007( "XSST0007" );
+
+
+ZorbaErrorCode XSST0008( "XSST0008" );
+
+
+ZorbaErrorCode XSST0009( "XSST0009" );
+
+
+ZorbaErrorCode XSST0010( "XSST0010" );
+
+
+} // namespace zerr
+
+namespace zwarn {
+
+ZorbaWarningCode ZWST0002_UNKNOWN_ANNOTATION( "ZWST0002" );
+
+
+ZorbaWarningCode ZWST0003_FAKE_SEQUENTIAL_FUNCTION( "ZWST0003" );
+
+
+ZorbaWarningCode ZWST0004_AMBIGUOUS_SEQUENTIAL_FLWOR( "ZWST0004" );
+
+
+} // namespace zwarn
+
+} // namespace zorba
+/*
+ * Local variables:
+ * mode: c++
+ * End:
+ */ 

=== modified file 'src/diagnostics/pregenerated/dict_en.cpp'
--- src/diagnostics/pregenerated/dict_en.cpp	2011-10-20 23:05:55 +0000
+++ src/diagnostics/pregenerated/dict_en.cpp	2011-11-03 16:28:29 +0000
@@ -1,729 +1,729 @@
-/**
- * Copyright 2006-2011 The FLWOR Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- 
- /*
-  * THIS FILE IS GENERATED.
-  * PLEASE DO NOT EDIT.
-  */
- 
-#include "stdafx.h"
-#include "diagnostics/dict_impl.h"
-
-namespace zorba {
-namespace diagnostic {
-namespace dict {
-
-extern entry const dict_en[] = {
-  { "FOAR0001", "division by zero" },
-  { "FOAR0002", "numeric operation overflow/underflow${: 1}" },
-  { "FOCA0001", "\"$1\": value too large for decimal" },
-  { "FOCA0002", "\"$1\": invalid lexical value${: 2}" },
-  { "FOCA0003", "\"$1\": value too large for integer" },
-  { "FOCA0005", "NaN supplied as float/double value" },
-  { "FOCA0006", "\"$1\": string to be cast to decimal has too many digits of precision" },
-  { "FOCH0001", "\"$1\": invalid code point" },
-  { "FOCH0002", "\"$1\": unsuported collation${: 2}" },
-  { "FOCH0003", "\"$1\": unsupported normalization form" },
-  { "FOCH0004", "\"$1\": collation does not support collation units" },
-  { "FODC0001", "no context document for $1() function" },
-  { "FODC0002", "\"$1\": error retrieving resource${: 2}" },
-  { "FODC0003", "function stability not defined" },
-  { "FODC0004", "\"$1\": invalid argument to fn:collection()${: 2}" },
-  { "FODC0005", "\"$1\": invalid argument to fn:doc() or fn:doc-available()" },
-  { "FODC0006", "invalid content passed to $1: $2" },
-  { "FODC0007", "\"$1\": base URI passed to fn:parse() is not a valid absolute URI" },
-  { "FODF1280", "\"$1\": invalid decimal format name for fn:format-number()" },
-  { "FODF1310", "\"$1\": invalid fn:format-number() picture string" },
-  { "FODT0001", "overflow/underflow in date/time operation" },
-  { "FODT0002", "overflow/underflow in duration operation" },
-  { "FODT0003", "\"$1\": invalid timezone value" },
-  { "FOER0000", "unidentifier error" },
-  { "FOFI0001", "\"$1\": not castable to xs:language" },
-  { "FOFI0002", "invalid argument in format-integer: $1" },
-  { "FONS0004", "\"$1\": no namespace found for prefix" },
-  { "FONS0005", "base-URI not defined in the static context" },
-  { "FORG0001", "${\"1\": }invalid value for cast/constructor${: 2}" },
-  { "FORG0002", "\"$1\": invalid argument to fn:resolve-uri()${: 2}" },
-  { "FORG0003", "fn:zero-or-one() called with a sequnce containing more than one item" },
-  { "FORG0004", "fn:one-or-more() called with a sequence containing no items" },
-  { "FORG0005", "fn:exactly-one() called with a sequence containing zero or more than one item" },
-  { "FORG0006", "$1" },
-  { "FORG0008", "\"$1\" and \"$2\": two arguments to fn:dateTime() have inconsistent timezones" },
-  { "FORG0009", "error resolving a relative URI against a base URI in fn:resolve-uri()${: 1}" },
-  { "FORX0001", "'$1': invalid regular expression flag" },
-  { "FORX0002", "\"$1\": invalid regular expression${: 2}" },
-  { "FORX0003", "\"$1\": regular expression matches zero-length string" },
-  { "FORX0004", "\"$1\": invalid replacement string${: 2}" },
-  { "FOTY0012", "\"$1\": element node of type $2 does not have a typed value" },
-  { "FOTY0013", "\"$1\": argument to fn:data() is function item" },
-  { "FOTY0014", "\"$1\": argument to fn:string() is a function item" },
-  { "FOTY0015", "\"$1\": argument to fn:deep-equal() contains a function item" },
-  { "FOUP0001", "first operand of fn:put() is not a node of a supported kind" },
-  { "FOUP0002", "second operand of fn:put() is not a valid lexical representation of the xs:anyURI type" },
-#if !defined(ZORBA_NO_FULL_TEXT)
-  { "FTDY0016", "\"$1\": invalid weight: absolute value must be in [0,1000]" },
-#endif
-#if !defined(ZORBA_NO_FULL_TEXT)
-  { "FTDY0017", "mild-not contains StringExclude" },
-#endif
-#if !defined(ZORBA_NO_FULL_TEXT)
-  { "FTDY0020", "${\"1\": }invalid wildcard syntax${: 2}" },
-#endif
-#if !defined(ZORBA_NO_FULL_TEXT)
-  { "FTST0008", "\"$1\": unknown stop-word list" },
-#endif
-#if !defined(ZORBA_NO_FULL_TEXT)
-  { "FTST0009", "\"$1\": unsupported language" },
-#endif
-#if !defined(ZORBA_NO_FULL_TEXT)
-  { "FTST0018", "\"$1\": unknown thesaurus" },
-#endif
-#if !defined(ZORBA_NO_FULL_TEXT)
-  { "FTST0019", "\"$1\": match option specified more than once" },
-#endif
-  { "SENR0001", "\"$1\": can not serialize $2" },
-  { "SEPM0004", "doctype-system parameter, or standalone parameter with a value other than \"omit\", specified" },
-  { "SEPM0009", "omit-xml-declaration parameter is \"yes\" and $1" },
-  { "SEPM0010", "the output method is \"xml\", the value of the undeclare-prefixes parameter is \"yes\", and the value of the version parameter is \"1.0\"" },
-  { "SEPM0016", "\"$1\": value for parameter \"$2\" invalid${; $3}" },
-  { "SERE0003", "serializer can't satisfy the rules for either a well-formed XML document entity or a well-formed XML external general parsed entity" },
-  { "SERE0005", "invalid NCName character" },
-  { "SERE0006", "\"$1\": invalid character for XML version $2" },
-  { "SERE0008", "\"$1\": can not encode character as character reference here" },
-  { "SERE0012", "normalization-form parameter value is fully-normalized and any relevant construct of the result begins with a combining character" },
-  { "SERE0014", "\"#$1\": character not allowed for HTML output method" },
-  { "SERE0015", "can not use '>' within processing instruction for HTML output method" },
-  { "SESU0007", "\"$1\": unsupported encoding" },
-  { "SESU0011", "\"$1\": unsupported normalization form" },
-  { "SESU0013", "\"$1\": unsupported $2 version; supported versions are: $3" },
-  { "XPDY0002", "\"$1\": $2" },
-  { "XPDY0050", "invalid treat expression type" },
-  { "XPST0001", "${\"1\": }undefined value${: 2}" },
-  { "XPST0003", "invalid expression${: 1}" },
-  { "XPST0005", "static type must not be empty-sequence()" },
-  { "XPST0008", "\"$1\": undefined $2" },
-  { "XPST0017", "\"$1\": $2" },
-  { "XPST0051", "\"$1\": not defined as atomic type${: 2}" },
-  { "XPST0080", "\"$1\": invalid type for \"cast\" or \"castable\" exression" },
-  { "XPST0081", "\"$1\": can not expand namespace prefix to URI" },
-  { "XPST0083", "\"$1\": not a string literal" },
-  { "XPTY0004", "$1" },
-  { "XPTY0018", "path expression last step must not have nodes and atomic values" },
-  { "XPTY0019", "path expression non-last step must not be an atomic value" },
-  { "XPTY0020", "axis step context item is not a node" },
-  { "XQDY0025", "\"$1\": duplicate attribute name" },
-  { "XQDY0026", "computed processing instrucion must not contain \"?>\"" },
-  { "XQDY0027", "\"$1\": unexpected validity property${: 2}" },
-  { "XQDY0041", "can not cast to xs:NCName" },
-  { "XQDY0044", "\"$1\": invalid attibute node-name" },
-  { "XQDY0061", "invalid validate expression operand${: 1}" },
-  { "XQDY0064", "\"XML\": invalid name expression" },
-  { "XQDY0072", "comment must not contain \"--\" or end with \"-\"" },
-  { "XQDY0074", "${\"1\": }can not convert to expanded QName${: 2}" },
-  { "XQDY0084", "validated element does not have a top-level element declaration in the in-scope element declarations${: 1}" },
-  { "XQDY0091", "\"xml:id\" encountered" },
-  { "XQDY0092", "\"$1\": must be either \"preserve\" or \"default\"" },
-  { "XQDY0096", "\"$1\": invalid node-name" },
-  { "XQST0009", "schema import not supported" },
-  { "XQST0012", "invalid schema definitions" },
-  { "XQST0013", "invalid pragma content" },
-  { "XQST0022", "namespace declaration attribute is not a URI literal" },
-  { "XQST0031", "\"$1\": $2" },
-  { "XQST0032", "multiple base URI declarations" },
-  { "XQST0033", "\"$1\": namespace prefix already bound to \"$2\"" },
-  { "XQST0034", "\"$1\": duplicate function declaration" },
-  { "XQST0035", "\"$1\": name previosly imported" },
-  { "XQST0036", "$1" },
-  { "XQST0038", "multiple default collation declarations" },
-  { "XQST0039", "\"$1\": duplicate parameter name" },
-  { "XQST0040", "\"$1\": non-distinct expanded attribute QName" },
-  { "XQST0045", "\"$1\": invalid function or annotation namespace" },
-  { "XQST0046", "${\"1\": }invalid URI literal${: 2}" },
-  { "XQST0047", "\"$1\": duplicate target namespace" },
-  { "XQST0048", "\"$1\": not in library namespace" },
-  { "XQST0049", "\"$1\": duplicate variable declaration" },
-  { "XQST0054", "${\"1\": }variable must not depend on itself" },
-  { "XQST0055", "multiple copy-namespaces declarations" },
-  { "XQST0057", "empty target namespace" },
-  { "XQST0058", "\"$1\": duplicate target namespace" },
-  { "XQST0059", "\"$1\": target namespace not found for schema/module${ 2}" },
-  { "XQST0060", "\"$1\": function name has a null namespace URI" },
-  { "XQST0065", "multiple ordering mode declaraions" },
-  { "XQST0066", "multiple element/type/function namespace declarations" },
-  { "XQST0067", "multiple construction declarations" },
-  { "XQST0068", "multiple boundary-space declarations" },
-  { "XQST0069", "multiple empty order declarations" },
-  { "XQST0070", "\"$1\": $2" },
-  { "XQST0071", "\"$1\": duplicate namespace declaration attribute" },
-  { "XQST0076", "\"$1\": unknown collation" },
-  { "XQST0079", "unknown pragma or empty expression" },
-  { "XQST0085", "namespace URI is empty" },
-  { "XQST0087", "\"$1\": invalid encoding" },
-  { "XQST0088", "empty target namespace literal" },
-  { "XQST0089", "\"$1\": duplicate variable name" },
-  { "XQST0090", "\"$1\": invalid character reference in XML $2" },
-  { "XQST0093", "\"$1\": module must not depend on itself" },
-  { "XQST0098", "properties \"$1\" and \"$2\", representing characters used in picture string, do not have distinct values" },
-  { "XQST0106", "$1: multiple annotations with $2 names" },
-  { "XQST0111", "$1" },
-  { "XQTY0024", "element constructor content sequence must not have an attribute node following a non-attribute node" },
-  { "XQTY0030", "validate argument must be exactly one document or element node" },
-  { "XQTY0086", "typed value of copied element or attribute node is namespace-sensitive when construction mode is preserve and copy-namespaces mode is no-preserve" },
-  { "XSST0001", "\"$1\": function cannot be declared as both updating and sequential" },
-  { "XSST0002", "\"$1\": function declared sequential but has updating body" },
-  { "XSST0003", "\"$1\": function declared updating but has sequential body" },
-  { "XSST0004", "\"$1\": function declared nonsequential but has sequential body" },
-  { "XSST0005", "expression cannot be both updating and sequential" },
-  { "XSST0006", "sequential expression not allowed here" },
-  { "XSST0007", "\"$1\": variable not assignable" },
-  { "XSST0008", "\"while\" statement with non-sequential body" },
-  { "XSST0009", "\"break loop\" statement not inside while statement" },
-  { "XSST0010", "\"continue loop\" statement not inside while statement" },
-  { "XTDE1310", "\"$1\": picture string does not satisfy format-number() function rules" },
-  { "XTDE1340", "\"$1\": invalid picture string for date/time" },
-  { "XTDE1350", "component specifier not available" },
-  { "XUDY0009", "node has no parent in \"replace\" expression (without \"value of\")" },
-  { "XUDY0014", "\"modify\" can not modify node not created by \"copy\"" },
-  { "XUDY0015", "node is target of multiple \"rename\" expressions in same query" },
-  { "XUDY0016", "node is target of multiple \"replace\" expressions (without \"value of\") in same query" },
-  { "XUDY0017", "node is target of multiple \"replace value of\" expressions in same query" },
-  { "XUDY0018", "\"$1\": function declared external, non-updating returns non-empty pending update list" },
-  { "XUDY0019", "\"$1\": function declated external, updating returns non-empty data model instance" },
-  { "XUDY0021", "updates violate constraint" },
-  { "XUDY0023", "\"$1\": namespace binding conflicts with $2=$3" },
-  { "XUDY0024", "\"$1\": namespace binding conflicts with $2=$3" },
-  { "XUDY0027", "target expression is empty sequence" },
-  { "XUDY0029", "node has no parent in \"insert\" expression (with \"before\" or \"after\")" },
-  { "XUDY0030", "insertion of attrhbute node before or after document node child" },
-  { "XUDY0031", "\"$1\": same URI used in multiple calls to fn:put() in same snapshot" },
-  { "XUST0001", "$1" },
-  { "XUST0002", "simple expression not allowed here" },
-  { "XUST0003", "multiple revalidation declarations" },
-  { "XUST0028", "\"$1\": function can not be updating with a return type" },
-  { "XUTY0004", "attribute node follows non-attribute node" },
-  { "XUTY0005", "target expression not a single element or document node" },
-  { "XUTY0006", "target expression not a single element, text, comment, or processing instruction node" },
-  { "XUTY0007", "target expression does not return a sequence of zero or more nodes" },
-  { "XUTY0008", "target expression not a single element, attribute, text, comment, or processing instruction node" },
-  { "XUTY0010", "replacement sequence does not consist of zero or more element, text, comment, or processing instruction nodes" },
-  { "XUTY0011", "replacement sequence does not consist of zero or more attribute nodes" },
-  { "XUTY0012", "multiple elements, attributes, or processing-instruction nodes returned" },
-  { "XUTY0013", "source expression of \"copy\" clause must return a single node" },
-  { "XUTY0022", "insertion of attribute node into document node" },
-  { "ZAPI0002", "XQuery compilation failed${: 1}" },
-  { "ZAPI0003", "XQuery not compiled" },
-  { "ZAPI0004", "XQuery already compiled" },
-  { "ZAPI0005", "XQuery already executing" },
-  { "ZAPI0006", "XQuery already closed" },
-  { "ZAPI0007", "cannot serialize pul" },
-  { "ZAPI0008", "can not execute a non-updating XQuery" },
-  { "ZAPI0009", "XQuery not compiled in debug mode" },
-  { "ZAPI0014", "\"$1\": invalid argument${: 2}" },
-  { "ZAPI0015", "\"$1\": createModule() function not found${: 2}" },
-  { "ZAPI0019", "\"$1\": external module already registered" },
-  { "ZAPI0020", "\"$1\": document already exists in store" },
-  { "ZAPI0021", "\"$1\": item to load is not a node" },
-  { "ZAPI0027", "cannot update dynamic context with iterators" },
-  { "ZAPI0028", "\"$1\": invalid node URI" },
-  { "ZAPI0029", "\"$1\": reference already present in the store" },
-  { "ZAPI0030", "node has no current reference" },
-  { "ZAPI0039", "XQuery has iterator already" },
-  { "ZAPI0040", "iterator is not open" },
-  { "ZAPI0041", "iterator is already open" },
-  { "ZAPI0042", "iterator is closed" },
-  { "ZAPI0070", "\"$1\": invalid serialization method for SAX" },
-  { "ZAPI0080", "can not retrieve node-reference for a node that is not in a collection." },
-  { "ZCSE0001", "\"$1\": nonexistent input field" },
-  { "ZCSE0002", "\"$1\": incompatible input field${: type=2}${, class=3}" },
-  { "ZCSE0003", "\"$1\": unrecognized class field" },
-  { "ZCSE0004", "\"$1\": unresolved field reference" },
-  { "ZCSE0005", "class version for \"$1\" ($2) is too new; supported version is $3" },
-  { "ZCSE0006", "class version for \"$1\" ($2) is too old; minimum supported version is $3; use Zorba 0x$4 instead" },
-  { "ZCSE0007", "input archive used for out serialization" },
-  { "ZCSE0008", "output archive used for in serialization" },
-  { "ZCSE0009", "\"$1\": class not serializable" },
-  { "ZCSE0010", "\"$1\": item type not serializable; only atomic, node, function, and error items are supported" },
-  { "ZCSE0011", "input archive not Zorba archive" },
-  { "ZCSE0012", "\"$1\": incompatible archive version; expected \"$2\"" },
-  { "ZCSE0013", "failed to load pre-compiled query${: 1}" },
-  { "ZCSE0014", "cannot save execution plan: infinite circular dependencies" },
-  { "ZCSE0015", "cannot load execution plan: incompatible between 32/64 bits or little/big-endian" },
-  { "ZCSE0016", "cannot load execution plan saved from release mode Zorba into debug mode Zorba" },
-  { "ZCSE0017", "cannot load execution plan saved from debug mode Zorba into release mode Zorba" },
-  { "ZDDY0001", "\"$1\": collection not declared" },
-  { "ZDDY0002", "\"$1\": collection already exists" },
-  { "ZDDY0003", "\"$1\": collection does not exist" },
-  { "ZDDY0004", "\"$1\": can not update constant collection" },
-  { "ZDDY0005", "\"$1\": illegal insert into append-only collection" },
-  { "ZDDY0006", "\"$1\": illegal insert into queue collection" },
-  { "ZDDY0007", "\"$1\": illegal delete from append-only collection" },
-  { "ZDDY0008", "\"$1\": illegal delete from queue collection" },
-  { "ZDDY0009", "\"$1\": not all nodes to delete are at the beginning of this queue collection" },
-  { "ZDDY0010", "\"$1\": illegal update of read-only nodes" },
-  { "ZDDY0011", "\"$1\": collection does not contain node" },
-  { "ZDDY0012", "\"$1\": illegal $2 into unordered collection" },
-  { "ZDDY0013", "\"$1\": can not delete collection because indexes reference it" },
-  { "ZDDY0014", "\"$1\": can not delete collection because integrity constraints reference it" },
-  { "ZDDY0015", "\"$1\": can not delete collection because there are references to its nodes" },
-  { "ZDDY0016", "\"$1\": multiple attemps to create a collection in the same snapshot" },
-  { "ZDDY0017", "node does not belong to any collection" },
-  { "ZDDY0018", "all nodes must be in same collection" },
-  { "ZDDY0020", "\"$1\": index domain expression yields nodes that are not in collection" },
-  { "ZDDY0021", "\"$1\": undeclared index" },
-  { "ZDDY0022", "\"$1\": index already exists" },
-  { "ZDDY0023", "\"$1\": index does not exist" },
-  { "ZDDY0024", "\"$1\": index uniqueness violation" },
-  { "ZDDY0025", "${\"1\": }invalid number of arguments in probe" },
-  { "ZDDY0026", "\"$1\": index range probe not allowed" },
-  { "ZDDY0027", "\"$1\": index multiple creates" },
-  { "ZDDY0028", "\"$1\": index domain has duplicate nodes" },
-  { "ZDDY0029", "\"$1\": index point-general probe not allowed" },
-  { "ZDDY0030", "\"$1\": index range-general probe not allowed" },
-  { "ZDDY0031", "\"$1\": integrity constraint is not declared" },
-  { "ZDDY0032", "\"$1\": integrity constraint is not activated" },
-  { "ZDDY0033", "\"$1\": integrity constraint not met for collection \"$2\"" },
-  { "ZDDY0034", "\"$1\": index range-value probe has search keys with incompatible types" },
-  { "ZDST0001", "\"$1\": collection already declared" },
-  { "ZDST0002", "\"$1\": collection already imported into module \"$2\"" },
-  { "ZDST0003", "\"$1\": collection declaration not allowed in main module" },
-  { "ZDST0004", "collection multiple property values" },
-  { "ZDST0006", "collection invalid property value" },
-  { "ZDST0007", "\"$1\": collection declaration in foreign module" },
-  { "ZDST0021", "\"$1\": index already declared" },
-  { "ZDST0022", "\"$1\": index already imported into module \"$2\"" },
-  { "ZDST0023", "\"$1\": index declaration not allowed in main module" },
-  { "ZDST0024", "index multiple property values" },
-  { "ZDST0026", "index invalid property value" },
-  { "ZDST0027", "\"$1\": index bad key type" },
-  { "ZDST0028", "\"$1\": index not deterministic" },
-  { "ZDST0029", "\"$1\": index invalid data source" },
-  { "ZDST0030", "\"$1\": index non-constant data source" },
-  { "ZDST0031", "\"$1\": index has free vars" },
-  { "ZDST0032", "\"$1\": index references context item" },
-  { "ZDST0033", "\"$1\": index non-simple expression" },
-  { "ZDST0034", "\"$1\": index can not do automatic maintenance" },
-  { "ZDST0035", "\"$1\": index general multikey" },
-  { "ZDST0036", "\"$1\": index declaration in foreign module" },
-  { "ZDST0041", "\"$1\": integrity constraint already declared" },
-  { "ZDST0044", "\"$1\": integrity constraint declaration not allowed in main module" },
-  { "ZDST0048", "\"$1\": integrity constraint declaration in foreign module" },
-  { "ZDST0060", "\"$1\": feature not supported; $2" },
-  { "ZDTY0001", "\"$1\": invalid node type in collection \"$2\"" },
-  { "ZDTY0010", "\"$1\": index domain expression yields a non-node item" },
-  { "ZDTY0011", "result of some key expression of index $1 does not match its declared type" },
-  { "ZDTY0012", "\"$1\": general range index key item has type for which no ordering relationship exists" },
-#if defined(ZORBA_WITH_DEBUGGER)
-  { "ZGDB0001", "" },
-#endif
-  { "ZOSE0001", "\"$1\": file not found" },
-  { "ZOSE0002", "\"$1\": not plain file" },
-  { "ZOSE0003", "stream read failure" },
-  { "ZOSE0004", "${\"1\": }I/O error${: 2}" },
-  { "ZOSE0005", "\"$1\": error loading dynamic library${: 2}" },
-  { "ZSTR0001", "\"$1\": index already exists" },
-  { "ZSTR0002", "\"$1\": index does not exist" },
-  { "ZSTR0003", "\"$1\": partial key insertion into index \"$2\"" },
-  { "ZSTR0004", "\"$1\": partial key deletion from index \"$2\"" },
-  { "ZSTR0005", "\"$1\": partial key probe into index \"$2\"" },
-  { "ZSTR0006", "for index \"$1\": $2" },
-  { "ZSTR0007", "\"$1\": unsupported probe condition for index \"$2\"" },
-  { "ZSTR0008", "\"$1\": collection already exists" },
-  { "ZSTR0009", "\"$1\": collection not found" },
-  { "ZSTR0010", "can not insert node into colletion \"$1\" because it already belongs to collection \"$2\"" },
-  { "ZSTR0011", "non-root node can not be inserted into collection \"$1\"" },
-  { "ZSTR0012", "non-node item used with collection \"$1\"" },
-  { "ZSTR0015", "\"$1\": integrity constraint already exists" },
-  { "ZSTR0016", "\"$1\": integrity constraint does not exist" },
-  { "ZSTR0020", "loader I/O error${: 1}" },
-  { "ZSTR0021", "loader parsing error${: 1}" },
-  { "ZSTR0030", "NodeID error${: 1}" },
-  { "ZSTR0040", "type error${: 1}" },
-  { "ZSTR0041", "NaN comparison" },
-  { "ZSTR0045", "duplicate node found in sequence" },
-  { "ZSTR0050", "\"$1\" not implemented for item type \"$2\"" },
-  { "ZSTR0055", "streamable string has already been consumed" },
-  { "ZSTR0060", "out of range: $1" },
-  { "ZWST0002", "\"$1\": unknown or unsupported annotation" },
-  { "ZWST0003", "\"$1\": function declared sequential, but has non-sequential body" },
-  { "ZWST0004", "Sequential FLWOR expr may not have the semantics you expect" },
-  { "ZXQD0001", "\"$1\": prefix not declared when calling function \"$2\" from $3" },
-  { "ZXQD0002", "\"$1\": $2" },
-  { "ZXQD0003", "inconsistent options to the parse-xml-fragment() function: $1" },
-  { "ZXQD0004", "invalid parameter: $1" },
-  { "ZXQD0005", "key with type $1 not subtype or castable to target type $2 of map ($3)" },
-  { "ZXQP0000", "no error" },
-  { "ZXQP0001", "dynamic runtime error${: 1}" },
-  { "ZXQP0002", "\"$1\": assertion failed" },
-  { "ZXQP0003", "internal error${: 1}" },
-  { "ZXQP0004", "not yet implemented: $1" },
-  { "ZXQP0005", "\"$1\": feature not enabled" },
-  { "ZXQP0007", "\"$1\": function signature does not match declaration" },
-  { "ZXQP0008", "\"$1\": function implementation not found" },
-  { "ZXQP0009", "\"$1\": function referred to by this local-name has the local-name \"$2\" instead" },
-  { "ZXQP0010", "\"$1\": builtin sequential function not implemented as sequential" },
-  { "ZXQP0013", "FxCharHeap error: $1 ($2)" },
-  { "ZXQP0016", "\"$1\": reserved module target namespace" },
-  { "ZXQP0017", "file access disabled" },
-  { "ZXQP0020", "\"$1\": invalid URI${: 2}" },
-  { "ZXQP0021", "user error" },
-  { "ZXQP0024", "XML does not match schema${: \"1\"}${ 2}" },
-  { "ZXQP0025", "item creation failed" },
-  { "ZXQP0026", "\"$1\": invalid enumerated value for $2" },
-  { "ZXQP0028", "\"$1\": target namespace not provided by module from $2" },
-  { "ZXQP0029", "\"$1\": module import not allowed" },
-  { "ZXQP0030", "deadlock" },
-  { "ZXQP0031", "malformed XQueryX XML input${: 1}" },
-  { "ZXQP0032", "error transforming XQueryX to XQuery${: 1}" },
-  { "ZXQP0036", "BreakIterator creation failed" },
-  { "ZXQP0037", "\"$1\": loaded module version \"$2\" does not match import version specification" },
-  { "ZXQP0038", "Query requires Zorba version \"$1\"; you are running Zorba \"$2\"" },
-  { "ZXQP0039", "\"$1\": invalid version specification" },
-  { "ZXQP0040", "\"$1\": function invokes a nondeterministic function but is missing the nondeterministic annotation" },
-  { "ZXQP0050", "\"$1\": feature not available" },
-  { "ZXQP0060", "\"$1\": unkown option" },
-#if !defined(ZORBA_NO_FULL_TEXT)
-  { "ZXQP8401", "\"$1\": wrong WordNet file version; should be \"$2\"" },
-#endif
-#if !defined(ZORBA_NO_FULL_TEXT)
-  { "ZXQP8402", "thesaurus data endianness does not match CPU" },
-#endif
-#if !defined(ZORBA_NO_FULL_TEXT)
-  { "ZXQP8403", "thesaurus data error${: 1}" },
-#endif
-  { "~AllMatchesHasExcludes", "AllMatches contains StringExclude" },
-  { "~AlreadySpecified", "already specified" },
-  { "~ArithOpNotDefinedBetween_23", "arithmetic operation not defined between types \"$2\" and \"$3\"" },
-  { "~AtomizationHasMoreThanOneValue", "atomization has more than one value" },
-  { "~AtomizationOfGroupByMakesMoreThanOneItem", "atomization of groupby variable produces more than one item" },
-  { "~AttributeName", "attribute name" },
-  { "~AttributeNode", "attribute node" },
-  { "~BackRef0Illegal", "\"0\": illegal backreference" },
-  { "~BackRefIllegalInCharClass", "backreference illegal in character class" },
-  { "~BadAnyURI", "invalid xs:anyURI" },
-  { "~BadArgTypeForFn_2o34o", "${\"2\": }invalid argument type for function $3()${: 4}" },
-  { "~BadCharAfter_34", "'$3': illegal character after '$4'" },
-  { "~BadCharInBraces_3", "'$3': illegal character within { }" },
-  { "~BadDecDigit_3", "'$3': invalid decimal digit" },
-  { "~BadFileURIAuthority_2", "\"$2\": invalid authority for \"file\" scheme" },
-  { "~BadHexDigit_3", "'$3': invalid hexedecimal digit" },
-  { "~BadHexSequence", "invalid hexedecimal sequence" },
-  { "~BadItem", "invalid item" },
-  { "~BadIterator", "invalid iterator" },
-  { "~BadLibraryModule", "invalid library module" },
-  { "~BadPath", "invalid path" },
-  { "~BadRegexEscape_3", "\"$3\": illegal escape character" },
-  { "~BadStreamState", "bad I/O stream state" },
-  { "~BadTokenInBraces_3", "\"$3\": illegal token within { }" },
-  { "~BadTraceStream", "trace stream not retrievable using SerializationCallback" },
-  { "~BadTypeFor_23", "\"$2\": invalid type for $3" },
-  { "~BadType_23o", "\"$2\": invalid type${: 3}" },
-  { "~BadURIScheme_3", "\"$3\": unknown URI scheme" },
-  { "~BadURISyntaxForScheme_3", "invalid URI syntax for \"$3\" scheme" },
-  { "~BadUnicodeChar_3", "\"$3\": invalid character code-point" },
-  { "~BadWordNetPartOfSpeech_2", "\"$2\": invalid part-of-speech" },
-  { "~BadWordNetPtr_2", "\"$2\": invalid pointer type" },
-  { "~BadXMLDocument_2o", "malformed XML document${ at \"2\"}" },
-  { "~BadXMLForXQDoc_3", "can not parse as XML for xqdoc: $3" },
-  { "~BadXQueryVersion", "unsupported XQuery version" },
-  { "~Base64BadChar", "invalid Base64 character" },
-  { "~Base64Equals", "in Base64, '=' must be at the end and followed by one of [AEIMQUYcgkosw048]" },
-  { "~Base64EqualsEquals", "in Base64, \"==\" must be at the end and followed by one of [AQgw]" },
-  { "~Base64Multiple4", "Base64 data must be a multiple of 4 characters" },
-  { "~BaseURI", "base URI" },
-  { "~BoxCondTooManyColumns", "box condition has more columns than index" },
-  { "~CastFromToFailed_34", "$3 to $4 cast failed" },
-  { "~CharExpected_3", "'$3' expected" },
-  { "~CloneNotImplemented", "clone() not implemented for expression" },
-  { "~ClosingBraceWithoutOpen", "'}' encountered without '{' first" },
-  { "~CollectionIteratorNotOpen", "collection iterator not open" },
-  { "~CountClause11", "\"count\" clause only available in XQuery 1.1 or later" },
-  { "~DefaultCollation", "default collation" },
-  { "~DivisionNoINF", "division can not have +-INF dividend" },
-  { "~DivisionNoNaN", "division can not involve NaN" },
-  { "~DocNodeMultipleElements", "document node has more than one element" },
-  { "~EBVNotDefSeq_5", "effective boolean value not defined for sequence of more than one item that starts with \"$5\"" },
-  { "~EffectiveBooleanValue", "effective boolean value" },
-  { "~ElementName", "element name" },
-  { "~EmptyPath", "empty path" },
-  { "~EmptySeqNoCastToQName", "empty sequence can not be cast to QName" },
-  { "~EmptySeqNoCastToTypeWithQuantOne", "empty sequence can not be cast to type with quantifier '1'" },
-  { "~EmptySeqNoFnRemoveArg", "empty sequence not allowed as 2nd argument of fn:remove()" },
-  { "~EmptySeqNoPromoteTo", "empty sequence can not be promoted to type \"$2\"" },
-  { "~EmptySeqNoSearchItem", "empty sequence not allowed as search item of fn:index-of()" },
-  { "~EmptySeqNotAsFunctionResult_23", "empty sequence not allowed as result of function $2() that returns \"$3\"" },
-  { "~EmptySequence", "empty sequence" },
-  { "~ErrorCodeMessage_12", "error $2: $3" },
-  { "~Eval11", "\"eval\" only available in XQuery 1.1 or later" },
-  { "~ExpectedNumericOrDurationType", "expected numeric or duration type" },
-  { "~ExpectedNumericType", "expected numeric type" },
-  { "~ExpectedType_5", "expected type \"$5\"" },
-  { "~ExprNoReturnUpdateList", "expression does not return a pending update list" },
-  { "~ExprReturnsTooManyUpdateLists", "expression does not return a pending update list" },
-  { "~ExternFnDeterministic", "only external functions may be declared deterministic" },
-  { "~ExternFnNondeterministic", "only external functions may be declared nondeterministic" },
-  { "~FileNotFoundOrReadable", "file not found or readable" },
-  { "~FnNilledArgNotNode", "fn:nilled() argument not a node" },
-  { "~FnOnlyInXQueryVersion_3", "function only available in XQuery $3" },
-  { "~FullTextNotEnabled", "full-text was not enabled in this build" },
-  { "~FunctionFailedErrorCodeMessage_123", "$2 failed (error $3): $4" },
-  { "~FunctionFailed_12o", "$2 failed${: 3}" },
-  { "~FunctionUndeclared_3", "function with arity $3 not declared" },
-  { "~GoodValuesAreUTF8", "valid values are: UTF-8, UTF-16" },
-  { "~GoodValuesAreXMLEtc", "valid values are: xml, html, xhtml, text, binary" },
-  { "~GoodValuesAreYesNo", "valid values are: yes, no" },
-  { "~GoodValuesAreYesNoOmit", "valid values are: yes, no, omit" },
-  { "~GroupByVarHasMoreThanOneItem_2", "\"$2\": value of groupby variable has more than one item" },
-  { "~HexBinaryMustBeEven", "HexBinary value must contain an even number of characters" },
-  { "~IncompleteKeyInIndexBuild", "incomplete key during index build" },
-  { "~IncompleteKeyInIndexRefresh", "incomplete key during index refresh" },
-  { "~LibModVersionMismatch_3", "XQuery library version can not be imported by a $3 version module" },
-  { "~ModuleDeclNotInMain", "module declaration must not be in main module" },
-  { "~ModuleNotFound", "module not found" },
-  { "~MustBeAbsoluteURI", "must be absolute" },
-  { "~MustBeNCName", "must be an xs:NCName" },
-  { "~NoAttrNodesInDocument", "document node must not contain attribute nodes" },
-  { "~NoBindURI", "namespace URI can not be bound to prefix" },
-  { "~NoCastToCInt_2", "\"$2\": 2nd operand can not be cast from \"xs:integer\" to C++ \"int\"" },
-  { "~NoCastTo_34o", "can not cast to \"$3\"${: 4}" },
-  { "~NoCastTo_45o", "can not cast to \"$4\"${: 5}" },
-  { "~NoCompareTypes_23", "can not compare item of type $2 with item of type $3" },
-  { "~NoCompareWithType_4", "can not compare for equality to type \"$4\"" },
-  { "~NoDriveSpecification", "missing drive specification" },
-  { "~NoEmptyLocalname", "local-name can not be empty" },
-  { "~NoEmptySeqAsBaseURI", "can't treat empty sequence as base URI" },
-  { "~NoEmptySeqAsCollationParam", "empty-sequence not allowed as collation parameter" },
-  { "~NoHashItemOfType_2", "can not hash item of type \"$2\"" },
-  { "~NoInputData", "no input data" },
-  { "~NoModuleURIResolver", "no module URI resolver could be retrieved using SerializationCallback" },
-  { "~NoMultiKeyNodeValues_2", "node with more than one key value found during probe on index \"$2\"" },
-  { "~NoParseFnArity", "could not parse function arity (maybe it's too large)" },
-  { "~NoRebindPrefix", "can not rebind predefined prefix" },
-  { "~NoRegisteredSerializationCallback_2", "external module \"$2\" not available using registered SerializationCallback" },
-  { "~NoResolveRelativeURI", "could not resolve relative URI" },
-  { "~NoSeqAsArithOp", "sequence of more than one item can not be operand for arithmetic operation" },
-  { "~NoSeqAsCollationParam", "sequence of more than one item not allowed as collation parameter" },
-  { "~NoSeqCastToTypeWithQuantOneOrQuestion", "sequence of more than one item can not be cast to type with quantifier '1' or '?'" },
-  { "~NoSeqForFnOp_2", "sequence of more than one item can not be operand for function \"$2()\"" },
-  { "~NoSeqInValueComp", "sequnce of more than one item can not be in value comparisons" },
-  { "~NoSeqTestedForAtomicEquiv", "sequence of more than one item can not be tested for atomic value equivalence" },
-  { "~NoSeqTypePromotion", "type promotion not possible on sequence of more than one item" },
-  { "~NoSeqTypePromotion_23", "sequence of more than one item can not be promoted to the return type \"$2\" of function $3()" },
-  { "~NoSerializationCallbackForDocColMod", "document, collection, or module resolver required but no SerializationCallback given" },
-  { "~NoSerializationCallbackForModule", "no SerializationCallback for required external module \"$2\"" },
-  { "~NoSerializationCallbackForTraceStream", "no SerializationCallback for required trace stream" },
-  { "~NoSourceURI", "no URI" },
-  { "~NoTreatAs_4", "can not treat as \"$4\"" },
-  { "~NoTypeInCtx", "undefined type in current context" },
-  { "~NoTypeInMainModule_4", "type of variable \"$4\" is not among the in-scope types of the main module" },
-  { "~NoTypeInModule_45", "type of variable \"$4\" is not among the in-scope types module \"$5\"" },
-  { "~NoTypePromotion_23", "\"$2\": can not promote to type \"$3\"" },
-  { "~NoTypePromotion_234", "\"$2\": can not promote to return type \"$3\" of function $4()" },
-  { "~NoURIAuthority", "no authority" },
-  { "~NoURIInStore", "URI for document not found in store" },
-  { "~NoURIScheme", "no URI scheme" },
-  { "~NoUntypedKeyNodeValue_2", "node with untyped key value found during probe on index \"$2\"" },
-  { "~NodeIDNeedsBytes_2", "nodeid requires more than $2 bytes" },
-  { "~NodeIDTooBig", "nodeid component too big for encoding" },
-  { "~NonClosedBackRef_3", "'$$3': non-closed backreference" },
-  { "~NonFileThesaurusURI", "non-file thesaurus URI" },
-  { "~NonLocalhostAuthority", "non-localhost authority" },
-  { "~NonexistentBackRef_3", "'$$3': non-existent backreference" },
-  { "~NotAllowedForTypeName", "not allowed for typeName (use xsd:untyped instead)" },
-  { "~NotAmongInScopeSchemaTypes", "not among in-scope schema types" },
-  { "~NotDefInDynamicCtx", "not defined in dynamic context" },
-  { "~NotDocOrElementNode", "not a document or element node" },
-  { "~NotInStaticCtx", "not found in static context" },
-  { "~NotPlainFile", "not plain file" },
-  { "~NotSpecified", "not specified" },
-  { "~OpIsSameNodeMustHaveNodes", "op:is-same-node() must have nodes as parameters" },
-  { "~OpNodeAfterMustHaveNodes", "op:node-after() must have nodes as parameters" },
-  { "~OpNodeBeforeMustHaveNodes", "op:node-before() must have nodes as parameters" },
-  { "~OperationNotDef_23", "$2 not defined for type \"$3\"" },
-  { "~OperationNotPossibleWithTypes_234", "\"$2\": operation not possible with parameters of type \"$3\" and \"$4\"" },
-  { "~OuterForClause11", "\"outer-for\" clause only available in XQuery 1.1 or later" },
-  { "~ParseFragmentOptionCombinationNotAllowed", "specifying both $2 and $3 is an error" },
-  { "~ParseFragmentOptionDSLNotAllowed", "if the e option is specified, none of the options d, s, or l may be enabled" },
-  { "~ParserInitFailed", "parser initialization failed" },
-  { "~ParserNoCreateTree", "XML tree creation failed" },
-  { "~PromotionImpossible", "promotion not possible" },
-  { "~QuotedColon_23", "\"$2\": $3" },
-  { "~SEPM0009_Not10", "the version parameter has a value other than \"1.0\" and the doctype-system parameter is specified" },
-  { "~SEPM0009_NotOmit", "the standalone attribute has a value other than \"omit\"" },
-  { "~SchemaAttributeName", "schema-attribute name" },
-  { "~SchemaElementName", "schema-element name" },
-  { "~SchemaOutOfMemory", "OutOfMemoryException during parsing" },
-  { "~SchemaParseError", "error during parsing" },
-  { "~SchemaUnexpected", "unexpected exception during parsing" },
-  { "~SearchKeyTypeMismatch_234", "\"$2\": search key type for index \"$3\" does not match expected type \"$4\"" },
-  { "~SearchKeyTypeNoProbeIndex_23", "\"$2\": search key type can not probe index \"$3\"" },
-  { "~SeqFnBody", "only a function declared sequential can have a body that is a sequential expression" },
-  { "~SeqNoCastToQName", "sequence of more than one item can not be cast to QName" },
-  { "~SingletonExpected_2o", "singleton expected${ (2)}" },
-  { "~StackOverflow", "stack overflow" },
-  { "~StartEndTagMismatch_23", "start tag \"$2\" does not match end tag \"$3\"" },
-  { "~StingLiteral", "string literal" },
-  { "~StringValue", "string value" },
-  { "~SumImpossibleWithTypes_23", "sum not possible with parameters of type \"$2\" and \"$3\"" },
-  { "~SwitchExpr11", "\"switch\" expressions only available in XQuery 1.1 or later" },
-  { "~TrailingChar_3", "trailing '$3'" },
-  { "~TryCatchExpr11", "\"try/catch\" expressions only available in XQuery 1.1 or later" },
-  { "~TwoDecimalFormatsSameName_2", "\"$2\": two decimal formats with this name" },
-  { "~TwoDefaultDecimalFormats", "two default decimal formats" },
-  { "~TypeIsNotSubtype", "item type is not a subtype of \"$3\"" },
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_BAD_ESCAPE_SEQUENCE", "unrecognized backslash escape sequence" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_BAD_INTERVAL", "error in {min,max} interval" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_INTERNAL_ERROR", "an internal ICU error (bug) was detected" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_INVALID_BACK_REF", "backreference to a non-existent capture group" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_INVALID_FLAG", "invalid value for match mode flags" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_INVALID_RANGE", "in character range [x-y], x is greater than y" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_INVALID_STATE", "RegexMatcher in invalid state for requested operation" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_LOOK_BEHIND_LIMIT", "look-behind pattern matches must have a bounded maximum length" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_MAX_LT_MIN", "in {min,max}, max is less than min" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_MISMATCHED_PAREN", "incorrectly nested parentheses" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_MISSING_CLOSE_BRACKET", "missing ']'" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_NUMBER_TOO_BIG", "decimal number is too large" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_OCTAL_TOO_BIG", "octal character constants must be <= 0377" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_PROPERTY_SYNTAX", "incorrect Unicode property" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_RULE_SYNTAX", "syntax error" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_SET_CONTAINS_STRING", "can not have UnicodeSets containing strings" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_STACK_OVERFLOW", "backtrack stack overflow" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_STOPPED_BY_CALLER", "matching operation aborted by user callback fn" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_TIME_OUT", "maximum allowed match time exceeded" },
-#endif
-#if !defined(ZORBA_NO_UNICODE)
-  { "~U_REGEX_UNIMPLEMENTED", "use of regular expression feature that is not yet implemented" },
-#endif
-  { "~UnaryArithOp", "unary arithmetic operator" },
-  { "~UnbalancedChar_3", "missing '$3'" },
-  { "~UnexpectedElement", "unexpected element" },
-  { "~VarValMustBeSingleItem_2", "\"$2\": variable value must be single item" },
-  { "~Variable", "variable" },
-  { "~VariabledHasNoValue", "variable has no value" },
-  { "~VariabledUndeclared", "undeclared variable" },
-  { "~WindowClause11", "\"window\" clause only available in XQuery 1.1 or later" },
-  { "~XMLSchema", "XML schema" },
-  { "~XQST0106_CONFLICTING", "conflicting" },
-  { "~XQST0106_THE_SAME", "the same" },
-  { "~XQueryVersionAtLeast10_2", "\"$2\": XQuery version must be at least 1.0" },
-  { "~XUST0001_CONCAT", "comma expression with updating and non-updating branches" },
-  { "~XUST0001_Generic", "updating expression illegal here" },
-  { "~XUST0001_IF", "conditional expression with updating and non-updating branch" },
-  { "~XUST0001_UDF_2", "\"$2\": function declared simple but body is updating" },
-  { "~XUST0002_Transform", "transform expression witn non-updating or vacuous modify clause" },
-  { "~XUST0002_UDF_2", "\"$2\": function declared updating but body is not updating or vacuous" },
-  { "~ZDST0060_unknown_localname", "unknown localname ($3)" },
-  { "~ZDST0060_unknown_namespace", "unknown namespace ($3)" },
-  { "~ZXQD0004_NON_NEGATIVE", "given value must be non-negative ($2)" },
-  { "~ZXQD0004_NOT_WITHIN_RANGE", "not within allowed range ($2)" },
-  { "~ZXQP0004_TypeOps_is_in_scope_ForFunctionItemTypes", "TypeOps::is_in_scope() for function-item types" },
-  { "~ZeroLenURI", "zero-length URI (and no base URI given)" },
-  { "~Zorba API error", "Zorba API error" },
-  { "~Zorba data-definition error", "Zorba data-definition error" },
-  { "~Zorba dynamic error", "Zorba dynamic error" },
-  { "~Zorba dynamic warning", "Zorba dynamic warning" },
-  { "~Zorba error", "Zorba error" },
-  { "~Zorba serialization error", "Zorba serialization error" },
-  { "~Zorba serialization warning", "Zorba serialization warning" },
-  { "~Zorba static error", "Zorba static error" },
-  { "~Zorba static warning", "Zorba static warning" },
-  { "~Zorba store error", "Zorba store error" },
-  { "~Zorba type error", "Zorba type error" },
-  { "~Zorba type warning", "Zorba type warning" },
-  { "~Zorba warning", "Zorba warning" },
-  { "~dynamic error", "dynamic error" },
-  { "~dynamic warning", "dynamic warning" },
-  { "~error", "error" },
-  { "~format_integer_bad_picture_format", "bad $picture format: $2" },
-  { "~format_integer_duplicated_optional_format_modifier", "duplicated optional format modifier '$2'" },
-  { "~format_integer_optional_format_modifier_not_closed", "bad optional format modifier ($2), cannot find closing ')' " },
-  { "~format_integer_picture_empty", "$picture parameter should not be empty" },
-  { "~format_integer_unknown_optional_format_modifier_character", "unknown optional format modifier character '$2'" },
-  { "~format_integer_value_1_10", "$value ($2) should be between 1 and 10 for this formatting picture" },
-  { "~format_integer_value_1_20", "$value ($2) should be between 1 and 20 for this formatting picture" },
-  { "~format_integer_value_gt_3000", "$value ($2) should be less than 3000 for Roman representation" },
-  { "~full-text dynamic error", "full-text dynamic error" },
-  { "~full-text dynamic warning", "full-text dynamic warning" },
-  { "~full-text static error", "full-text static error" },
-  { "~full-text static warning", "full-text static warning" },
-  { "~full-text type error", "full-text type error" },
-  { "~full-text type warning", "full-text type warning" },
-  { "~operating system error", "operating system error" },
-  { "~scripting static error", "scripting static error" },
-  { "~scripting static warning", "scripting static warning" },
-  { "~serialization error", "serialization error" },
-  { "~serialization warning", "serialization warning" },
-  { "~static error", "static error" },
-  { "~static warning", "static warning" },
-  { "~type error", "type error" },
-  { "~type warning", "type warning" },
-  { "~update dynamic error", "update dynamic error" },
-  { "~update dynamic warning", "update dynamic warning" },
-  { "~update static error", "update static error" },
-  { "~update static warning", "update static warning" },
-  { "~update type error", "update type error" },
-  { "~update type warning", "update type warning" },
-  { "~user-defined error", "user-defined error" },
-  { "~user-defined warning", "user-defined warning" },
-  { "~warning", "warning" },
-  { "~xqueryx_empty_content", "xqueryx content is empty" },
-};
-DEF_DICT_END(en);
-
-} // namespace dict
-} // namespace diagnostic
-} // namespace zorba
-/*
- * Local variables:
- * mode: c++
- * End:
- */ 
+/**
+ * Copyright 2006-2011 The FLWOR Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
+ /*
+  * THIS FILE IS GENERATED.
+  * PLEASE DO NOT EDIT.
+  */
+ 
+#include "stdafx.h"
+#include "diagnostics/dict_impl.h"
+
+namespace zorba {
+namespace diagnostic {
+namespace dict {
+
+extern entry const dict_en[] = {
+  { "FOAR0001", "division by zero" },
+  { "FOAR0002", "numeric operation overflow/underflow${: 1}" },
+  { "FOCA0001", "\"$1\": value too large for decimal" },
+  { "FOCA0002", "\"$1\": invalid lexical value${: 2}" },
+  { "FOCA0003", "\"$1\": value too large for integer" },
+  { "FOCA0005", "NaN supplied as float/double value" },
+  { "FOCA0006", "\"$1\": string to be cast to decimal has too many digits of precision" },
+  { "FOCH0001", "\"$1\": invalid code point" },
+  { "FOCH0002", "\"$1\": unsuported collation${: 2}" },
+  { "FOCH0003", "\"$1\": unsupported normalization form" },
+  { "FOCH0004", "\"$1\": collation does not support collation units" },
+  { "FODC0001", "no context document for $1() function" },
+  { "FODC0002", "\"$1\": error retrieving resource${: 2}" },
+  { "FODC0003", "function stability not defined" },
+  { "FODC0004", "\"$1\": invalid argument to fn:collection()${: 2}" },
+  { "FODC0005", "\"$1\": invalid argument to fn:doc() or fn:doc-available()" },
+  { "FODC0006", "invalid content passed to $1: $2" },
+  { "FODC0007", "\"$1\": base URI passed to fn:parse() is not a valid absolute URI" },
+  { "FODF1280", "\"$1\": invalid decimal format name for fn:format-number()" },
+  { "FODF1310", "\"$1\": invalid fn:format-number() picture string" },
+  { "FODT0001", "overflow/underflow in date/time operation" },
+  { "FODT0002", "overflow/underflow in duration operation" },
+  { "FODT0003", "\"$1\": invalid timezone value" },
+  { "FOER0000", "unidentifier error" },
+  { "FOFI0001", "\"$1\": not castable to xs:language" },
+  { "FOFI0002", "invalid argument in format-integer: $1" },
+  { "FONS0004", "\"$1\": no namespace found for prefix" },
+  { "FONS0005", "base-URI not defined in the static context" },
+  { "FORG0001", "${\"1\": }invalid value for cast/constructor${: 2}" },
+  { "FORG0002", "\"$1\": invalid argument to fn:resolve-uri()${: 2}" },
+  { "FORG0003", "fn:zero-or-one() called with a sequnce containing more than one item" },
+  { "FORG0004", "fn:one-or-more() called with a sequence containing no items" },
+  { "FORG0005", "fn:exactly-one() called with a sequence containing zero or more than one item" },
+  { "FORG0006", "$1" },
+  { "FORG0008", "\"$1\" and \"$2\": two arguments to fn:dateTime() have inconsistent timezones" },
+  { "FORG0009", "error resolving a relative URI against a base URI in fn:resolve-uri()${: 1}" },
+  { "FORX0001", "'$1': invalid regular expression flag" },
+  { "FORX0002", "\"$1\": invalid regular expression${: 2}" },
+  { "FORX0003", "\"$1\": regular expression matches zero-length string" },
+  { "FORX0004", "\"$1\": invalid replacement string${: 2}" },
+  { "FOTY0012", "\"$1\": element node of type $2 does not have a typed value" },
+  { "FOTY0013", "\"$1\": argument to fn:data() is function item" },
+  { "FOTY0014", "\"$1\": argument to fn:string() is a function item" },
+  { "FOTY0015", "\"$1\": argument to fn:deep-equal() contains a function item" },
+  { "FOUP0001", "first operand of fn:put() is not a node of a supported kind" },
+  { "FOUP0002", "second operand of fn:put() is not a valid lexical representation of the xs:anyURI type" },
+#if !defined(ZORBA_NO_FULL_TEXT)
+  { "FTDY0016", "\"$1\": invalid weight: absolute value must be in [0,1000]" },
+#endif
+#if !defined(ZORBA_NO_FULL_TEXT)
+  { "FTDY0017", "mild-not contains StringExclude" },
+#endif
+#if !defined(ZORBA_NO_FULL_TEXT)
+  { "FTDY0020", "${\"1\": }invalid wildcard syntax${: 2}" },
+#endif
+#if !defined(ZORBA_NO_FULL_TEXT)
+  { "FTST0008", "\"$1\": unknown stop-word list" },
+#endif
+#if !defined(ZORBA_NO_FULL_TEXT)
+  { "FTST0009", "\"$1\": unsupported language" },
+#endif
+#if !defined(ZORBA_NO_FULL_TEXT)
+  { "FTST0018", "\"$1\": unknown thesaurus" },
+#endif
+#if !defined(ZORBA_NO_FULL_TEXT)
+  { "FTST0019", "\"$1\": match option specified more than once" },
+#endif
+  { "SENR0001", "\"$1\": can not serialize $2" },
+  { "SEPM0004", "doctype-system parameter, or standalone parameter with a value other than \"omit\", specified" },
+  { "SEPM0009", "omit-xml-declaration parameter is \"yes\" and $1" },
+  { "SEPM0010", "the output method is \"xml\", the value of the undeclare-prefixes parameter is \"yes\", and the value of the version parameter is \"1.0\"" },
+  { "SEPM0016", "\"$1\": value for parameter \"$2\" invalid${; $3}" },
+  { "SERE0003", "serializer can't satisfy the rules for either a well-formed XML document entity or a well-formed XML external general parsed entity" },
+  { "SERE0005", "invalid NCName character" },
+  { "SERE0006", "\"$1\": invalid character for XML version $2" },
+  { "SERE0008", "\"$1\": can not encode character as character reference here" },
+  { "SERE0012", "normalization-form parameter value is fully-normalized and any relevant construct of the result begins with a combining character" },
+  { "SERE0014", "\"#$1\": character not allowed for HTML output method" },
+  { "SERE0015", "can not use '>' within processing instruction for HTML output method" },
+  { "SESU0007", "\"$1\": unsupported encoding" },
+  { "SESU0011", "\"$1\": unsupported normalization form" },
+  { "SESU0013", "\"$1\": unsupported $2 version; supported versions are: $3" },
+  { "XPDY0002", "\"$1\": $2" },
+  { "XPDY0050", "invalid treat expression type" },
+  { "XPST0001", "${\"1\": }undefined value${: 2}" },
+  { "XPST0003", "invalid expression${: 1}" },
+  { "XPST0005", "static type must not be empty-sequence()" },
+  { "XPST0008", "\"$1\": undefined $2" },
+  { "XPST0017", "\"$1\": $2" },
+  { "XPST0051", "\"$1\": not defined as atomic type${: 2}" },
+  { "XPST0080", "\"$1\": invalid type for \"cast\" or \"castable\" exression" },
+  { "XPST0081", "\"$1\": can not expand namespace prefix to URI" },
+  { "XPST0083", "\"$1\": not a string literal" },
+  { "XPTY0004", "$1" },
+  { "XPTY0018", "path expression last step must not have nodes and atomic values" },
+  { "XPTY0019", "path expression non-last step must not be an atomic value" },
+  { "XPTY0020", "axis step context item is not a node" },
+  { "XQDY0025", "\"$1\": duplicate attribute name" },
+  { "XQDY0026", "computed processing instrucion must not contain \"?>\"" },
+  { "XQDY0027", "\"$1\": unexpected validity property${: 2}" },
+  { "XQDY0041", "can not cast to xs:NCName" },
+  { "XQDY0044", "\"$1\": invalid attibute node-name" },
+  { "XQDY0061", "invalid validate expression operand${: 1}" },
+  { "XQDY0064", "\"XML\": invalid name expression" },
+  { "XQDY0072", "comment must not contain \"--\" or end with \"-\"" },
+  { "XQDY0074", "${\"1\": }can not convert to expanded QName${: 2}" },
+  { "XQDY0084", "validated element does not have a top-level element declaration in the in-scope element declarations${: 1}" },
+  { "XQDY0091", "\"xml:id\" encountered" },
+  { "XQDY0092", "\"$1\": must be either \"preserve\" or \"default\"" },
+  { "XQDY0096", "\"$1\": invalid node-name" },
+  { "XQST0009", "schema import not supported" },
+  { "XQST0012", "invalid schema definitions" },
+  { "XQST0013", "invalid pragma content" },
+  { "XQST0022", "namespace declaration attribute is not a URI literal" },
+  { "XQST0031", "\"$1\": $2" },
+  { "XQST0032", "multiple base URI declarations" },
+  { "XQST0033", "\"$1\": namespace prefix already bound to \"$2\"" },
+  { "XQST0034", "\"$1\": duplicate function declaration" },
+  { "XQST0035", "\"$1\": name previosly imported" },
+  { "XQST0036", "$1" },
+  { "XQST0038", "multiple default collation declarations" },
+  { "XQST0039", "\"$1\": duplicate parameter name" },
+  { "XQST0040", "\"$1\": non-distinct expanded attribute QName" },
+  { "XQST0045", "\"$1\": invalid function or annotation namespace" },
+  { "XQST0046", "${\"1\": }invalid URI literal${: 2}" },
+  { "XQST0047", "\"$1\": duplicate target namespace" },
+  { "XQST0048", "\"$1\": not in library namespace" },
+  { "XQST0049", "\"$1\": duplicate variable declaration" },
+  { "XQST0054", "${\"1\": }variable must not depend on itself" },
+  { "XQST0055", "multiple copy-namespaces declarations" },
+  { "XQST0057", "empty target namespace" },
+  { "XQST0058", "\"$1\": duplicate target namespace" },
+  { "XQST0059", "\"$1\": target namespace not found for schema/module${ 2}" },
+  { "XQST0060", "\"$1\": function name has a null namespace URI" },
+  { "XQST0065", "multiple ordering mode declaraions" },
+  { "XQST0066", "multiple element/type/function namespace declarations" },
+  { "XQST0067", "multiple construction declarations" },
+  { "XQST0068", "multiple boundary-space declarations" },
+  { "XQST0069", "multiple empty order declarations" },
+  { "XQST0070", "\"$1\": $2" },
+  { "XQST0071", "\"$1\": duplicate namespace declaration attribute" },
+  { "XQST0076", "\"$1\": unknown collation" },
+  { "XQST0079", "unknown pragma or empty expression" },
+  { "XQST0085", "namespace URI is empty" },
+  { "XQST0087", "\"$1\": invalid encoding" },
+  { "XQST0088", "empty target namespace literal" },
+  { "XQST0089", "\"$1\": duplicate variable name" },
+  { "XQST0090", "\"$1\": invalid character reference in XML $2" },
+  { "XQST0093", "\"$1\": module must not depend on itself" },
+  { "XQST0098", "properties \"$1\" and \"$2\", representing characters used in picture string, do not have distinct values" },
+  { "XQST0106", "$1: multiple annotations with $2 names" },
+  { "XQST0111", "$1" },
+  { "XQTY0024", "element constructor content sequence must not have an attribute node following a non-attribute node" },
+  { "XQTY0030", "validate argument must be exactly one document or element node" },
+  { "XQTY0086", "typed value of copied element or attribute node is namespace-sensitive when construction mode is preserve and copy-namespaces mode is no-preserve" },
+  { "XSST0001", "\"$1\": function cannot be declared as both updating and sequential" },
+  { "XSST0002", "\"$1\": function declared sequential but has updating body" },
+  { "XSST0003", "\"$1\": function declared updating but has sequential body" },
+  { "XSST0004", "\"$1\": function declared nonsequential but has sequential body" },
+  { "XSST0005", "expression cannot be both updating and sequential" },
+  { "XSST0006", "sequential expression not allowed here" },
+  { "XSST0007", "\"$1\": variable not assignable" },
+  { "XSST0008", "\"while\" statement with non-sequential body" },
+  { "XSST0009", "\"break loop\" statement not inside while statement" },
+  { "XSST0010", "\"continue loop\" statement not inside while statement" },
+  { "XTDE1310", "\"$1\": picture string does not satisfy format-number() function rules" },
+  { "XTDE1340", "\"$1\": invalid picture string for date/time" },
+  { "XTDE1350", "component specifier not available" },
+  { "XUDY0009", "node has no parent in \"replace\" expression (without \"value of\")" },
+  { "XUDY0014", "\"modify\" can not modify node not created by \"copy\"" },
+  { "XUDY0015", "node is target of multiple \"rename\" expressions in same query" },
+  { "XUDY0016", "node is target of multiple \"replace\" expressions (without \"value of\") in same query" },
+  { "XUDY0017", "node is target of multiple \"replace value of\" expressions in same query" },
+  { "XUDY0018", "\"$1\": function declared external, non-updating returns non-empty pending update list" },
+  { "XUDY0019", "\"$1\": function declated external, updating returns non-empty data model instance" },
+  { "XUDY0021", "updates violate constraint" },
+  { "XUDY0023", "\"$1\": namespace binding conflicts with $2=$3" },
+  { "XUDY0024", "\"$1\": namespace binding conflicts with $2=$3" },
+  { "XUDY0027", "target expression is empty sequence" },
+  { "XUDY0029", "node has no parent in \"insert\" expression (with \"before\" or \"after\")" },
+  { "XUDY0030", "insertion of attrhbute node before or after document node child" },
+  { "XUDY0031", "\"$1\": same URI used in multiple calls to fn:put() in same snapshot" },
+  { "XUST0001", "$1" },
+  { "XUST0002", "simple expression not allowed here" },
+  { "XUST0003", "multiple revalidation declarations" },
+  { "XUST0028", "\"$1\": function can not be updating with a return type" },
+  { "XUTY0004", "attribute node follows non-attribute node" },
+  { "XUTY0005", "target expression not a single element or document node" },
+  { "XUTY0006", "target expression not a single element, text, comment, or processing instruction node" },
+  { "XUTY0007", "target expression does not return a sequence of zero or more nodes" },
+  { "XUTY0008", "target expression not a single element, attribute, text, comment, or processing instruction node" },
+  { "XUTY0010", "replacement sequence does not consist of zero or more element, text, comment, or processing instruction nodes" },
+  { "XUTY0011", "replacement sequence does not consist of zero or more attribute nodes" },
+  { "XUTY0012", "multiple elements, attributes, or processing-instruction nodes returned" },
+  { "XUTY0013", "source expression of \"copy\" clause must return a single node" },
+  { "XUTY0022", "insertion of attribute node into document node" },
+  { "ZAPI0002", "XQuery compilation failed${: 1}" },
+  { "ZAPI0003", "XQuery not compiled" },
+  { "ZAPI0004", "XQuery already compiled" },
+  { "ZAPI0005", "XQuery already executing" },
+  { "ZAPI0006", "XQuery already closed" },
+  { "ZAPI0007", "cannot serialize pul" },
+  { "ZAPI0008", "can not execute a non-updating XQuery" },
+  { "ZAPI0009", "XQuery not compiled in debug mode" },
+  { "ZAPI0014", "\"$1\": invalid argument${: 2}" },
+  { "ZAPI0015", "\"$1\": createModule() function not found${: 2}" },
+  { "ZAPI0019", "\"$1\": external module already registered" },
+  { "ZAPI0020", "\"$1\": document already exists in store" },
+  { "ZAPI0021", "\"$1\": item to load is not a node" },
+  { "ZAPI0027", "cannot update dynamic context with iterators" },
+  { "ZAPI0028", "\"$1\": invalid node URI" },
+  { "ZAPI0029", "\"$1\": reference already present in the store" },
+  { "ZAPI0030", "node has no current reference" },
+  { "ZAPI0039", "XQuery has iterator already" },
+  { "ZAPI0040", "iterator is not open" },
+  { "ZAPI0041", "iterator is already open" },
+  { "ZAPI0042", "iterator is closed" },
+  { "ZAPI0070", "\"$1\": invalid serialization method for SAX" },
+  { "ZAPI0080", "can not retrieve node-reference for a node that is not in a collection." },
+  { "ZCSE0001", "\"$1\": nonexistent input field" },
+  { "ZCSE0002", "\"$1\": incompatible input field${: type=2}${, class=3}" },
+  { "ZCSE0003", "\"$1\": unrecognized class field" },
+  { "ZCSE0004", "\"$1\": unresolved field reference" },
+  { "ZCSE0005", "class version for \"$1\" ($2) is too new; supported version is $3" },
+  { "ZCSE0006", "class version for \"$1\" ($2) is too old; minimum supported version is $3; use Zorba 0x$4 instead" },
+  { "ZCSE0007", "input archive used for out serialization" },
+  { "ZCSE0008", "output archive used for in serialization" },
+  { "ZCSE0009", "\"$1\": class not serializable" },
+  { "ZCSE0010", "\"$1\": item type not serializable; only atomic, node, function, and error items are supported" },
+  { "ZCSE0011", "input archive not Zorba archive" },
+  { "ZCSE0012", "\"$1\": incompatible archive version; expected \"$2\"" },
+  { "ZCSE0013", "failed to load pre-compiled query${: 1}" },
+  { "ZCSE0014", "cannot save execution plan: infinite circular dependencies" },
+  { "ZCSE0015", "cannot load execution plan: incompatible between 32/64 bits or little/big-endian" },
+  { "ZCSE0016", "cannot load execution plan saved from release mode Zorba into debug mode Zorba" },
+  { "ZCSE0017", "cannot load execution plan saved from debug mode Zorba into release mode Zorba" },
+  { "ZDDY0001", "\"$1\": collection not declared" },
+  { "ZDDY0002", "\"$1\": collection already exists" },
+  { "ZDDY0003", "\"$1\": collection does not exist" },
+  { "ZDDY0004", "\"$1\": can not update constant collection" },
+  { "ZDDY0005", "\"$1\": illegal insert into append-only collection" },
+  { "ZDDY0006", "\"$1\": illegal insert into queue collection" },
+  { "ZDDY0007", "\"$1\": illegal delete from append-only collection" },
+  { "ZDDY0008", "\"$1\": illegal delete from queue collection" },
+  { "ZDDY0009", "\"$1\": not all nodes to delete are at the beginning of this queue collection" },
+  { "ZDDY0010", "\"$1\": illegal update of read-only nodes" },
+  { "ZDDY0011", "\"$1\": collection does not contain node" },
+  { "ZDDY0012", "\"$1\": illegal $2 into unordered collection" },
+  { "ZDDY0013", "\"$1\": can not delete collection because indexes reference it" },
+  { "ZDDY0014", "\"$1\": can not delete collection because integrity constraints reference it" },
+  { "ZDDY0015", "\"$1\": can not delete collection because there are references to its nodes" },
+  { "ZDDY0016", "\"$1\": multiple attemps to create a collection in the same snapshot" },
+  { "ZDDY0017", "node does not belong to any collection" },
+  { "ZDDY0018", "all nodes must be in same collection" },
+  { "ZDDY0020", "\"$1\": index domain expression yields nodes that are not in collection" },
+  { "ZDDY0021", "\"$1\": undeclared index" },
+  { "ZDDY0022", "\"$1\": index already exists" },
+  { "ZDDY0023", "\"$1\": index does not exist" },
+  { "ZDDY0024", "\"$1\": index uniqueness violation" },
+  { "ZDDY0025", "\"$1\": invalid number of arguments to $2 operation; given $3 expected $4" },
+  { "ZDDY0026", "\"$1\": index range probe not allowed" },
+  { "ZDDY0027", "\"$1\": index multiple creates" },
+  { "ZDDY0028", "\"$1\": index domain has duplicate nodes" },
+  { "ZDDY0029", "\"$1\": index point-general probe not allowed" },
+  { "ZDDY0030", "\"$1\": index range-general probe not allowed" },
+  { "ZDDY0031", "\"$1\": integrity constraint is not declared" },
+  { "ZDDY0032", "\"$1\": integrity constraint is not activated" },
+  { "ZDDY0033", "\"$1\": integrity constraint not met for collection \"$2\"" },
+  { "ZDDY0034", "\"$1\": index range-value probe has search keys with incompatible types" },
+  { "ZDST0001", "\"$1\": collection already declared" },
+  { "ZDST0002", "\"$1\": collection already imported into module \"$2\"" },
+  { "ZDST0003", "\"$1\": collection declaration not allowed in main module" },
+  { "ZDST0004", "collection multiple property values" },
+  { "ZDST0006", "collection invalid property value" },
+  { "ZDST0007", "\"$1\": collection declaration in foreign module" },
+  { "ZDST0021", "\"$1\": index already declared" },
+  { "ZDST0022", "\"$1\": index already imported into module \"$2\"" },
+  { "ZDST0023", "\"$1\": index declaration not allowed in main module" },
+  { "ZDST0024", "index multiple property values" },
+  { "ZDST0026", "index invalid property value" },
+  { "ZDST0027", "\"$1\": index bad key type" },
+  { "ZDST0028", "\"$1\": index not deterministic" },
+  { "ZDST0029", "\"$1\": index invalid data source" },
+  { "ZDST0030", "\"$1\": index non-constant data source" },
+  { "ZDST0031", "\"$1\": index has free vars" },
+  { "ZDST0032", "\"$1\": index references context item" },
+  { "ZDST0033", "\"$1\": index non-simple expression" },
+  { "ZDST0034", "\"$1\": index can not do automatic maintenance" },
+  { "ZDST0035", "\"$1\": index general multikey" },
+  { "ZDST0036", "\"$1\": index declaration in foreign module" },
+  { "ZDST0041", "\"$1\": integrity constraint already declared" },
+  { "ZDST0044", "\"$1\": integrity constraint declaration not allowed in main module" },
+  { "ZDST0048", "\"$1\": integrity constraint declaration in foreign module" },
+  { "ZDST0060", "\"$1\": feature not supported; $2" },
+  { "ZDTY0001", "\"$1\": invalid node type in collection \"$2\"" },
+  { "ZDTY0010", "\"$1\": index domain expression yields a non-node item" },
+  { "ZDTY0011", "result of some key expression of index $1 does not match its declared type" },
+  { "ZDTY0012", "\"$1\": general range index key item has type for which no ordering relationship exists" },
+#if defined(ZORBA_WITH_DEBUGGER)
+  { "ZGDB0001", "" },
+#endif
+  { "ZOSE0001", "\"$1\": file not found" },
+  { "ZOSE0002", "\"$1\": not plain file" },
+  { "ZOSE0003", "stream read failure" },
+  { "ZOSE0004", "${\"1\": }I/O error${: 2}" },
+  { "ZOSE0005", "\"$1\": error loading dynamic library${: 2}" },
+  { "ZSTR0001", "\"$1\": index already exists" },
+  { "ZSTR0002", "\"$1\": index does not exist" },
+  { "ZSTR0003", "\"$1\": partial key insertion into index \"$2\"" },
+  { "ZSTR0004", "\"$1\": partial key deletion from index \"$2\"" },
+  { "ZSTR0005", "\"$1\": partial key probe into index \"$2\"" },
+  { "ZSTR0006", "for index \"$1\": $2" },
+  { "ZSTR0007", "\"$1\": unsupported probe condition for index \"$2\"" },
+  { "ZSTR0008", "\"$1\": collection already exists" },
+  { "ZSTR0009", "\"$1\": collection not found" },
+  { "ZSTR0010", "can not insert node into colletion \"$1\" because it already belongs to collection \"$2\"" },
+  { "ZSTR0011", "non-root node can not be inserted into collection \"$1\"" },
+  { "ZSTR0012", "non-node item used with collection \"$1\"" },
+  { "ZSTR0015", "\"$1\": integrity constraint already exists" },
+  { "ZSTR0016", "\"$1\": integrity constraint does not exist" },
+  { "ZSTR0020", "loader I/O error${: 1}" },
+  { "ZSTR0021", "loader parsing error${: 1}" },
+  { "ZSTR0030", "NodeID error${: 1}" },
+  { "ZSTR0040", "type error${: 1}" },
+  { "ZSTR0041", "NaN comparison" },
+  { "ZSTR0045", "duplicate node found in sequence" },
+  { "ZSTR0050", "\"$1\" not implemented for item type \"$2\"" },
+  { "ZSTR0055", "streamable string has already been consumed" },
+  { "ZSTR0060", "out of range: $1" },
+  { "ZWST0002", "\"$1\": unknown or unsupported annotation" },
+  { "ZWST0003", "\"$1\": function declared sequential, but has non-sequential body" },
+  { "ZWST0004", "Sequential FLWOR expr may not have the semantics you expect" },
+  { "ZXQD0001", "\"$1\": prefix not declared when calling function \"$2\" from $3" },
+  { "ZXQD0002", "\"$1\": $2" },
+  { "ZXQD0003", "inconsistent options to the parse-xml-fragment() function: $1" },
+  { "ZXQD0004", "invalid parameter: $1" },
+  { "ZXQD0005", "key with type $1 not subtype or castable to target type $2 of map ($3)" },
+  { "ZXQP0000", "no error" },
+  { "ZXQP0001", "dynamic runtime error${: 1}" },
+  { "ZXQP0002", "\"$1\": assertion failed" },
+  { "ZXQP0003", "internal error${: 1}" },
+  { "ZXQP0004", "not yet implemented: $1" },
+  { "ZXQP0005", "\"$1\": feature not enabled" },
+  { "ZXQP0007", "\"$1\": function signature does not match declaration" },
+  { "ZXQP0008", "\"$1\": function implementation not found" },
+  { "ZXQP0009", "\"$1\": function referred to by this local-name has the local-name \"$2\" instead" },
+  { "ZXQP0010", "\"$1\": builtin sequential function not implemented as sequential" },
+  { "ZXQP0013", "FxCharHeap error: $1 ($2)" },
+  { "ZXQP0016", "\"$1\": reserved module target namespace" },
+  { "ZXQP0017", "file access disabled" },
+  { "ZXQP0020", "\"$1\": invalid URI${: 2}" },
+  { "ZXQP0021", "user error" },
+  { "ZXQP0024", "XML does not match schema${: \"1\"}${ 2}" },
+  { "ZXQP0025", "item creation failed" },
+  { "ZXQP0026", "\"$1\": invalid enumerated value for $2" },
+  { "ZXQP0028", "\"$1\": target namespace not provided by module from $2" },
+  { "ZXQP0029", "\"$1\": module import not allowed" },
+  { "ZXQP0030", "deadlock" },
+  { "ZXQP0031", "malformed XQueryX XML input${: 1}" },
+  { "ZXQP0032", "error transforming XQueryX to XQuery${: 1}" },
+  { "ZXQP0036", "BreakIterator creation failed" },
+  { "ZXQP0037", "\"$1\": loaded module version \"$2\" does not match import version specification" },
+  { "ZXQP0038", "Query requires Zorba version \"$1\"; you are running Zorba \"$2\"" },
+  { "ZXQP0039", "\"$1\": invalid version specification" },
+  { "ZXQP0040", "\"$1\": function invokes a nondeterministic function but is missing the nondeterministic annotation" },
+  { "ZXQP0050", "\"$1\": feature not available" },
+  { "ZXQP0060", "\"$1\": unkown option" },
+#if !defined(ZORBA_NO_FULL_TEXT)
+  { "ZXQP8401", "\"$1\": wrong WordNet file version; should be \"$2\"" },
+#endif
+#if !defined(ZORBA_NO_FULL_TEXT)
+  { "ZXQP8402", "thesaurus data endianness does not match CPU" },
+#endif
+#if !defined(ZORBA_NO_FULL_TEXT)
+  { "ZXQP8403", "thesaurus data error${: 1}" },
+#endif
+  { "~AllMatchesHasExcludes", "AllMatches contains StringExclude" },
+  { "~AlreadySpecified", "already specified" },
+  { "~ArithOpNotDefinedBetween_23", "arithmetic operation not defined between types \"$2\" and \"$3\"" },
+  { "~AtomizationHasMoreThanOneValue", "atomization has more than one value" },
+  { "~AtomizationOfGroupByMakesMoreThanOneItem", "atomization of groupby variable produces more than one item" },
+  { "~AttributeName", "attribute name" },
+  { "~AttributeNode", "attribute node" },
+  { "~BackRef0Illegal", "\"0\": illegal backreference" },
+  { "~BackRefIllegalInCharClass", "backreference illegal in character class" },
+  { "~BadAnyURI", "invalid xs:anyURI" },
+  { "~BadArgTypeForFn_2o34o", "${\"2\": }invalid argument type for function $3()${: 4}" },
+  { "~BadCharAfter_34", "'$3': illegal character after '$4'" },
+  { "~BadCharInBraces_3", "'$3': illegal character within { }" },
+  { "~BadDecDigit_3", "'$3': invalid decimal digit" },
+  { "~BadFileURIAuthority_2", "\"$2\": invalid authority for \"file\" scheme" },
+  { "~BadHexDigit_3", "'$3': invalid hexedecimal digit" },
+  { "~BadHexSequence", "invalid hexedecimal sequence" },
+  { "~BadItem", "invalid item" },
+  { "~BadIterator", "invalid iterator" },
+  { "~BadLibraryModule", "invalid library module" },
+  { "~BadPath", "invalid path" },
+  { "~BadRegexEscape_3", "\"$3\": illegal escape character" },
+  { "~BadStreamState", "bad I/O stream state" },
+  { "~BadTokenInBraces_3", "\"$3\": illegal token within { }" },
+  { "~BadTraceStream", "trace stream not retrievable using SerializationCallback" },
+  { "~BadTypeFor_23", "\"$2\": invalid type for $3" },
+  { "~BadType_23o", "\"$2\": invalid type${: 3}" },
+  { "~BadURIScheme_3", "\"$3\": unknown URI scheme" },
+  { "~BadURISyntaxForScheme_3", "invalid URI syntax for \"$3\" scheme" },
+  { "~BadUnicodeChar_3", "\"$3\": invalid character code-point" },
+  { "~BadWordNetPartOfSpeech_2", "\"$2\": invalid part-of-speech" },
+  { "~BadWordNetPtr_2", "\"$2\": invalid pointer type" },
+  { "~BadXMLDocument_2o", "malformed XML document${ at \"2\"}" },
+  { "~BadXMLForXQDoc_3", "can not parse as XML for xqdoc: $3" },
+  { "~BadXQueryVersion", "unsupported XQuery version" },
+  { "~Base64BadChar", "invalid Base64 character" },
+  { "~Base64Equals", "in Base64, '=' must be at the end and followed by one of [AEIMQUYcgkosw048]" },
+  { "~Base64EqualsEquals", "in Base64, \"==\" must be at the end and followed by one of [AQgw]" },
+  { "~Base64Multiple4", "Base64 data must be a multiple of 4 characters" },
+  { "~BaseURI", "base URI" },
+  { "~BoxCondTooManyColumns", "box condition has more columns than index" },
+  { "~CastFromToFailed_34", "$3 to $4 cast failed" },
+  { "~CharExpected_3", "'$3' expected" },
+  { "~CloneNotImplemented", "clone() not implemented for expression" },
+  { "~ClosingBraceWithoutOpen", "'}' encountered without '{' first" },
+  { "~CollectionIteratorNotOpen", "collection iterator not open" },
+  { "~CountClause11", "\"count\" clause only available in XQuery 1.1 or later" },
+  { "~DefaultCollation", "default collation" },
+  { "~DivisionNoINF", "division can not have +-INF dividend" },
+  { "~DivisionNoNaN", "division can not involve NaN" },
+  { "~DocNodeMultipleElements", "document node has more than one element" },
+  { "~EBVNotDefSeq_5", "effective boolean value not defined for sequence of more than one item that starts with \"$5\"" },
+  { "~EffectiveBooleanValue", "effective boolean value" },
+  { "~ElementName", "element name" },
+  { "~EmptyPath", "empty path" },
+  { "~EmptySeqNoCastToQName", "empty sequence can not be cast to QName" },
+  { "~EmptySeqNoCastToTypeWithQuantOne", "empty sequence can not be cast to type with quantifier '1'" },
+  { "~EmptySeqNoFnRemoveArg", "empty sequence not allowed as 2nd argument of fn:remove()" },
+  { "~EmptySeqNoPromoteTo", "empty sequence can not be promoted to type \"$2\"" },
+  { "~EmptySeqNoSearchItem", "empty sequence not allowed as search item of fn:index-of()" },
+  { "~EmptySeqNotAsFunctionResult_23", "empty sequence not allowed as result of function $2() that returns \"$3\"" },
+  { "~EmptySequence", "empty sequence" },
+  { "~ErrorCodeMessage_12", "error $2: $3" },
+  { "~Eval11", "\"eval\" only available in XQuery 1.1 or later" },
+  { "~ExpectedNumericOrDurationType", "expected numeric or duration type" },
+  { "~ExpectedNumericType", "expected numeric type" },
+  { "~ExpectedType_5", "expected type \"$5\"" },
+  { "~ExprNoReturnUpdateList", "expression does not return a pending update list" },
+  { "~ExprReturnsTooManyUpdateLists", "expression does not return a pending update list" },
+  { "~ExternFnDeterministic", "only external functions may be declared deterministic" },
+  { "~ExternFnNondeterministic", "only external functions may be declared nondeterministic" },
+  { "~FileNotFoundOrReadable", "file not found or readable" },
+  { "~FnNilledArgNotNode", "fn:nilled() argument not a node" },
+  { "~FnOnlyInXQueryVersion_3", "function only available in XQuery $3" },
+  { "~FullTextNotEnabled", "full-text was not enabled in this build" },
+  { "~FunctionFailedErrorCodeMessage_123", "$2 failed (error $3): $4" },
+  { "~FunctionFailed_12o", "$2 failed${: 3}" },
+  { "~FunctionUndeclared_3", "function with arity $3 not declared" },
+  { "~GoodValuesAreUTF8", "valid values are: UTF-8, UTF-16" },
+  { "~GoodValuesAreXMLEtc", "valid values are: xml, html, xhtml, text, binary" },
+  { "~GoodValuesAreYesNo", "valid values are: yes, no" },
+  { "~GoodValuesAreYesNoOmit", "valid values are: yes, no, omit" },
+  { "~GroupByVarHasMoreThanOneItem_2", "\"$2\": value of groupby variable has more than one item" },
+  { "~HexBinaryMustBeEven", "HexBinary value must contain an even number of characters" },
+  { "~IncompleteKeyInIndexBuild", "incomplete key during index build" },
+  { "~IncompleteKeyInIndexRefresh", "incomplete key during index refresh" },
+  { "~LibModVersionMismatch_3", "XQuery library version can not be imported by a $3 version module" },
+  { "~ModuleDeclNotInMain", "module declaration must not be in main module" },
+  { "~ModuleNotFound", "module not found" },
+  { "~MustBeAbsoluteURI", "must be absolute" },
+  { "~MustBeNCName", "must be an xs:NCName" },
+  { "~NoAttrNodesInDocument", "document node must not contain attribute nodes" },
+  { "~NoBindURI", "namespace URI can not be bound to prefix" },
+  { "~NoCastToCInt_2", "\"$2\": 2nd operand can not be cast from \"xs:integer\" to C++ \"int\"" },
+  { "~NoCastTo_34o", "can not cast to \"$3\"${: 4}" },
+  { "~NoCastTo_45o", "can not cast to \"$4\"${: 5}" },
+  { "~NoCompareTypes_23", "can not compare item of type $2 with item of type $3" },
+  { "~NoCompareWithType_4", "can not compare for equality to type \"$4\"" },
+  { "~NoDriveSpecification", "missing drive specification" },
+  { "~NoEmptyLocalname", "local-name can not be empty" },
+  { "~NoEmptySeqAsBaseURI", "can't treat empty sequence as base URI" },
+  { "~NoEmptySeqAsCollationParam", "empty-sequence not allowed as collation parameter" },
+  { "~NoHashItemOfType_2", "can not hash item of type \"$2\"" },
+  { "~NoInputData", "no input data" },
+  { "~NoModuleURIResolver", "no module URI resolver could be retrieved using SerializationCallback" },
+  { "~NoMultiKeyNodeValues_2", "node with more than one key value found during probe on index \"$2\"" },
+  { "~NoParseFnArity", "could not parse function arity (maybe it's too large)" },
+  { "~NoRebindPrefix", "can not rebind predefined prefix" },
+  { "~NoRegisteredSerializationCallback_2", "external module \"$2\" not available using registered SerializationCallback" },
+  { "~NoResolveRelativeURI", "could not resolve relative URI" },
+  { "~NoSeqAsArithOp", "sequence of more than one item can not be operand for arithmetic operation" },
+  { "~NoSeqAsCollationParam", "sequence of more than one item not allowed as collation parameter" },
+  { "~NoSeqCastToTypeWithQuantOneOrQuestion", "sequence of more than one item can not be cast to type with quantifier '1' or '?'" },
+  { "~NoSeqForFnOp_2", "sequence of more than one item can not be operand for function \"$2()\"" },
+  { "~NoSeqInValueComp", "sequnce of more than one item can not be in value comparisons" },
+  { "~NoSeqTestedForAtomicEquiv", "sequence of more than one item can not be tested for atomic value equivalence" },
+  { "~NoSeqTypePromotion", "type promotion not possible on sequence of more than one item" },
+  { "~NoSeqTypePromotion_23", "sequence of more than one item can not be promoted to the return type \"$2\" of function $3()" },
+  { "~NoSerializationCallbackForDocColMod", "document, collection, or module resolver required but no SerializationCallback given" },
+  { "~NoSerializationCallbackForModule", "no SerializationCallback for required external module \"$2\"" },
+  { "~NoSerializationCallbackForTraceStream", "no SerializationCallback for required trace stream" },
+  { "~NoSourceURI", "no URI" },
+  { "~NoTreatAs_4", "can not treat as \"$4\"" },
+  { "~NoTypeInCtx", "undefined type in current context" },
+  { "~NoTypeInMainModule_4", "type of variable \"$4\" is not among the in-scope types of the main module" },
+  { "~NoTypeInModule_45", "type of variable \"$4\" is not among the in-scope types module \"$5\"" },
+  { "~NoTypePromotion_23", "\"$2\": can not promote to type \"$3\"" },
+  { "~NoTypePromotion_234", "\"$2\": can not promote to return type \"$3\" of function $4()" },
+  { "~NoURIAuthority", "no authority" },
+  { "~NoURIInStore", "URI for document not found in store" },
+  { "~NoURIScheme", "no URI scheme" },
+  { "~NoUntypedKeyNodeValue_2", "node with untyped key value found during probe on index \"$2\"" },
+  { "~NodeIDNeedsBytes_2", "nodeid requires more than $2 bytes" },
+  { "~NodeIDTooBig", "nodeid component too big for encoding" },
+  { "~NonClosedBackRef_3", "'$$3': non-closed backreference" },
+  { "~NonFileThesaurusURI", "non-file thesaurus URI" },
+  { "~NonLocalhostAuthority", "non-localhost authority" },
+  { "~NonexistentBackRef_3", "'$$3': non-existent backreference" },
+  { "~NotAllowedForTypeName", "not allowed for typeName (use xsd:untyped instead)" },
+  { "~NotAmongInScopeSchemaTypes", "not among in-scope schema types" },
+  { "~NotDefInDynamicCtx", "not defined in dynamic context" },
+  { "~NotDocOrElementNode", "not a document or element node" },
+  { "~NotInStaticCtx", "not found in static context" },
+  { "~NotPlainFile", "not plain file" },
+  { "~NotSpecified", "not specified" },
+  { "~OpIsSameNodeMustHaveNodes", "op:is-same-node() must have nodes as parameters" },
+  { "~OpNodeAfterMustHaveNodes", "op:node-after() must have nodes as parameters" },
+  { "~OpNodeBeforeMustHaveNodes", "op:node-before() must have nodes as parameters" },
+  { "~OperationNotDef_23", "$2 not defined for type \"$3\"" },
+  { "~OperationNotPossibleWithTypes_234", "\"$2\": operation not possible with parameters of type \"$3\" and \"$4\"" },
+  { "~OuterForClause11", "\"outer-for\" clause only available in XQuery 1.1 or later" },
+  { "~ParseFragmentOptionCombinationNotAllowed", "specifying both $2 and $3 is an error" },
+  { "~ParseFragmentOptionDSLNotAllowed", "if the e option is specified, none of the options d, s, or l may be enabled" },
+  { "~ParserInitFailed", "parser initialization failed" },
+  { "~ParserNoCreateTree", "XML tree creation failed" },
+  { "~PromotionImpossible", "promotion not possible" },
+  { "~QuotedColon_23", "\"$2\": $3" },
+  { "~SEPM0009_Not10", "the version parameter has a value other than \"1.0\" and the doctype-system parameter is specified" },
+  { "~SEPM0009_NotOmit", "the standalone attribute has a value other than \"omit\"" },
+  { "~SchemaAttributeName", "schema-attribute name" },
+  { "~SchemaElementName", "schema-element name" },
+  { "~SchemaOutOfMemory", "OutOfMemoryException during parsing" },
+  { "~SchemaParseError", "error during parsing" },
+  { "~SchemaUnexpected", "unexpected exception during parsing" },
+  { "~SearchKeyTypeMismatch_234", "\"$2\": search key type for index \"$3\" does not match expected type \"$4\"" },
+  { "~SearchKeyTypeNoProbeIndex_23", "\"$2\": search key type can not probe index \"$3\"" },
+  { "~SeqFnBody", "only a function declared sequential can have a body that is a sequential expression" },
+  { "~SeqNoCastToQName", "sequence of more than one item can not be cast to QName" },
+  { "~SingletonExpected_2o", "singleton expected${ (2)}" },
+  { "~StackOverflow", "stack overflow" },
+  { "~StartEndTagMismatch_23", "start tag \"$2\" does not match end tag \"$3\"" },
+  { "~StingLiteral", "string literal" },
+  { "~StringValue", "string value" },
+  { "~SumImpossibleWithTypes_23", "sum not possible with parameters of type \"$2\" and \"$3\"" },
+  { "~SwitchExpr11", "\"switch\" expressions only available in XQuery 1.1 or later" },
+  { "~TrailingChar_3", "trailing '$3'" },
+  { "~TryCatchExpr11", "\"try/catch\" expressions only available in XQuery 1.1 or later" },
+  { "~TwoDecimalFormatsSameName_2", "\"$2\": two decimal formats with this name" },
+  { "~TwoDefaultDecimalFormats", "two default decimal formats" },
+  { "~TypeIsNotSubtype", "item type is not a subtype of \"$3\"" },
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_BAD_ESCAPE_SEQUENCE", "unrecognized backslash escape sequence" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_BAD_INTERVAL", "error in {min,max} interval" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_INTERNAL_ERROR", "an internal ICU error (bug) was detected" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_INVALID_BACK_REF", "backreference to a non-existent capture group" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_INVALID_FLAG", "invalid value for match mode flags" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_INVALID_RANGE", "in character range [x-y], x is greater than y" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_INVALID_STATE", "RegexMatcher in invalid state for requested operation" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_LOOK_BEHIND_LIMIT", "look-behind pattern matches must have a bounded maximum length" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_MAX_LT_MIN", "in {min,max}, max is less than min" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_MISMATCHED_PAREN", "incorrectly nested parentheses" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_MISSING_CLOSE_BRACKET", "missing ']'" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_NUMBER_TOO_BIG", "decimal number is too large" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_OCTAL_TOO_BIG", "octal character constants must be <= 0377" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_PROPERTY_SYNTAX", "incorrect Unicode property" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_RULE_SYNTAX", "syntax error" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_SET_CONTAINS_STRING", "can not have UnicodeSets containing strings" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_STACK_OVERFLOW", "backtrack stack overflow" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_STOPPED_BY_CALLER", "matching operation aborted by user callback fn" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_TIME_OUT", "maximum allowed match time exceeded" },
+#endif
+#if !defined(ZORBA_NO_UNICODE)
+  { "~U_REGEX_UNIMPLEMENTED", "use of regular expression feature that is not yet implemented" },
+#endif
+  { "~UnaryArithOp", "unary arithmetic operator" },
+  { "~UnbalancedChar_3", "missing '$3'" },
+  { "~UnexpectedElement", "unexpected element" },
+  { "~VarValMustBeSingleItem_2", "\"$2\": variable value must be single item" },
+  { "~Variable", "variable" },
+  { "~VariabledHasNoValue", "variable has no value" },
+  { "~VariabledUndeclared", "undeclared variable" },
+  { "~WindowClause11", "\"window\" clause only available in XQuery 1.1 or later" },
+  { "~XMLSchema", "XML schema" },
+  { "~XQST0106_CONFLICTING", "conflicting" },
+  { "~XQST0106_THE_SAME", "the same" },
+  { "~XQueryVersionAtLeast10_2", "\"$2\": XQuery version must be at least 1.0" },
+  { "~XUST0001_CONCAT", "comma expression with updating and non-updating branches" },
+  { "~XUST0001_Generic", "updating expression illegal here" },
+  { "~XUST0001_IF", "conditional expression with updating and non-updating branch" },
+  { "~XUST0001_UDF_2", "\"$2\": function declared simple but body is updating" },
+  { "~XUST0002_Transform", "transform expression witn non-updating or vacuous modify clause" },
+  { "~XUST0002_UDF_2", "\"$2\": function declared updating but body is not updating or vacuous" },
+  { "~ZDST0060_unknown_localname", "unknown localname ($3)" },
+  { "~ZDST0060_unknown_namespace", "unknown namespace ($3)" },
+  { "~ZXQD0004_NON_NEGATIVE", "given value must be non-negative ($2)" },
+  { "~ZXQD0004_NOT_WITHIN_RANGE", "not within allowed range ($2)" },
+  { "~ZXQP0004_TypeOps_is_in_scope_ForFunctionItemTypes", "TypeOps::is_in_scope() for function-item types" },
+  { "~ZeroLenURI", "zero-length URI (and no base URI given)" },
+  { "~Zorba API error", "Zorba API error" },
+  { "~Zorba data-definition error", "Zorba data-definition error" },
+  { "~Zorba dynamic error", "Zorba dynamic error" },
+  { "~Zorba dynamic warning", "Zorba dynamic warning" },
+  { "~Zorba error", "Zorba error" },
+  { "~Zorba serialization error", "Zorba serialization error" },
+  { "~Zorba serialization warning", "Zorba serialization warning" },
+  { "~Zorba static error", "Zorba static error" },
+  { "~Zorba static warning", "Zorba static warning" },
+  { "~Zorba store error", "Zorba store error" },
+  { "~Zorba type error", "Zorba type error" },
+  { "~Zorba type warning", "Zorba type warning" },
+  { "~Zorba warning", "Zorba warning" },
+  { "~dynamic error", "dynamic error" },
+  { "~dynamic warning", "dynamic warning" },
+  { "~error", "error" },
+  { "~format_integer_bad_picture_format", "bad $picture format: $2" },
+  { "~format_integer_duplicated_optional_format_modifier", "duplicated optional format modifier '$2'" },
+  { "~format_integer_optional_format_modifier_not_closed", "bad optional format modifier ($2), cannot find closing ')' " },
+  { "~format_integer_picture_empty", "$picture parameter should not be empty" },
+  { "~format_integer_unknown_optional_format_modifier_character", "unknown optional format modifier character '$2'" },
+  { "~format_integer_value_1_10", "$value ($2) should be between 1 and 10 for this formatting picture" },
+  { "~format_integer_value_1_20", "$value ($2) should be between 1 and 20 for this formatting picture" },
+  { "~format_integer_value_gt_3000", "$value ($2) should be less than 3000 for Roman representation" },
+  { "~full-text dynamic error", "full-text dynamic error" },
+  { "~full-text dynamic warning", "full-text dynamic warning" },
+  { "~full-text static error", "full-text static error" },
+  { "~full-text static warning", "full-text static warning" },
+  { "~full-text type error", "full-text type error" },
+  { "~full-text type warning", "full-text type warning" },
+  { "~operating system error", "operating system error" },
+  { "~scripting static error", "scripting static error" },
+  { "~scripting static warning", "scripting static warning" },
+  { "~serialization error", "serialization error" },
+  { "~serialization warning", "serialization warning" },
+  { "~static error", "static error" },
+  { "~static warning", "static warning" },
+  { "~type error", "type error" },
+  { "~type warning", "type warning" },
+  { "~update dynamic error", "update dynamic error" },
+  { "~update dynamic warning", "update dynamic warning" },
+  { "~update static error", "update static error" },
+  { "~update static warning", "update static warning" },
+  { "~update type error", "update type error" },
+  { "~update type warning", "update type warning" },
+  { "~user-defined error", "user-defined error" },
+  { "~user-defined warning", "user-defined warning" },
+  { "~warning", "warning" },
+  { "~xqueryx_empty_content", "xqueryx content is empty" },
+};
+DEF_DICT_END(en);
+
+} // namespace dict
+} // namespace diagnostic
+} // namespace zorba
+/*
+ * Local variables:
+ * mode: c++
+ * End:
+ */ 

=== modified file 'src/functions/pregenerated/func_collections.cpp'
--- src/functions/pregenerated/func_collections.cpp	2011-10-19 15:28:51 +0000
+++ src/functions/pregenerated/func_collections.cpp	2011-11-03 16:28:29 +0000
@@ -1,876 +1,876 @@
-/*
- * Copyright 2006-2008 The FLWOR Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- 
-// ******************************************
-// *                                        *
-// * THIS IS A GENERATED FILE. DO NOT EDIT! *
-// * SEE .xml FILE WITH SAME NAME           *
-// *                                        *
-// ******************************************
-
-
-#include "stdafx.h"
-#include "runtime/collections/collections.h"
-#include "functions/func_collections.h"
-
-
-namespace zorba{
-
-
-
-PlanIter_t fn_collection::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnCollectionIterator(sctx, loc, argv);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-PlanIter_t zorba_store_collections_static_dml_collection_name::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new ZorbaCollectionNameIterator(sctx, loc, argv);
-}
-
-
-
-PlanIter_t zorba_store_indexes_static_ddl_is_available_index::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new IsAvailableIndexIterator(sctx, loc, argv);
-}
-
-PlanIter_t zorba_store_indexes_static_ddl_available_indexes::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new AvailableIndexesIterator(sctx, loc, argv);
-}
-
-PlanIter_t zorba_store_integrity_constraints_static_ddl_is_activated_integrity_constraint::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new IsActivatedICIterator(sctx, loc, argv);
-}
-
-PlanIter_t zorba_store_integrity_constraints_static_ddl_activated_integrity_constraints::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new ActivatedICsIterator(sctx, loc, argv);
-}
-
-PlanIter_t zorba_store_collections_static_ddl_is_declared_collection::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new IsDeclaredCollectionIterator(sctx, loc, argv);
-}
-
-PlanIter_t zorba_store_collections_static_ddl_declared_collections::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new DeclaredCollectionsIterator(sctx, loc, argv);
-}
-
-PlanIter_t zorba_store_indexes_static_ddl_is_declared_index::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new IsDeclaredIndexIterator(sctx, loc, argv);
-}
-
-PlanIter_t zorba_store_indexes_static_ddl_declared_indexes::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new DeclaredIndexesIterator(sctx, loc, argv);
-}
-
-PlanIter_t zorba_store_integrity_constraints_static_ddl_is_declared_integrity_constraint::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new IsDeclaredICIterator(sctx, loc, argv);
-}
-
-PlanIter_t zorba_store_integrity_constraints_static_ddl_declared_integrity_constraints::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new DeclaredICsIterator(sctx, loc, argv);
-}
-
-void populate_context_collections(static_context* sctx)
-{
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_collection,
-        (createQName("http://www.w3.org/2005/xpath-functions","","collection";), 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
-        FunctionConsts::FN_COLLECTION_0);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_collection,
-        (createQName("http://www.w3.org/2005/xpath-functions","","collection";), 
-        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
-        FunctionConsts::FN_COLLECTION_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_collection,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","collection";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_COLLECTION_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_collection,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","collection";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_index_of,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","index-of";), 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_INDEX_OF_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_index_of,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","index-of";), 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INDEX_OF_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_create,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","create";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DDL_CREATE_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_create,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","create";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DDL_CREATE_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_create,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl","","create";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_CREATE_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_create,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl","","create";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_CREATE_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_delete,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","delete";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DDL_DELETE_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_delete,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl","","delete";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_DELETE_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-nodes";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes_first,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-nodes-first";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_FIRST_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes_first,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","insert-nodes-first";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_NODES_FIRST_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes_last,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-nodes-last";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_LAST_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes_last,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","insert-nodes-last";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_NODES_LAST_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes_before,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-nodes-before";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_BEFORE_3);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes_before,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","insert-nodes-before";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_NODES_BEFORE_3);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes_after,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-nodes-after";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_AFTER_3);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes_after,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","insert-nodes-after";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_NODES_AFTER_3);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-nodes";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes_first,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-nodes-first";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_FIRST_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes_first,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","apply-insert-nodes-first";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_FIRST_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes_last,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-nodes-last";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_LAST_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes_last,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","apply-insert-nodes-last";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_LAST_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes_before,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-nodes-before";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_BEFORE_3);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes_before,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","apply-insert-nodes-before";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_BEFORE_3);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes_after,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-nodes-after";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_AFTER_3);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes_after,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","apply-insert-nodes-after";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_AFTER_3);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_nodes,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-nodes";), 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODES_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_nodes,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-nodes";), 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODES_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_node_first,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-node-first";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODE_FIRST_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_node_first,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-nodes-first";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODES_FIRST_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_node_first,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-node-first";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODE_FIRST_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_node_first,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-nodes-first";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODES_FIRST_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_node_last,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-node-last";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODE_LAST_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_node_last,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-nodes-last";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODES_LAST_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_node_last,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-node-last";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODE_LAST_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_node_last,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-nodes-last";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODES_LAST_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_collection_name,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","collection-name";), 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_COLLECTION_NAME_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_collection_name,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","collection-name";), 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_NAME_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_is_available_collection,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","is-available-collection";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DDL_IS_AVAILABLE_COLLECTION_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_is_available_collection,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl","","is-available-collection";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_IS_AVAILABLE_COLLECTION_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_available_collections,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","available-collections";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DDL_AVAILABLE_COLLECTIONS_0);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_available_collections,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl","","available-collections";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_AVAILABLE_COLLECTIONS_0);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_indexes_static_ddl_is_available_index,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/ddl","","is-available-index";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
-        FunctionConsts::ZORBA_STORE_INDEXES_STATIC_DDL_IS_AVAILABLE_INDEX_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_indexes_static_ddl_available_indexes,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/ddl","","available-indexes";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_INDEXES_STATIC_DDL_AVAILABLE_INDEXES_0);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_integrity_constraints_static_ddl_is_activated_integrity_constraint,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl","","is-activated-integrity-constraint";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
-        FunctionConsts::ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_IS_ACTIVATED_INTEGRITY_CONSTRAINT_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_integrity_constraints_static_ddl_activated_integrity_constraints,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl","","activated-integrity-constraints";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_ACTIVATED_INTEGRITY_CONSTRAINTS_0);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_is_declared_collection,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","is-declared-collection";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DDL_IS_DECLARED_COLLECTION_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_declared_collections,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","declared-collections";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DDL_DECLARED_COLLECTIONS_0);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_indexes_static_ddl_is_declared_index,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/ddl","","is-declared-index";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
-        FunctionConsts::ZORBA_STORE_INDEXES_STATIC_DDL_IS_DECLARED_INDEX_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_indexes_static_ddl_declared_indexes,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/ddl","","declared-indexes";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_INDEXES_STATIC_DDL_DECLARED_INDEXES_0);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_integrity_constraints_static_ddl_is_declared_integrity_constraint,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl","","is-declared-integrity-constraint";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
-        FunctionConsts::ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_IS_DECLARED_INTEGRITY_CONSTRAINT_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_integrity_constraints_static_ddl_declared_integrity_constraints,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl","","declared-integrity-constraints";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_STAR),
-        FunctionConsts::ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_DECLARED_INTEGRITY_CONSTRAINTS_0);
-
-  }
-
-}
-
-
-}
-
-
-
+/*
+ * Copyright 2006-2008 The FLWOR Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
+// ******************************************
+// *                                        *
+// * THIS IS A GENERATED FILE. DO NOT EDIT! *
+// * SEE .xml FILE WITH SAME NAME           *
+// *                                        *
+// ******************************************
+
+
+#include "stdafx.h"
+#include "runtime/collections/collections.h"
+#include "functions/func_collections.h"
+
+
+namespace zorba{
+
+
+
+PlanIter_t fn_collection::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnCollectionIterator(sctx, loc, argv);
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+PlanIter_t zorba_store_collections_static_dml_collection_name::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new ZorbaCollectionNameIterator(sctx, loc, argv);
+}
+
+
+
+PlanIter_t zorba_store_indexes_static_ddl_is_available_index::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new IsAvailableIndexIterator(sctx, loc, argv);
+}
+
+PlanIter_t zorba_store_indexes_static_ddl_available_indexes::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new AvailableIndexesIterator(sctx, loc, argv);
+}
+
+PlanIter_t zorba_store_integrity_constraints_static_ddl_is_activated_integrity_constraint::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new IsActivatedICIterator(sctx, loc, argv);
+}
+
+PlanIter_t zorba_store_integrity_constraints_static_ddl_activated_integrity_constraints::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new ActivatedICsIterator(sctx, loc, argv);
+}
+
+PlanIter_t zorba_store_collections_static_ddl_is_declared_collection::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new IsDeclaredCollectionIterator(sctx, loc, argv);
+}
+
+PlanIter_t zorba_store_collections_static_ddl_declared_collections::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new DeclaredCollectionsIterator(sctx, loc, argv);
+}
+
+PlanIter_t zorba_store_indexes_static_ddl_is_declared_index::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new IsDeclaredIndexIterator(sctx, loc, argv);
+}
+
+PlanIter_t zorba_store_indexes_static_ddl_declared_indexes::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new DeclaredIndexesIterator(sctx, loc, argv);
+}
+
+PlanIter_t zorba_store_integrity_constraints_static_ddl_is_declared_integrity_constraint::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new IsDeclaredICIterator(sctx, loc, argv);
+}
+
+PlanIter_t zorba_store_integrity_constraints_static_ddl_declared_integrity_constraints::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new DeclaredICsIterator(sctx, loc, argv);
+}
+
+void populate_context_collections(static_context* sctx)
+{
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_collection,
+        (createQName("http://www.w3.org/2005/xpath-functions","","collection";), 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
+        FunctionConsts::FN_COLLECTION_0);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_collection,
+        (createQName("http://www.w3.org/2005/xpath-functions","","collection";), 
+        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
+        FunctionConsts::FN_COLLECTION_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_collection,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","collection";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_COLLECTION_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_collection,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","collection";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_index_of,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","index-of";), 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_INDEX_OF_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_index_of,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","index-of";), 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INDEX_OF_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_create,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","create";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DDL_CREATE_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_create,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","create";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DDL_CREATE_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_create,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl","","create";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_CREATE_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_create,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl","","create";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_CREATE_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_delete,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","delete";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DDL_DELETE_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_delete,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl","","delete";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_DELETE_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-nodes";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes_first,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-nodes-first";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_FIRST_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes_first,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","insert-nodes-first";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_NODES_FIRST_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes_last,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-nodes-last";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_LAST_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes_last,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","insert-nodes-last";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_NODES_LAST_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes_before,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-nodes-before";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_BEFORE_3);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes_before,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","insert-nodes-before";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_NODES_BEFORE_3);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes_after,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-nodes-after";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_AFTER_3);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_insert_nodes_after,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","insert-nodes-after";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_NODES_AFTER_3);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-nodes";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes_first,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-nodes-first";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_FIRST_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes_first,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","apply-insert-nodes-first";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_FIRST_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes_last,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-nodes-last";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_LAST_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes_last,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","apply-insert-nodes-last";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_LAST_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes_before,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-nodes-before";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_BEFORE_3);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes_before,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","apply-insert-nodes-before";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_BEFORE_3);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes_after,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-nodes-after";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_AFTER_3);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_apply_insert_nodes_after,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","apply-insert-nodes-after";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_AFTER_3);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_nodes,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-nodes";), 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODES_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_nodes,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-nodes";), 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODES_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_node_first,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-node-first";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODE_FIRST_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_node_first,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-nodes-first";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODES_FIRST_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_node_first,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-node-first";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODE_FIRST_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_node_first,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-nodes-first";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODES_FIRST_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_node_last,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-node-last";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODE_LAST_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_node_last,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-nodes-last";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODES_LAST_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_node_last,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-node-last";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODE_LAST_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_delete_node_last,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-nodes-last";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODES_LAST_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_collection_name,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","collection-name";), 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_COLLECTION_NAME_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_collection_name,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","collection-name";), 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_NAME_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_is_available_collection,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","is-available-collection";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DDL_IS_AVAILABLE_COLLECTION_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_is_available_collection,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl","","is-available-collection";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_IS_AVAILABLE_COLLECTION_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_available_collections,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","available-collections";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DDL_AVAILABLE_COLLECTIONS_0);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_available_collections,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl","","available-collections";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_AVAILABLE_COLLECTIONS_0);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_indexes_static_ddl_is_available_index,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/ddl","","is-available-index";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
+        FunctionConsts::ZORBA_STORE_INDEXES_STATIC_DDL_IS_AVAILABLE_INDEX_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_indexes_static_ddl_available_indexes,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/ddl","","available-indexes";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_INDEXES_STATIC_DDL_AVAILABLE_INDEXES_0);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_integrity_constraints_static_ddl_is_activated_integrity_constraint,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl","","is-activated-integrity-constraint";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
+        FunctionConsts::ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_IS_ACTIVATED_INTEGRITY_CONSTRAINT_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_integrity_constraints_static_ddl_activated_integrity_constraints,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl","","activated-integrity-constraints";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_ACTIVATED_INTEGRITY_CONSTRAINTS_0);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_is_declared_collection,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","is-declared-collection";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DDL_IS_DECLARED_COLLECTION_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_ddl_declared_collections,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","declared-collections";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DDL_DECLARED_COLLECTIONS_0);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_indexes_static_ddl_is_declared_index,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/ddl","","is-declared-index";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
+        FunctionConsts::ZORBA_STORE_INDEXES_STATIC_DDL_IS_DECLARED_INDEX_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_indexes_static_ddl_declared_indexes,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/ddl","","declared-indexes";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_INDEXES_STATIC_DDL_DECLARED_INDEXES_0);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_integrity_constraints_static_ddl_is_declared_integrity_constraint,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl","","is-declared-integrity-constraint";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
+        FunctionConsts::ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_IS_DECLARED_INTEGRITY_CONSTRAINT_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_integrity_constraints_static_ddl_declared_integrity_constraints,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl","","declared-integrity-constraints";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_STAR),
+        FunctionConsts::ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_DECLARED_INTEGRITY_CONSTRAINTS_0);
+
+  }
+
+}
+
+
+}
+
+
+

=== modified file 'src/functions/pregenerated/func_collections.h'
--- src/functions/pregenerated/func_collections.h	2011-10-19 15:28:51 +0000
+++ src/functions/pregenerated/func_collections.h	2011-11-03 16:28:29 +0000
@@ -1,550 +1,550 @@
-/*
- * Copyright 2006-2008 The FLWOR Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- 
-// ******************************************
-// *                                        *
-// * THIS IS A GENERATED FILE. DO NOT EDIT! *
-// * SEE .xml FILE WITH SAME NAME           *
-// *                                        *
-// ******************************************
-
-
-#ifndef ZORBA_FUNCTIONS_COLLECTIONS_H
-#define ZORBA_FUNCTIONS_COLLECTIONS_H
-
-
-#include "common/shared_types.h"
-#include "functions/function_impl.h"
-
-
-namespace zorba {
-
-
-void populate_context_collections(static_context* sctx);
-
-
-
-
-//fn:collection
-class fn_collection : public function
-{
-public:
-  fn_collection(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  bool accessesDynCtx() const { return true; }
-
-  bool isSource() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-dml:collection
-class zorba_store_collections_static_dml_collection : public function
-{
-public:
-  zorba_store_collections_static_dml_collection(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  bool accessesDynCtx() const { return true; }
-
-  bool isSource() const { return true; }
-
-  FunctionConsts::AnnotationValue producesDistinctNodes() const 
-  {
-    return FunctionConsts::YES;
-  }
-
-  FunctionConsts::AnnotationValue producesSortedNodes() const 
-  {
-    return FunctionConsts::YES;
-  }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-dml:index-of
-class zorba_store_collections_static_dml_index_of : public function
-{
-public:
-  zorba_store_collections_static_dml_index_of(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-ddl:create
-class zorba_store_collections_static_ddl_create : public function
-{
-public:
-  zorba_store_collections_static_ddl_create(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  short getScriptingKind() const { return UPDATING_EXPR; }
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-ddl:delete
-class zorba_store_collections_static_ddl_delete : public function
-{
-public:
-  zorba_store_collections_static_ddl_delete(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  short getScriptingKind() const { return UPDATING_EXPR; }
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-dml:insert-nodes
-class zorba_store_collections_static_dml_insert_nodes : public function
-{
-public:
-  zorba_store_collections_static_dml_insert_nodes(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  short getScriptingKind() const { return UPDATING_EXPR; }
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-dml:insert-nodes-first
-class zorba_store_collections_static_dml_insert_nodes_first : public function
-{
-public:
-  zorba_store_collections_static_dml_insert_nodes_first(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  short getScriptingKind() const { return UPDATING_EXPR; }
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-dml:insert-nodes-last
-class zorba_store_collections_static_dml_insert_nodes_last : public function
-{
-public:
-  zorba_store_collections_static_dml_insert_nodes_last(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  short getScriptingKind() const { return UPDATING_EXPR; }
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-dml:insert-nodes-before
-class zorba_store_collections_static_dml_insert_nodes_before : public function
-{
-public:
-  zorba_store_collections_static_dml_insert_nodes_before(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  short getScriptingKind() const { return UPDATING_EXPR; }
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-dml:insert-nodes-after
-class zorba_store_collections_static_dml_insert_nodes_after : public function
-{
-public:
-  zorba_store_collections_static_dml_insert_nodes_after(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  short getScriptingKind() const { return UPDATING_EXPR; }
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-dml:apply-insert-nodes
-class zorba_store_collections_static_dml_apply_insert_nodes : public function
-{
-public:
-  zorba_store_collections_static_dml_apply_insert_nodes(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  short getScriptingKind() const { return APPLYING_EXPR; }
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-dml:apply-insert-nodes-first
-class zorba_store_collections_static_dml_apply_insert_nodes_first : public function
-{
-public:
-  zorba_store_collections_static_dml_apply_insert_nodes_first(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  short getScriptingKind() const { return APPLYING_EXPR; }
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-dml:apply-insert-nodes-last
-class zorba_store_collections_static_dml_apply_insert_nodes_last : public function
-{
-public:
-  zorba_store_collections_static_dml_apply_insert_nodes_last(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  short getScriptingKind() const { return APPLYING_EXPR; }
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-dml:apply-insert-nodes-before
-class zorba_store_collections_static_dml_apply_insert_nodes_before : public function
-{
-public:
-  zorba_store_collections_static_dml_apply_insert_nodes_before(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  short getScriptingKind() const { return APPLYING_EXPR; }
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-dml:apply-insert-nodes-after
-class zorba_store_collections_static_dml_apply_insert_nodes_after : public function
-{
-public:
-  zorba_store_collections_static_dml_apply_insert_nodes_after(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  short getScriptingKind() const { return APPLYING_EXPR; }
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-dml:delete-nodes
-class zorba_store_collections_static_dml_delete_nodes : public function
-{
-public:
-  zorba_store_collections_static_dml_delete_nodes(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  short getScriptingKind() const { return UPDATING_EXPR; }
-
-  bool accessesDynCtx() const { return true; }
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-dml:delete-node-first
-class zorba_store_collections_static_dml_delete_node_first : public function
-{
-public:
-  zorba_store_collections_static_dml_delete_node_first(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  short getScriptingKind() const { return UPDATING_EXPR; }
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-dml:delete-node-last
-class zorba_store_collections_static_dml_delete_node_last : public function
-{
-public:
-  zorba_store_collections_static_dml_delete_node_last(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  short getScriptingKind() const { return UPDATING_EXPR; }
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-dml:collection-name
-class zorba_store_collections_static_dml_collection_name : public function
-{
-public:
-  zorba_store_collections_static_dml_collection_name(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-ddl:is-available-collection
-class zorba_store_collections_static_ddl_is_available_collection : public function
-{
-public:
-  zorba_store_collections_static_ddl_is_available_collection(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-ddl:available-collections
-class zorba_store_collections_static_ddl_available_collections : public function
-{
-public:
-  zorba_store_collections_static_ddl_available_collections(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-indexes-static-ddl:is-available-index
-class zorba_store_indexes_static_ddl_is_available_index : public function
-{
-public:
-  zorba_store_indexes_static_ddl_is_available_index(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-indexes-static-ddl:available-indexes
-class zorba_store_indexes_static_ddl_available_indexes : public function
-{
-public:
-  zorba_store_indexes_static_ddl_available_indexes(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-integrity_constraints-static-ddl:is-activated-integrity-constraint
-class zorba_store_integrity_constraints_static_ddl_is_activated_integrity_constraint : public function
-{
-public:
-  zorba_store_integrity_constraints_static_ddl_is_activated_integrity_constraint(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-integrity_constraints-static-ddl:activated-integrity-constraints
-class zorba_store_integrity_constraints_static_ddl_activated_integrity_constraints : public function
-{
-public:
-  zorba_store_integrity_constraints_static_ddl_activated_integrity_constraints(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-ddl:is-declared-collection
-class zorba_store_collections_static_ddl_is_declared_collection : public function
-{
-public:
-  zorba_store_collections_static_ddl_is_declared_collection(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-ddl:declared-collections
-class zorba_store_collections_static_ddl_declared_collections : public function
-{
-public:
-  zorba_store_collections_static_ddl_declared_collections(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-indexes-static-ddl:is-declared-index
-class zorba_store_indexes_static_ddl_is_declared_index : public function
-{
-public:
-  zorba_store_indexes_static_ddl_is_declared_index(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-indexes-static-ddl:declared-indexes
-class zorba_store_indexes_static_ddl_declared_indexes : public function
-{
-public:
-  zorba_store_indexes_static_ddl_declared_indexes(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-integrity_constraints-static-ddl:is-declared-integrity-constraint
-class zorba_store_integrity_constraints_static_ddl_is_declared_integrity_constraint : public function
-{
-public:
-  zorba_store_integrity_constraints_static_ddl_is_declared_integrity_constraint(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-integrity_constraints-static-ddl:declared-integrity-constraints
-class zorba_store_integrity_constraints_static_ddl_declared_integrity_constraints : public function
-{
-public:
-  zorba_store_integrity_constraints_static_ddl_declared_integrity_constraints(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  CODEGEN_DECL();
-};
-
-
-} //namespace zorba
-
-
-#endif
-/*
- * Local variables:
- * mode: c++
- * End:
- */ 
+/*
+ * Copyright 2006-2008 The FLWOR Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
+// ******************************************
+// *                                        *
+// * THIS IS A GENERATED FILE. DO NOT EDIT! *
+// * SEE .xml FILE WITH SAME NAME           *
+// *                                        *
+// ******************************************
+
+
+#ifndef ZORBA_FUNCTIONS_COLLECTIONS_H
+#define ZORBA_FUNCTIONS_COLLECTIONS_H
+
+
+#include "common/shared_types.h"
+#include "functions/function_impl.h"
+
+
+namespace zorba {
+
+
+void populate_context_collections(static_context* sctx);
+
+
+
+
+//fn:collection
+class fn_collection : public function
+{
+public:
+  fn_collection(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  bool accessesDynCtx() const { return true; }
+
+  bool isSource() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-dml:collection
+class zorba_store_collections_static_dml_collection : public function
+{
+public:
+  zorba_store_collections_static_dml_collection(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  bool accessesDynCtx() const { return true; }
+
+  bool isSource() const { return true; }
+
+  FunctionConsts::AnnotationValue producesDistinctNodes() const 
+  {
+    return FunctionConsts::YES;
+  }
+
+  FunctionConsts::AnnotationValue producesSortedNodes() const 
+  {
+    return FunctionConsts::YES;
+  }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-dml:index-of
+class zorba_store_collections_static_dml_index_of : public function
+{
+public:
+  zorba_store_collections_static_dml_index_of(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-ddl:create
+class zorba_store_collections_static_ddl_create : public function
+{
+public:
+  zorba_store_collections_static_ddl_create(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  short getScriptingKind() const { return UPDATING_EXPR; }
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-ddl:delete
+class zorba_store_collections_static_ddl_delete : public function
+{
+public:
+  zorba_store_collections_static_ddl_delete(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  short getScriptingKind() const { return UPDATING_EXPR; }
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-dml:insert-nodes
+class zorba_store_collections_static_dml_insert_nodes : public function
+{
+public:
+  zorba_store_collections_static_dml_insert_nodes(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  short getScriptingKind() const { return UPDATING_EXPR; }
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-dml:insert-nodes-first
+class zorba_store_collections_static_dml_insert_nodes_first : public function
+{
+public:
+  zorba_store_collections_static_dml_insert_nodes_first(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  short getScriptingKind() const { return UPDATING_EXPR; }
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-dml:insert-nodes-last
+class zorba_store_collections_static_dml_insert_nodes_last : public function
+{
+public:
+  zorba_store_collections_static_dml_insert_nodes_last(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  short getScriptingKind() const { return UPDATING_EXPR; }
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-dml:insert-nodes-before
+class zorba_store_collections_static_dml_insert_nodes_before : public function
+{
+public:
+  zorba_store_collections_static_dml_insert_nodes_before(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  short getScriptingKind() const { return UPDATING_EXPR; }
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-dml:insert-nodes-after
+class zorba_store_collections_static_dml_insert_nodes_after : public function
+{
+public:
+  zorba_store_collections_static_dml_insert_nodes_after(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  short getScriptingKind() const { return UPDATING_EXPR; }
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-dml:apply-insert-nodes
+class zorba_store_collections_static_dml_apply_insert_nodes : public function
+{
+public:
+  zorba_store_collections_static_dml_apply_insert_nodes(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  short getScriptingKind() const { return APPLYING_EXPR; }
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-dml:apply-insert-nodes-first
+class zorba_store_collections_static_dml_apply_insert_nodes_first : public function
+{
+public:
+  zorba_store_collections_static_dml_apply_insert_nodes_first(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  short getScriptingKind() const { return APPLYING_EXPR; }
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-dml:apply-insert-nodes-last
+class zorba_store_collections_static_dml_apply_insert_nodes_last : public function
+{
+public:
+  zorba_store_collections_static_dml_apply_insert_nodes_last(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  short getScriptingKind() const { return APPLYING_EXPR; }
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-dml:apply-insert-nodes-before
+class zorba_store_collections_static_dml_apply_insert_nodes_before : public function
+{
+public:
+  zorba_store_collections_static_dml_apply_insert_nodes_before(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  short getScriptingKind() const { return APPLYING_EXPR; }
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-dml:apply-insert-nodes-after
+class zorba_store_collections_static_dml_apply_insert_nodes_after : public function
+{
+public:
+  zorba_store_collections_static_dml_apply_insert_nodes_after(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  short getScriptingKind() const { return APPLYING_EXPR; }
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-dml:delete-nodes
+class zorba_store_collections_static_dml_delete_nodes : public function
+{
+public:
+  zorba_store_collections_static_dml_delete_nodes(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  short getScriptingKind() const { return UPDATING_EXPR; }
+
+  bool accessesDynCtx() const { return true; }
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-dml:delete-node-first
+class zorba_store_collections_static_dml_delete_node_first : public function
+{
+public:
+  zorba_store_collections_static_dml_delete_node_first(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  short getScriptingKind() const { return UPDATING_EXPR; }
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-dml:delete-node-last
+class zorba_store_collections_static_dml_delete_node_last : public function
+{
+public:
+  zorba_store_collections_static_dml_delete_node_last(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  short getScriptingKind() const { return UPDATING_EXPR; }
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-dml:collection-name
+class zorba_store_collections_static_dml_collection_name : public function
+{
+public:
+  zorba_store_collections_static_dml_collection_name(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-ddl:is-available-collection
+class zorba_store_collections_static_ddl_is_available_collection : public function
+{
+public:
+  zorba_store_collections_static_ddl_is_available_collection(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-ddl:available-collections
+class zorba_store_collections_static_ddl_available_collections : public function
+{
+public:
+  zorba_store_collections_static_ddl_available_collections(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-indexes-static-ddl:is-available-index
+class zorba_store_indexes_static_ddl_is_available_index : public function
+{
+public:
+  zorba_store_indexes_static_ddl_is_available_index(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-indexes-static-ddl:available-indexes
+class zorba_store_indexes_static_ddl_available_indexes : public function
+{
+public:
+  zorba_store_indexes_static_ddl_available_indexes(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-integrity_constraints-static-ddl:is-activated-integrity-constraint
+class zorba_store_integrity_constraints_static_ddl_is_activated_integrity_constraint : public function
+{
+public:
+  zorba_store_integrity_constraints_static_ddl_is_activated_integrity_constraint(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-integrity_constraints-static-ddl:activated-integrity-constraints
+class zorba_store_integrity_constraints_static_ddl_activated_integrity_constraints : public function
+{
+public:
+  zorba_store_integrity_constraints_static_ddl_activated_integrity_constraints(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-ddl:is-declared-collection
+class zorba_store_collections_static_ddl_is_declared_collection : public function
+{
+public:
+  zorba_store_collections_static_ddl_is_declared_collection(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-collections-static-ddl:declared-collections
+class zorba_store_collections_static_ddl_declared_collections : public function
+{
+public:
+  zorba_store_collections_static_ddl_declared_collections(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-indexes-static-ddl:is-declared-index
+class zorba_store_indexes_static_ddl_is_declared_index : public function
+{
+public:
+  zorba_store_indexes_static_ddl_is_declared_index(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-indexes-static-ddl:declared-indexes
+class zorba_store_indexes_static_ddl_declared_indexes : public function
+{
+public:
+  zorba_store_indexes_static_ddl_declared_indexes(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-integrity_constraints-static-ddl:is-declared-integrity-constraint
+class zorba_store_integrity_constraints_static_ddl_is_declared_integrity_constraint : public function
+{
+public:
+  zorba_store_integrity_constraints_static_ddl_is_declared_integrity_constraint(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  CODEGEN_DECL();
+};
+
+
+//zorba-store-integrity_constraints-static-ddl:declared-integrity-constraints
+class zorba_store_integrity_constraints_static_ddl_declared_integrity_constraints : public function
+{
+public:
+  zorba_store_integrity_constraints_static_ddl_declared_integrity_constraints(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  CODEGEN_DECL();
+};
+
+
+} //namespace zorba
+
+
+#endif
+/*
+ * Local variables:
+ * mode: c++
+ * End:
+ */ 

=== modified file 'src/functions/pregenerated/func_sequences.cpp'
--- src/functions/pregenerated/func_sequences.cpp	2011-10-19 15:28:51 +0000
+++ src/functions/pregenerated/func_sequences.cpp	2011-11-03 16:28:29 +0000
@@ -1,775 +1,775 @@
-/*
- * Copyright 2006-2008 The FLWOR Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- 
-// ******************************************
-// *                                        *
-// * THIS IS A GENERATED FILE. DO NOT EDIT! *
-// * SEE .xml FILE WITH SAME NAME           *
-// *                                        *
-// ******************************************
-
-
-#include "stdafx.h"
-#include "runtime/sequences/sequences.h"
-#include "functions/func_sequences.h"
-#include "system/globalenv.h"
-#include "types/typeops.h"
-#include "compiler/expression/expr_base.h"
-
-
-namespace zorba{
-
-
-
-PlanIter_t op_concatenate::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnConcatIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_index_of::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnIndexOfIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_empty::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnEmptyIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_exists::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnExistsIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_distinct_values::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnDistinctValuesIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_insert_before::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnInsertBeforeIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_remove::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnRemoveIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_reverse::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnReverseIterator(sctx, loc, argv);
-}
-
-
-
-
-
-PlanIter_t fn_one_or_more::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnOneOrMoreIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_deep_equal::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnDeepEqualIterator(sctx, loc, argv);
-}
-
-
-PlanIter_t fn_avg::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnAvgIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_sum::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnSumIterator(sctx, loc, argv);
-}
-
-PlanIter_t op_sum_double::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnSumDoubleIterator(sctx, loc, argv);
-}
-
-PlanIter_t op_sum_float::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnSumFloatIterator(sctx, loc, argv);
-}
-
-PlanIter_t op_sum_decimal::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnSumDecimalIterator(sctx, loc, argv);
-}
-
-PlanIter_t op_sum_integer::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnSumIntegerIterator(sctx, loc, argv);
-}
-
-PlanIter_t op_to::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new OpToIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_id::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnIdIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_element_with_id::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnElementWithIdIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_idref::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnIdRefIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_doc::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnDocIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_doc_available::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  AnnotationHolder& ann) const
-{
-  return new FnDocAvailableIterator(sctx, loc, argv);
-}
-
-void populate_context_sequences(static_context* sctx)
-{
-  {
-    std::vector<xqtref_t> lParamTypes;
-    lParamTypes.push_back(GENV_TYPESYSTEM.ITEM_TYPE_STAR);
-
-    DECL_WITH_KIND(sctx, op_concatenate,
-        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","concatenate";), 
-        lParamTypes, GENV_TYPESYSTEM.ITEM_TYPE_STAR, true),
-        FunctionConsts::OP_CONCATENATE_N);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_index_of,
-        (createQName("http://www.w3.org/2005/xpath-functions","","index-of";), 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_ONE, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_STAR),
-        FunctionConsts::FN_INDEX_OF_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_index_of,
-        (createQName("http://www.w3.org/2005/xpath-functions","","index-of";), 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_ONE, 
-        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_STAR),
-        FunctionConsts::FN_INDEX_OF_3);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_empty,
-        (createQName("http://www.w3.org/2005/xpath-functions","","empty";), 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
-        FunctionConsts::FN_EMPTY_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_exists,
-        (createQName("http://www.w3.org/2005/xpath-functions","","exists";), 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
-        FunctionConsts::FN_EXISTS_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_distinct_values,
-        (createQName("http://www.w3.org/2005/xpath-functions","","distinct-values";), 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR, 
-        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR),
-        FunctionConsts::FN_DISTINCT_VALUES_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_distinct_values,
-        (createQName("http://www.w3.org/2005/xpath-functions","","distinct-values";), 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR),
-        FunctionConsts::FN_DISTINCT_VALUES_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_insert_before,
-        (createQName("http://www.w3.org/2005/xpath-functions","","insert-before";), 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR),
-        FunctionConsts::FN_INSERT_BEFORE_3);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_remove,
-        (createQName("http://www.w3.org/2005/xpath-functions","","remove";), 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR),
-        FunctionConsts::FN_REMOVE_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_reverse,
-        (createQName("http://www.w3.org/2005/xpath-functions","","reverse";), 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR),
-        FunctionConsts::FN_REVERSE_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_subsequence,
-        (createQName("http://www.w3.org/2005/xpath-functions","","subsequence";), 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.DOUBLE_TYPE_ONE, 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR),
-        FunctionConsts::FN_SUBSEQUENCE_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_subsequence,
-        (createQName("http://www.w3.org/2005/xpath-functions","","subsequence";), 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.DOUBLE_TYPE_ONE, 
-        GENV_TYPESYSTEM.DOUBLE_TYPE_ONE, 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR),
-        FunctionConsts::FN_SUBSEQUENCE_3);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, op_zorba_subsequence_int,
-        (createQName("http://www.zorba-xquery.com/internal/zorba-ops","","subsequence-int";), 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR),
-        FunctionConsts::OP_ZORBA_SUBSEQUENCE_INT_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, op_zorba_subsequence_int,
-        (createQName("http://www.zorba-xquery.com/internal/zorba-ops","","subsequence-int";), 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR),
-        FunctionConsts::OP_ZORBA_SUBSEQUENCE_INT_3);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, op_zorba_sequence_point_access,
-        (createQName("http://www.zorba-xquery.com/internal/zorba-ops","","sequence-point-access";), 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
-        GENV_TYPESYSTEM.ITEM_TYPE_QUESTION),
-        FunctionConsts::OP_ZORBA_SEQUENCE_POINT_ACCESS_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_zero_or_one,
-        (createQName("http://www.w3.org/2005/xpath-functions","","zero-or-one";), 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.ITEM_TYPE_QUESTION),
-        FunctionConsts::FN_ZERO_OR_ONE_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_one_or_more,
-        (createQName("http://www.w3.org/2005/xpath-functions","","one-or-more";), 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.ITEM_TYPE_PLUS),
-        FunctionConsts::FN_ONE_OR_MORE_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_deep_equal,
-        (createQName("http://www.w3.org/2005/xpath-functions","","deep-equal";), 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
-        FunctionConsts::FN_DEEP_EQUAL_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_deep_equal,
-        (createQName("http://www.w3.org/2005/xpath-functions","","deep-equal";), 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
-        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
-        FunctionConsts::FN_DEEP_EQUAL_3);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_count,
-        (createQName("http://www.w3.org/2005/xpath-functions","","count";), 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
-        FunctionConsts::FN_COUNT_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_avg,
-        (createQName("http://www.w3.org/2005/xpath-functions","","avg";), 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION),
-        FunctionConsts::FN_AVG_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_sum,
-        (createQName("http://www.w3.org/2005/xpath-functions","","sum";), 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_ONE),
-        FunctionConsts::FN_SUM_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_sum,
-        (createQName("http://www.w3.org/2005/xpath-functions","","sum";), 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION),
-        FunctionConsts::FN_SUM_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, op_sum_double,
-        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","sum_double";), 
-        GENV_TYPESYSTEM.DOUBLE_TYPE_STAR, 
-        GENV_TYPESYSTEM.DOUBLE_TYPE_ONE),
-        FunctionConsts::OP_SUM_DOUBLE_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, op_sum_double,
-        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","sum_double";), 
-        GENV_TYPESYSTEM.DOUBLE_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION),
-        FunctionConsts::OP_SUM_DOUBLE_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, op_sum_float,
-        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","sum_float";), 
-        GENV_TYPESYSTEM.FLOAT_TYPE_STAR, 
-        GENV_TYPESYSTEM.FLOAT_TYPE_ONE),
-        FunctionConsts::OP_SUM_FLOAT_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, op_sum_float,
-        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","sum_float";), 
-        GENV_TYPESYSTEM.FLOAT_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION),
-        FunctionConsts::OP_SUM_FLOAT_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, op_sum_decimal,
-        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","sum_decimal";), 
-        GENV_TYPESYSTEM.DECIMAL_TYPE_STAR, 
-        GENV_TYPESYSTEM.DECIMAL_TYPE_ONE),
-        FunctionConsts::OP_SUM_DECIMAL_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, op_sum_decimal,
-        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","sum_decimal";), 
-        GENV_TYPESYSTEM.DECIMAL_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION),
-        FunctionConsts::OP_SUM_DECIMAL_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, op_sum_integer,
-        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","sum_integer";), 
-        GENV_TYPESYSTEM.INTEGER_TYPE_STAR, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
-        FunctionConsts::OP_SUM_INTEGER_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, op_sum_integer,
-        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","sum_integer";), 
-        GENV_TYPESYSTEM.INTEGER_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION),
-        FunctionConsts::OP_SUM_INTEGER_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, op_to,
-        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","to";), 
-        GENV_TYPESYSTEM.INTEGER_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.INTEGER_TYPE_STAR),
-        FunctionConsts::OP_TO_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_id,
-        (createQName("http://www.w3.org/2005/xpath-functions","","id";), 
-        GENV_TYPESYSTEM.STRING_TYPE_STAR, 
-        GENV_TYPESYSTEM.ELEMENT_TYPE_STAR),
-        FunctionConsts::FN_ID_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_id,
-        (createQName("http://www.w3.org/2005/xpath-functions","","id";), 
-        GENV_TYPESYSTEM.STRING_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
-        GENV_TYPESYSTEM.ELEMENT_TYPE_STAR),
-        FunctionConsts::FN_ID_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_element_with_id,
-        (createQName("http://www.w3.org/2005/xpath-functions","","element-with-id";), 
-        GENV_TYPESYSTEM.STRING_TYPE_STAR, 
-        GENV_TYPESYSTEM.ELEMENT_TYPE_STAR),
-        FunctionConsts::FN_ELEMENT_WITH_ID_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_element_with_id,
-        (createQName("http://www.w3.org/2005/xpath-functions","","element-with-id";), 
-        GENV_TYPESYSTEM.STRING_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
-        GENV_TYPESYSTEM.ELEMENT_TYPE_STAR),
-        FunctionConsts::FN_ELEMENT_WITH_ID_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_idref,
-        (createQName("http://www.w3.org/2005/xpath-functions","","idref";), 
-        GENV_TYPESYSTEM.STRING_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
-        FunctionConsts::FN_IDREF_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_idref,
-        (createQName("http://www.w3.org/2005/xpath-functions","","idref";), 
-        GENV_TYPESYSTEM.STRING_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
-        FunctionConsts::FN_IDREF_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_doc,
-        (createQName("http://www.w3.org/2005/xpath-functions","","doc";), 
-        GENV_TYPESYSTEM.STRING_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.DOCUMENT_UNTYPED_TYPE_QUESTION),
-        FunctionConsts::FN_DOC_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_doc_available,
-        (createQName("http://www.w3.org/2005/xpath-functions","","doc-available";), 
-        GENV_TYPESYSTEM.STRING_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
-        FunctionConsts::FN_DOC_AVAILABLE_1);
-
-  }
-
-}
-
-
-}
-
-
-
+/*
+ * Copyright 2006-2008 The FLWOR Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
+// ******************************************
+// *                                        *
+// * THIS IS A GENERATED FILE. DO NOT EDIT! *
+// * SEE .xml FILE WITH SAME NAME           *
+// *                                        *
+// ******************************************
+
+
+#include "stdafx.h"
+#include "runtime/sequences/sequences.h"
+#include "functions/func_sequences.h"
+#include "system/globalenv.h"
+#include "types/typeops.h"
+#include "compiler/expression/expr_base.h"
+
+
+namespace zorba{
+
+
+
+PlanIter_t op_concatenate::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnConcatIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_index_of::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnIndexOfIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_empty::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnEmptyIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_exists::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnExistsIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_distinct_values::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnDistinctValuesIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_insert_before::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnInsertBeforeIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_remove::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnRemoveIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_reverse::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnReverseIterator(sctx, loc, argv);
+}
+
+
+
+
+
+PlanIter_t fn_one_or_more::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnOneOrMoreIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_deep_equal::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnDeepEqualIterator(sctx, loc, argv);
+}
+
+
+PlanIter_t fn_avg::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnAvgIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_sum::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnSumIterator(sctx, loc, argv);
+}
+
+PlanIter_t op_sum_double::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnSumDoubleIterator(sctx, loc, argv);
+}
+
+PlanIter_t op_sum_float::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnSumFloatIterator(sctx, loc, argv);
+}
+
+PlanIter_t op_sum_decimal::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnSumDecimalIterator(sctx, loc, argv);
+}
+
+PlanIter_t op_sum_integer::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnSumIntegerIterator(sctx, loc, argv);
+}
+
+PlanIter_t op_to::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new OpToIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_id::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnIdIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_element_with_id::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnElementWithIdIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_idref::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnIdRefIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_doc::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnDocIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_doc_available::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  AnnotationHolder& ann) const
+{
+  return new FnDocAvailableIterator(sctx, loc, argv);
+}
+
+void populate_context_sequences(static_context* sctx)
+{
+  {
+    std::vector<xqtref_t> lParamTypes;
+    lParamTypes.push_back(GENV_TYPESYSTEM.ITEM_TYPE_STAR);
+
+    DECL_WITH_KIND(sctx, op_concatenate,
+        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","concatenate";), 
+        lParamTypes, GENV_TYPESYSTEM.ITEM_TYPE_STAR, true),
+        FunctionConsts::OP_CONCATENATE_N);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_index_of,
+        (createQName("http://www.w3.org/2005/xpath-functions","","index-of";), 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_ONE, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_STAR),
+        FunctionConsts::FN_INDEX_OF_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_index_of,
+        (createQName("http://www.w3.org/2005/xpath-functions","","index-of";), 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_ONE, 
+        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_STAR),
+        FunctionConsts::FN_INDEX_OF_3);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_empty,
+        (createQName("http://www.w3.org/2005/xpath-functions","","empty";), 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
+        FunctionConsts::FN_EMPTY_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_exists,
+        (createQName("http://www.w3.org/2005/xpath-functions","","exists";), 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
+        FunctionConsts::FN_EXISTS_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_distinct_values,
+        (createQName("http://www.w3.org/2005/xpath-functions","","distinct-values";), 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR, 
+        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR),
+        FunctionConsts::FN_DISTINCT_VALUES_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_distinct_values,
+        (createQName("http://www.w3.org/2005/xpath-functions","","distinct-values";), 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR),
+        FunctionConsts::FN_DISTINCT_VALUES_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_insert_before,
+        (createQName("http://www.w3.org/2005/xpath-functions","","insert-before";), 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR),
+        FunctionConsts::FN_INSERT_BEFORE_3);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_remove,
+        (createQName("http://www.w3.org/2005/xpath-functions","","remove";), 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR),
+        FunctionConsts::FN_REMOVE_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_reverse,
+        (createQName("http://www.w3.org/2005/xpath-functions","","reverse";), 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR),
+        FunctionConsts::FN_REVERSE_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_subsequence,
+        (createQName("http://www.w3.org/2005/xpath-functions","","subsequence";), 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.DOUBLE_TYPE_ONE, 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR),
+        FunctionConsts::FN_SUBSEQUENCE_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_subsequence,
+        (createQName("http://www.w3.org/2005/xpath-functions","","subsequence";), 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.DOUBLE_TYPE_ONE, 
+        GENV_TYPESYSTEM.DOUBLE_TYPE_ONE, 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR),
+        FunctionConsts::FN_SUBSEQUENCE_3);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, op_zorba_subsequence_int,
+        (createQName("http://www.zorba-xquery.com/internal/zorba-ops","","subsequence-int";), 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR),
+        FunctionConsts::OP_ZORBA_SUBSEQUENCE_INT_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, op_zorba_subsequence_int,
+        (createQName("http://www.zorba-xquery.com/internal/zorba-ops","","subsequence-int";), 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR),
+        FunctionConsts::OP_ZORBA_SUBSEQUENCE_INT_3);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, op_zorba_sequence_point_access,
+        (createQName("http://www.zorba-xquery.com/internal/zorba-ops","","sequence-point-access";), 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_ONE, 
+        GENV_TYPESYSTEM.ITEM_TYPE_QUESTION),
+        FunctionConsts::OP_ZORBA_SEQUENCE_POINT_ACCESS_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_zero_or_one,
+        (createQName("http://www.w3.org/2005/xpath-functions","","zero-or-one";), 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.ITEM_TYPE_QUESTION),
+        FunctionConsts::FN_ZERO_OR_ONE_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_one_or_more,
+        (createQName("http://www.w3.org/2005/xpath-functions","","one-or-more";), 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.ITEM_TYPE_PLUS),
+        FunctionConsts::FN_ONE_OR_MORE_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_deep_equal,
+        (createQName("http://www.w3.org/2005/xpath-functions","","deep-equal";), 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
+        FunctionConsts::FN_DEEP_EQUAL_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_deep_equal,
+        (createQName("http://www.w3.org/2005/xpath-functions","","deep-equal";), 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
+        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
+        FunctionConsts::FN_DEEP_EQUAL_3);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_count,
+        (createQName("http://www.w3.org/2005/xpath-functions","","count";), 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
+        FunctionConsts::FN_COUNT_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_avg,
+        (createQName("http://www.w3.org/2005/xpath-functions","","avg";), 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION),
+        FunctionConsts::FN_AVG_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_sum,
+        (createQName("http://www.w3.org/2005/xpath-functions","","sum";), 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_ONE),
+        FunctionConsts::FN_SUM_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_sum,
+        (createQName("http://www.w3.org/2005/xpath-functions","","sum";), 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION),
+        FunctionConsts::FN_SUM_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, op_sum_double,
+        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","sum_double";), 
+        GENV_TYPESYSTEM.DOUBLE_TYPE_STAR, 
+        GENV_TYPESYSTEM.DOUBLE_TYPE_ONE),
+        FunctionConsts::OP_SUM_DOUBLE_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, op_sum_double,
+        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","sum_double";), 
+        GENV_TYPESYSTEM.DOUBLE_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION),
+        FunctionConsts::OP_SUM_DOUBLE_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, op_sum_float,
+        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","sum_float";), 
+        GENV_TYPESYSTEM.FLOAT_TYPE_STAR, 
+        GENV_TYPESYSTEM.FLOAT_TYPE_ONE),
+        FunctionConsts::OP_SUM_FLOAT_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, op_sum_float,
+        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","sum_float";), 
+        GENV_TYPESYSTEM.FLOAT_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION),
+        FunctionConsts::OP_SUM_FLOAT_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, op_sum_decimal,
+        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","sum_decimal";), 
+        GENV_TYPESYSTEM.DECIMAL_TYPE_STAR, 
+        GENV_TYPESYSTEM.DECIMAL_TYPE_ONE),
+        FunctionConsts::OP_SUM_DECIMAL_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, op_sum_decimal,
+        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","sum_decimal";), 
+        GENV_TYPESYSTEM.DECIMAL_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION),
+        FunctionConsts::OP_SUM_DECIMAL_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, op_sum_integer,
+        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","sum_integer";), 
+        GENV_TYPESYSTEM.INTEGER_TYPE_STAR, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
+        FunctionConsts::OP_SUM_INTEGER_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, op_sum_integer,
+        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","sum_integer";), 
+        GENV_TYPESYSTEM.INTEGER_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_QUESTION),
+        FunctionConsts::OP_SUM_INTEGER_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, op_to,
+        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","to";), 
+        GENV_TYPESYSTEM.INTEGER_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.INTEGER_TYPE_STAR),
+        FunctionConsts::OP_TO_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_id,
+        (createQName("http://www.w3.org/2005/xpath-functions","","id";), 
+        GENV_TYPESYSTEM.STRING_TYPE_STAR, 
+        GENV_TYPESYSTEM.ELEMENT_TYPE_STAR),
+        FunctionConsts::FN_ID_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_id,
+        (createQName("http://www.w3.org/2005/xpath-functions","","id";), 
+        GENV_TYPESYSTEM.STRING_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
+        GENV_TYPESYSTEM.ELEMENT_TYPE_STAR),
+        FunctionConsts::FN_ID_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_element_with_id,
+        (createQName("http://www.w3.org/2005/xpath-functions","","element-with-id";), 
+        GENV_TYPESYSTEM.STRING_TYPE_STAR, 
+        GENV_TYPESYSTEM.ELEMENT_TYPE_STAR),
+        FunctionConsts::FN_ELEMENT_WITH_ID_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_element_with_id,
+        (createQName("http://www.w3.org/2005/xpath-functions","","element-with-id";), 
+        GENV_TYPESYSTEM.STRING_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
+        GENV_TYPESYSTEM.ELEMENT_TYPE_STAR),
+        FunctionConsts::FN_ELEMENT_WITH_ID_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_idref,
+        (createQName("http://www.w3.org/2005/xpath-functions","","idref";), 
+        GENV_TYPESYSTEM.STRING_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
+        FunctionConsts::FN_IDREF_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_idref,
+        (createQName("http://www.w3.org/2005/xpath-functions","","idref";), 
+        GENV_TYPESYSTEM.STRING_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
+        FunctionConsts::FN_IDREF_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_doc,
+        (createQName("http://www.w3.org/2005/xpath-functions","","doc";), 
+        GENV_TYPESYSTEM.STRING_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.DOCUMENT_UNTYPED_TYPE_QUESTION),
+        FunctionConsts::FN_DOC_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_doc_available,
+        (createQName("http://www.w3.org/2005/xpath-functions","","doc-available";), 
+        GENV_TYPESYSTEM.STRING_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
+        FunctionConsts::FN_DOC_AVAILABLE_1);
+
+  }
+
+}
+
+
+}
+
+
+

=== modified file 'src/functions/pregenerated/func_sequences.h'
--- src/functions/pregenerated/func_sequences.h	2011-10-19 15:28:51 +0000
+++ src/functions/pregenerated/func_sequences.h	2011-11-03 16:28:29 +0000
@@ -1,563 +1,563 @@
-/*
- * Copyright 2006-2008 The FLWOR Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- 
-// ******************************************
-// *                                        *
-// * THIS IS A GENERATED FILE. DO NOT EDIT! *
-// * SEE .xml FILE WITH SAME NAME           *
-// *                                        *
-// ******************************************
-
-
-#ifndef ZORBA_FUNCTIONS_SEQUENCES_H
-#define ZORBA_FUNCTIONS_SEQUENCES_H
-
-
-#include "common/shared_types.h"
-#include "functions/function_impl.h"
-
-
-namespace zorba {
-
-
-void populate_context_sequences(static_context* sctx);
-
-
-
-
-//op:concatenate
-class op_concatenate : public function
-{
-public:
-  op_concatenate(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  xqtref_t getReturnType(
-        const TypeManager* tm,
-        const std::vector<xqtref_t>& arg_types) const;
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//fn:index-of
-class fn_index_of : public function
-{
-public:
-  fn_index_of(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  CODEGEN_DECL();
-};
-
-
-//fn:empty
-class fn_empty : public function
-{
-public:
-  fn_empty(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//fn:exists
-class fn_exists : public function
-{
-public:
-  fn_exists(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//fn:distinct-values
-class fn_distinct_values : public function
-{
-public:
-  fn_distinct_values(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  xqtref_t getReturnType(
-        const TypeManager* tm,
-        const std::vector<xqtref_t>& arg_types) const;
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//fn:insert-before
-class fn_insert_before : public function
-{
-public:
-  fn_insert_before(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//fn:remove
-class fn_remove : public function
-{
-public:
-  fn_remove(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  xqtref_t getReturnType(
-        const TypeManager* tm,
-        const std::vector<xqtref_t>& arg_types) const;
-
-  bool propagatesDistinctNodes(ulong producer) const { return producer == 0; }
-
-  bool propagatesSortedNodes(ulong producer) const { return producer == 0; }
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//fn:reverse
-class fn_reverse : public function
-{
-public:
-  fn_reverse(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  xqtref_t getReturnType(
-        const TypeManager* tm,
-        const std::vector<xqtref_t>& arg_types) const;
-
-  bool propagatesDistinctNodes(ulong producer) const { return producer == 0; }
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//fn:subsequence
-class fn_subsequence : public function
-{
-public:
-  fn_subsequence(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  xqtref_t getReturnType(
-        const TypeManager* tm,
-        const std::vector<xqtref_t>& arg_types) const;
-
-  bool propagatesDistinctNodes(ulong producer) const { return producer == 0; }
-
-  bool propagatesSortedNodes(ulong producer) const { return producer == 0; }
-
-  bool serializable() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//op-zorba:subsequence-int
-class op_zorba_subsequence_int : public function
-{
-public:
-  op_zorba_subsequence_int(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  xqtref_t getReturnType(
-        const TypeManager* tm,
-        const std::vector<xqtref_t>& arg_types) const;
-
-  bool propagatesDistinctNodes(ulong producer) const { return producer == 0; }
-
-  bool propagatesSortedNodes(ulong producer) const { return producer == 0; }
-
-  CODEGEN_DECL();
-};
-
-
-//op-zorba:sequence-point-access
-class op_zorba_sequence_point_access : public function
-{
-public:
-  op_zorba_sequence_point_access(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  xqtref_t getReturnType(
-        const TypeManager* tm,
-        const std::vector<xqtref_t>& arg_types) const;
-
-  bool propagatesDistinctNodes(ulong producer) const { return producer == 0; }
-
-  bool propagatesSortedNodes(ulong producer) const { return producer == 0; }
-
-  CODEGEN_DECL();
-};
-
-
-//fn:zero-or-one
-class fn_zero_or_one : public function
-{
-public:
-  fn_zero_or_one(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  xqtref_t getReturnType(
-        const TypeManager* tm,
-        const std::vector<xqtref_t>& arg_types) const;
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//fn:one-or-more
-class fn_one_or_more : public function
-{
-public:
-  fn_one_or_more(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  xqtref_t getReturnType(
-        const TypeManager* tm,
-        const std::vector<xqtref_t>& arg_types) const;
-
-  bool isMap(ulong producer) const { return producer == 0; }
-
-  bool propagatesDistinctNodes(ulong producer) const { return producer == 0; }
-
-  bool propagatesSortedNodes(ulong producer) const { return producer == 0; }
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//fn:deep-equal
-class fn_deep_equal : public function
-{
-public:
-  fn_deep_equal(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  bool accessesDynCtx() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//fn:count
-class fn_count : public function
-{
-public:
-  fn_count(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//fn:avg
-class fn_avg : public function
-{
-public:
-  fn_avg(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//fn:sum
-class fn_sum : public function
-{
-public:
-  fn_sum(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  bool specializable() const { return true; }
-
-  function* specialize( static_context* sctx,
-                        const std::vector<xqtref_t>& argTypes) const;
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//op:sum_double
-class op_sum_double : public function
-{
-public:
-  op_sum_double(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//op:sum_float
-class op_sum_float : public function
-{
-public:
-  op_sum_float(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//op:sum_decimal
-class op_sum_decimal : public function
-{
-public:
-  op_sum_decimal(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//op:sum_integer
-class op_sum_integer : public function
-{
-public:
-  op_sum_integer(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//op:to
-class op_to : public function
-{
-public:
-  op_to(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  CODEGEN_DECL();
-};
-
-
-//fn:id
-class fn_id : public function
-{
-public:
-  fn_id(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  FunctionConsts::AnnotationValue producesDistinctNodes() const 
-  {
-    return FunctionConsts::YES;
-  }
-
-  FunctionConsts::AnnotationValue producesSortedNodes() const 
-  {
-    return FunctionConsts::YES;
-  }
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//fn:element-with-id
-class fn_element_with_id : public function
-{
-public:
-  fn_element_with_id(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  FunctionConsts::AnnotationValue producesDistinctNodes() const 
-  {
-    return FunctionConsts::YES;
-  }
-
-  FunctionConsts::AnnotationValue producesSortedNodes() const 
-  {
-    return FunctionConsts::YES;
-  }
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//fn:idref
-class fn_idref : public function
-{
-public:
-  fn_idref(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  FunctionConsts::AnnotationValue producesDistinctNodes() const 
-  {
-    return FunctionConsts::YES;
-  }
-
-  FunctionConsts::AnnotationValue producesSortedNodes() const 
-  {
-    return FunctionConsts::YES;
-  }
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
-
-  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//fn:doc
-class fn_doc : public function
-{
-public:
-  fn_doc(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  bool accessesDynCtx() const { return true; }
-
-  bool isSource() const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//fn:doc-available
-class fn_doc_available : public function
-{
-public:
-  fn_doc_available(const signature& sig, FunctionConsts::FunctionKind kind)
-    : function(sig, kind) {
-
-}
-
-  CODEGEN_DECL();
-};
-
-
-} //namespace zorba
-
-
-#endif
-/*
- * Local variables:
- * mode: c++
- * End:
- */ 
+/*
+ * Copyright 2006-2008 The FLWOR Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
+// ******************************************
+// *                                        *
+// * THIS IS A GENERATED FILE. DO NOT EDIT! *
+// * SEE .xml FILE WITH SAME NAME           *
+// *                                        *
+// ******************************************
+
+
+#ifndef ZORBA_FUNCTIONS_SEQUENCES_H
+#define ZORBA_FUNCTIONS_SEQUENCES_H
+
+
+#include "common/shared_types.h"
+#include "functions/function_impl.h"
+
+
+namespace zorba {
+
+
+void populate_context_sequences(static_context* sctx);
+
+
+
+
+//op:concatenate
+class op_concatenate : public function
+{
+public:
+  op_concatenate(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  xqtref_t getReturnType(
+        const TypeManager* tm,
+        const std::vector<xqtref_t>& arg_types) const;
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//fn:index-of
+class fn_index_of : public function
+{
+public:
+  fn_index_of(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  CODEGEN_DECL();
+};
+
+
+//fn:empty
+class fn_empty : public function
+{
+public:
+  fn_empty(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//fn:exists
+class fn_exists : public function
+{
+public:
+  fn_exists(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//fn:distinct-values
+class fn_distinct_values : public function
+{
+public:
+  fn_distinct_values(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  xqtref_t getReturnType(
+        const TypeManager* tm,
+        const std::vector<xqtref_t>& arg_types) const;
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//fn:insert-before
+class fn_insert_before : public function
+{
+public:
+  fn_insert_before(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//fn:remove
+class fn_remove : public function
+{
+public:
+  fn_remove(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  xqtref_t getReturnType(
+        const TypeManager* tm,
+        const std::vector<xqtref_t>& arg_types) const;
+
+  bool propagatesDistinctNodes(ulong producer) const { return producer == 0; }
+
+  bool propagatesSortedNodes(ulong producer) const { return producer == 0; }
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//fn:reverse
+class fn_reverse : public function
+{
+public:
+  fn_reverse(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  xqtref_t getReturnType(
+        const TypeManager* tm,
+        const std::vector<xqtref_t>& arg_types) const;
+
+  bool propagatesDistinctNodes(ulong producer) const { return producer == 0; }
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//fn:subsequence
+class fn_subsequence : public function
+{
+public:
+  fn_subsequence(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  xqtref_t getReturnType(
+        const TypeManager* tm,
+        const std::vector<xqtref_t>& arg_types) const;
+
+  bool propagatesDistinctNodes(ulong producer) const { return producer == 0; }
+
+  bool propagatesSortedNodes(ulong producer) const { return producer == 0; }
+
+  bool serializable() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//op-zorba:subsequence-int
+class op_zorba_subsequence_int : public function
+{
+public:
+  op_zorba_subsequence_int(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  xqtref_t getReturnType(
+        const TypeManager* tm,
+        const std::vector<xqtref_t>& arg_types) const;
+
+  bool propagatesDistinctNodes(ulong producer) const { return producer == 0; }
+
+  bool propagatesSortedNodes(ulong producer) const { return producer == 0; }
+
+  CODEGEN_DECL();
+};
+
+
+//op-zorba:sequence-point-access
+class op_zorba_sequence_point_access : public function
+{
+public:
+  op_zorba_sequence_point_access(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  xqtref_t getReturnType(
+        const TypeManager* tm,
+        const std::vector<xqtref_t>& arg_types) const;
+
+  bool propagatesDistinctNodes(ulong producer) const { return producer == 0; }
+
+  bool propagatesSortedNodes(ulong producer) const { return producer == 0; }
+
+  CODEGEN_DECL();
+};
+
+
+//fn:zero-or-one
+class fn_zero_or_one : public function
+{
+public:
+  fn_zero_or_one(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  xqtref_t getReturnType(
+        const TypeManager* tm,
+        const std::vector<xqtref_t>& arg_types) const;
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//fn:one-or-more
+class fn_one_or_more : public function
+{
+public:
+  fn_one_or_more(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  xqtref_t getReturnType(
+        const TypeManager* tm,
+        const std::vector<xqtref_t>& arg_types) const;
+
+  bool isMap(ulong producer) const { return producer == 0; }
+
+  bool propagatesDistinctNodes(ulong producer) const { return producer == 0; }
+
+  bool propagatesSortedNodes(ulong producer) const { return producer == 0; }
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//fn:deep-equal
+class fn_deep_equal : public function
+{
+public:
+  fn_deep_equal(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//fn:count
+class fn_count : public function
+{
+public:
+  fn_count(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//fn:avg
+class fn_avg : public function
+{
+public:
+  fn_avg(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//fn:sum
+class fn_sum : public function
+{
+public:
+  fn_sum(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  bool specializable() const { return true; }
+
+  function* specialize( static_context* sctx,
+                        const std::vector<xqtref_t>& argTypes) const;
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//op:sum_double
+class op_sum_double : public function
+{
+public:
+  op_sum_double(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//op:sum_float
+class op_sum_float : public function
+{
+public:
+  op_sum_float(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//op:sum_decimal
+class op_sum_decimal : public function
+{
+public:
+  op_sum_decimal(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//op:sum_integer
+class op_sum_integer : public function
+{
+public:
+  op_sum_integer(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//op:to
+class op_to : public function
+{
+public:
+  op_to(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  CODEGEN_DECL();
+};
+
+
+//fn:id
+class fn_id : public function
+{
+public:
+  fn_id(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  FunctionConsts::AnnotationValue producesDistinctNodes() const 
+  {
+    return FunctionConsts::YES;
+  }
+
+  FunctionConsts::AnnotationValue producesSortedNodes() const 
+  {
+    return FunctionConsts::YES;
+  }
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//fn:element-with-id
+class fn_element_with_id : public function
+{
+public:
+  fn_element_with_id(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  FunctionConsts::AnnotationValue producesDistinctNodes() const 
+  {
+    return FunctionConsts::YES;
+  }
+
+  FunctionConsts::AnnotationValue producesSortedNodes() const 
+  {
+    return FunctionConsts::YES;
+  }
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//fn:idref
+class fn_idref : public function
+{
+public:
+  fn_idref(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  FunctionConsts::AnnotationValue producesDistinctNodes() const 
+  {
+    return FunctionConsts::YES;
+  }
+
+  FunctionConsts::AnnotationValue producesSortedNodes() const 
+  {
+    return FunctionConsts::YES;
+  }
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, ulong producer) const;
+
+  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, ulong producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//fn:doc
+class fn_doc : public function
+{
+public:
+  fn_doc(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  bool accessesDynCtx() const { return true; }
+
+  bool isSource() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//fn:doc-available
+class fn_doc_available : public function
+{
+public:
+  fn_doc_available(const signature& sig, FunctionConsts::FunctionKind kind)
+    : function(sig, kind) {
+
+}
+
+  CODEGEN_DECL();
+};
+
+
+} //namespace zorba
+
+
+#endif
+/*
+ * Local variables:
+ * mode: c++
+ * End:
+ */ 

=== modified file 'src/functions/pregenerated/function_enum.h'
--- src/functions/pregenerated/function_enum.h	2011-10-19 15:28:51 +0000
+++ src/functions/pregenerated/function_enum.h	2011-11-03 16:28:29 +0000
@@ -1,353 +1,353 @@
-/*
- * Copyright 2006-2008 The FLWOR Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- 
-// ******************************************
-// *                                        *
-// * THIS IS A GENERATED FILE. DO NOT EDIT! *
-// * SEE .xml FILE WITH SAME NAME           *
-// *                                        *
-// ******************************************
-  FN_NODE_NAME_0,
-  FN_NODE_NAME_1,
-  FN_NILLED_1,
-  FN_STRING_0,
-  FN_STRING_1,
-  FN_DATA_0,
-  FN_DATA_1,
-  FN_BASE_URI_0,
-  FN_BASE_URI_1,
-  FN_DOCUMENT_URI_0,
-  FN_DOCUMENT_URI_1,
-  FN_ROOT_0,
-  FN_ROOT_1,
-  FN_RESOLVE_URI_1,
-  FN_RESOLVE_URI_2,
-  FN_ZORBA_BASE64_DECODE_1,
-  FN_ZORBA_BASE64_ENCODE_1,
-  OP_IS_SAME_NODE_2,
-  OP_NODE_BEFORE_2,
-  OP_NODE_AFTER_2,
-  FN_COLLECTION_0,
-  FN_COLLECTION_1,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_COLLECTION_1,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_1,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_INDEX_OF_1,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INDEX_OF_1,
-  ZORBA_STORE_COLLECTIONS_STATIC_DDL_CREATE_1,
-  ZORBA_STORE_COLLECTIONS_STATIC_DDL_CREATE_2,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_CREATE_1,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_CREATE_2,
-  ZORBA_STORE_COLLECTIONS_STATIC_DDL_DELETE_1,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_DELETE_1,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_2,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_FIRST_2,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_NODES_FIRST_2,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_LAST_2,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_NODES_LAST_2,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_BEFORE_3,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_NODES_BEFORE_3,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_AFTER_3,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_NODES_AFTER_3,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_2,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_FIRST_2,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_FIRST_2,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_LAST_2,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_LAST_2,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_BEFORE_3,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_BEFORE_3,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_AFTER_3,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_AFTER_3,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODES_1,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODES_1,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODE_FIRST_1,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODES_FIRST_2,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODE_FIRST_1,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODES_FIRST_2,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODE_LAST_1,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODES_LAST_2,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODE_LAST_1,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODES_LAST_2,
-  ZORBA_STORE_COLLECTIONS_STATIC_DML_COLLECTION_NAME_1,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_NAME_1,
-  ZORBA_STORE_COLLECTIONS_STATIC_DDL_IS_AVAILABLE_COLLECTION_1,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_IS_AVAILABLE_COLLECTION_1,
-  ZORBA_STORE_COLLECTIONS_STATIC_DDL_AVAILABLE_COLLECTIONS_0,
-  ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_AVAILABLE_COLLECTIONS_0,
-  ZORBA_STORE_INDEXES_STATIC_DDL_IS_AVAILABLE_INDEX_1,
-  ZORBA_STORE_INDEXES_STATIC_DDL_AVAILABLE_INDEXES_0,
-  ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_IS_ACTIVATED_INTEGRITY_CONSTRAINT_1,
-  ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_ACTIVATED_INTEGRITY_CONSTRAINTS_0,
-  ZORBA_STORE_COLLECTIONS_STATIC_DDL_IS_DECLARED_COLLECTION_1,
-  ZORBA_STORE_COLLECTIONS_STATIC_DDL_DECLARED_COLLECTIONS_0,
-  ZORBA_STORE_INDEXES_STATIC_DDL_IS_DECLARED_INDEX_1,
-  ZORBA_STORE_INDEXES_STATIC_DDL_DECLARED_INDEXES_0,
-  ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_IS_DECLARED_INTEGRITY_CONSTRAINT_1,
-  ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_DECLARED_INTEGRITY_CONSTRAINTS_0,
-  FN_CURRENT_DATETIME_0,
-  FN_CURRENT_DATE_0,
-  FN_CURRENT_TIME_0,
-  FN_IMPLICIT_TIMEZONE_0,
-  FN_DEFAULT_COLLATION_0,
-  FN_POSITION_0,
-  FN_LAST_0,
-  FN_STATIC_BASE_URI_0,
-  FN_YEARS_FROM_DURATION_1,
-  FN_MONTHS_FROM_DURATION_1,
-  FN_DAYS_FROM_DURATION_1,
-  FN_HOURS_FROM_DURATION_1,
-  FN_MINUTES_FROM_DURATION_1,
-  FN_SECONDS_FROM_DURATION_1,
-  FN_YEAR_FROM_DATETIME_1,
-  FN_MONTH_FROM_DATETIME_1,
-  FN_DAY_FROM_DATETIME_1,
-  FN_HOURS_FROM_DATETIME_1,
-  FN_MINUTES_FROM_DATETIME_1,
-  FN_SECONDS_FROM_DATETIME_1,
-  FN_TIMEZONE_FROM_DATETIME_1,
-  FN_YEAR_FROM_DATE_1,
-  FN_MONTH_FROM_DATE_1,
-  FN_DAY_FROM_DATE_1,
-  FN_TIMEZONE_FROM_DATE_1,
-  FN_HOURS_FROM_TIME_1,
-  FN_MINUTES_FROM_TIME_1,
-  FN_SECONDS_FROM_TIME_1,
-  FN_TIMEZONE_FROM_TIME_1,
-  FN_ERROR_0,
-  FN_ERROR_1,
-  FN_ERROR_2,
-  FN_ERROR_3,
-  FN_TRACE_2,
-  OP_ZORBA_READ_LINE_0,
-  FN_ZORBA_UTIL_PRINT_1,
-  FN_ZORBA_FETCH_CONTENT_2,
-  FN_ZORBA_FETCH_CONTENT_TYPE_1,
-  FN_PUT_2,
-  FN_FUNCTION_NAME_1,
-  FN_FUNCTION_ARITY_1,
-  FN_PARTIAL_APPLY_2,
-  FN_PARTIAL_APPLY_3,
-  ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_ACTIVATE_1,
-  ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_DEACTIVATE_1,
-  ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DML_CHECK_INTEGRITY_CONSTRAINT_1,
-  FN_ZORBA_INTROSPECT_SCTX_STATICALLY_KNOWN_NAMESPACES_0,
-  FN_ZORBA_INTROSPECT_SCTX_DEFAULT_FUNCTION_NAMESPACE_0,
-  FN_ZORBA_INTROSPECT_SCTX_BASE_URI_0,
-  FN_ZORBA_INTROSPECT_SCTX_DEFAULT_COLLATION_0,
-  FN_ZORBA_INTROSPECT_SCTX_STATICALLY_KNOWN_NAMESPACE_BINDING_1,
-  FN_ZORBA_INTROSPECT_SCTX_IN_SCOPE_VARIABLES_0,
-  FN_ZORBA_INTROSPECT_SCTX_DEFAULT_COLLECTION_TYPE_0,
-  FN_ZORBA_INTROSPECT_SCTX_XPATH10_COMPATIBILITY_MODE_0,
-  FN_ZORBA_INTROSPECT_SCTX_STATICALLY_KNOWN_DOCUMENTS_0,
-  FN_ZORBA_INTROSPECT_SCTX_STATICALLY_KNOWN_DOCUMENT_TYPE_1,
-  FN_ZORBA_INTROSPECT_SCTX_STATICALLY_KNOWN_COLLATIONS_0,
-  FN_ZORBA_INTROSPECT_SCTX_CONSTRUCTION_MODE_0,
-  FN_ZORBA_INTROSPECT_SCTX_ORDERING_MODE_0,
-  FN_ZORBA_INTROSPECT_SCTX_DEFAULT_ORDER_0,
-  FN_ZORBA_INTROSPECT_SCTX_BOUNDARY_SPACE_POLICY_0,
-  FN_ZORBA_INTROSPECT_SCTX_COPY_NAMESPACES_MODE_0,
-  FN_ZORBA_INTROSPECT_SCTX_FUNCTION_NAMES_0,
-  FN_ZORBA_INTROSPECT_SCTX_FUNCTION_ARGUMENTS_COUNT_1,
-  FN_ZORBA_INTROSPECT_SCTX_IN_SCOPE_SCHEMA_TYPES_0,
-  FN_ZORBA_INTROSPECT_SCTX_IN_SCOPE_ELEMENT_DECLARATIONS_0,
-  FN_ZORBA_INTROSPECT_SCTX_IN_SCOPE_ATTRIBUTE_DECLARATIONS_0,
-  FN_ZORBA_INTROSPECT_SCTX_IN_SCOPE_ELEMENT_GROUPS_0,
-  FN_ZORBA_INTROSPECT_SCTX_IN_SCOPE_ATTRIBUTE_GROUPS_0,
-  FN_ZORBA_INTROSPECT_SCTX_OPTION_1,
-  FN_ZORBA_INTROSPECT_SCTX_FUNCTION_ANNOTATIONS_2,
-  MATH_SQRT_1,
-  MATH_EXP_1,
-  MATH_EXP10_1,
-  MATH_LOG_1,
-  MATH_LOG10_1,
-  MATH_SIN_1,
-  MATH_COS_1,
-  MATH_TAN_1,
-  MATH_ASIN_1,
-  MATH_ACOS_1,
-  MATH_ATAN_1,
-  MATH_ATAN2_2,
-  FN_ZORBA_MATH_COSH_1,
-  FN_ZORBA_MATH_ACOSH_1,
-  FN_ZORBA_MATH_FMOD_2,
-  FN_ZORBA_MATH_LDEXP_2,
-  MATH_POW_2,
-  FN_ZORBA_MATH_SINH_1,
-  FN_ZORBA_MATH_ASINH_1,
-  FN_ZORBA_MATH_TANH_1,
-  FN_ZORBA_MATH_ATANH_1,
-  MATH_PI_0,
-  FN_ZORBA_MATH_IS_INF_1,
-  FN_ZORBA_MATH_IS_NAN_1,
-  FN_ZORBA_MATH_MODF_1,
-  FN_ZORBA_MATH_FREXP_1,
-  FN_ZORBA_REF_NODE_REFERENCE_1,
-  FN_ZORBA_REF_NODE_BY_REFERENCE_1,
-  FN_LOCAL_NAME_0,
-  FN_LOCAL_NAME_1,
-  FN_NAMESPACE_URI_0,
-  FN_NAMESPACE_URI_1,
-  FN_LANG_1,
-  FN_LANG_2,
-  FN_NUMBER_0,
-  FN_NUMBER_1,
-  FN_HAS_CHILDREN_1,
-  FN_INNERMOST_1,
-  FN_OUTERMOST_1,
-  FN_GENERATE_ID_0,
-  FN_GENERATE_ID_1,
-  FN_ZORBA_NODE_ANCESTOR_OF_2,
-  FN_ZORBA_NODE_DESCENDANT_OF_2,
-  FN_ZORBA_NODE_PARENT_OF_2,
-  FN_ZORBA_NODE_CHILD_OF_2,
-  FN_ZORBA_NODE_FOLLOWING_OF_2,
-  FN_ZORBA_NODE_PRECEDING_OF_2,
-  FN_ZORBA_NODE_FOLLOWING_SIBLING_OF_2,
-  FN_ZORBA_NODE_PRECEDING_SIBLING_OF_2,
-  FN_ZORBA_NODE_LEVEL_1,
-  FN_ZORBA_NODE_LEAST_COMMON_ANCESTOR_2,
-  FN_ABS_1,
-  FN_CEILING_1,
-  FN_FLOOR_1,
-  FN_ROUND_1,
-  FN_ROUND_2,
-  FN_ROUND_HALF_TO_EVEN_1,
-  FN_ROUND_HALF_TO_EVEN_2,
-  FN_FORMAT_NUMBER_2,
-  FN_FORMAT_NUMBER_3,
-  FN_FORMAT_INTEGER_2,
-  FN_FORMAT_INTEGER_3,
-  FN_ZORBA_XML_PARSE_XML_FRAGMENT_2,
-  FN_ZORBA_XML_PARSE_XML_FRAGMENT_3,
-  FN_PARSE_XML_1,
-  FN_PARSE_XML_2,
-  FN_SERIALIZE_1,
-  FN_SERIALIZE_2,
-  FN_RESOLVE_QNAME_2,
-  FN_QNAME_2,
-  OP_QNAME_EQUAL_2,
-  FN_PREFIX_FROM_QNAME_1,
-  FN_LOCAL_NAME_FROM_QNAME_1,
-  FN_NAMESPACE_URI_FROM_QNAME_1,
-  FN_NAMESPACE_URI_FOR_PREFIX_2,
-  FN_IN_SCOPE_PREFIXES_1,
-  FN_ZORBA_RANDOM_SEEDED_RANDOM_2,
-  FN_ZORBA_RANDOM_RANDOM_1,
-  FN_ZORBA_UTIL_UUID_0,
-  FN_ZORBA_RANDOM_UUID_0,
-  FN_ZORBA_SCHEMA_VALIDATE_IN_PLACE_1,
-  FN_ZORBA_UTIL_SCHEMA_TYPE_1,
-  FN_ZORBA_SCHEMA_SCHEMA_TYPE_1,
-  FN_ZORBA_SCHEMA_IS_VALIDATED_1,
-  OP_CONCATENATE_N,
-  FN_INDEX_OF_2,
-  FN_INDEX_OF_3,
-  FN_EMPTY_1,
-  FN_EXISTS_1,
-  FN_DISTINCT_VALUES_2,
-  FN_DISTINCT_VALUES_1,
-  FN_INSERT_BEFORE_3,
-  FN_REMOVE_2,
-  FN_REVERSE_1,
-  FN_SUBSEQUENCE_2,
-  FN_SUBSEQUENCE_3,
-  OP_ZORBA_SUBSEQUENCE_INT_2,
-  OP_ZORBA_SUBSEQUENCE_INT_3,
-  OP_ZORBA_SEQUENCE_POINT_ACCESS_2,
-  FN_ZERO_OR_ONE_1,
-  FN_ONE_OR_MORE_1,
-  FN_DEEP_EQUAL_2,
-  FN_DEEP_EQUAL_3,
-  FN_COUNT_1,
-  FN_AVG_1,
-  FN_SUM_1,
-  FN_SUM_2,
-  OP_SUM_DOUBLE_1,
-  OP_SUM_DOUBLE_2,
-  OP_SUM_FLOAT_1,
-  OP_SUM_FLOAT_2,
-  OP_SUM_DECIMAL_1,
-  OP_SUM_DECIMAL_2,
-  OP_SUM_INTEGER_1,
-  OP_SUM_INTEGER_2,
-  OP_TO_2,
-  FN_ID_1,
-  FN_ID_2,
-  FN_ELEMENT_WITH_ID_1,
-  FN_ELEMENT_WITH_ID_2,
-  FN_IDREF_1,
-  FN_IDREF_2,
-  FN_DOC_1,
-  FN_DOC_AVAILABLE_1,
-  ZORBA_STORE_DOCUMENTS_PUT_2,
-  ZORBA_STORE_DOCUMENTS_REMOVE_1,
-  ZORBA_STORE_DOCUMENTS_DOCUMENT_1,
-  ZORBA_STORE_DOCUMENTS_AVAILABLE_DOCUMENTS_0,
-  ZORBA_STORE_DOCUMENTS_IS_AVAILABLE_DOCUMENT_1,
-  ZORBA_STORE_DATA_STRUCTURE_UNORDERED_MAP_CREATE_N,
-  ZORBA_STORE_DATA_STRUCTURE_UNORDERED_MAP_DELETE_1,
-  ZORBA_STORE_DATA_STRUCTURE_UNORDERED_MAP_GET_N,
-  ZORBA_STORE_DATA_STRUCTURE_UNORDERED_MAP_INSERT_N,
-  ZORBA_STORE_DATA_STRUCTURE_UNORDERED_MAP_REMOVE_N,
-  ZORBA_STORE_DATA_STRUCTURE_UNORDERED_MAP_KEYS_1,
-  ZORBA_STORE_DATA_STRUCTURE_UNORDERED_MAP_SIZE_1,
-  ZORBA_STORE_DATA_STRUCTURE_UNORDERED_MAP_AVAILABLE_MAPS_0,
-  FN_CODEPOINTS_TO_STRING_1,
-  FN_STRING_TO_CODEPOINTS_1,
-  FN_COMPARE_2,
-  FN_COMPARE_3,
-  FN_CODEPOINT_EQUAL_2,
-  FN_CONCAT_N,
-  FN_STRING_JOIN_1,
-  FN_STRING_JOIN_2,
-  FN_SUBSTRING_2,
-  FN_SUBSTRING_3,
-  FN_STRING_LENGTH_0,
-  FN_STRING_LENGTH_1,
-  FN_NORMALIZE_SPACE_0,
-  FN_NORMALIZE_SPACE_1,
-  FN_NORMALIZE_UNICODE_1,
-  FN_NORMALIZE_UNICODE_2,
-  FN_UPPER_CASE_1,
-  FN_LOWER_CASE_1,
-  FN_TRANSLATE_3,
-  FN_ENCODE_FOR_URI_1,
-  FN_IRI_TO_URI_1,
-  FN_ESCAPE_HTML_URI_1,
-  FN_CONTAINS_2,
-  FN_CONTAINS_3,
-  FN_STARTS_WITH_2,
-  FN_STARTS_WITH_3,
-  FN_ENDS_WITH_2,
-  FN_ENDS_WITH_3,
-  FN_SUBSTRING_BEFORE_2,
-  FN_SUBSTRING_BEFORE_3,
-  FN_SUBSTRING_AFTER_2,
-  FN_SUBSTRING_AFTER_3,
-  FN_MATCHES_2,
-  FN_MATCHES_3,
-  FN_REPLACE_3,
-  FN_REPLACE_4,
-  FN_TOKENIZE_2,
-  FN_TOKENIZE_3,
-  FN_ANALYZE_STRING_2,
-  FN_ANALYZE_STRING_3,
-  FN_ZORBA_STRING_MATERIALIZE_1,
-  FN_ZORBA_STRING_IS_STREAMABLE_1,
-  FN_ZORBA_XQDOC_XQDOC_1,
-  FN_ZORBA_XQDOC_XQDOC_CONTENT_1,
-
-
-
+/*
+ * Copyright 2006-2008 The FLWOR Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
+// ******************************************
+// *                                        *
+// * THIS IS A GENERATED FILE. DO NOT EDIT! *
+// * SEE .xml FILE WITH SAME NAME           *
+// *                                        *
+// ******************************************
+  FN_NODE_NAME_0,
+  FN_NODE_NAME_1,
+  FN_NILLED_1,
+  FN_STRING_0,
+  FN_STRING_1,
+  FN_DATA_0,
+  FN_DATA_1,
+  FN_BASE_URI_0,
+  FN_BASE_URI_1,
+  FN_DOCUMENT_URI_0,
+  FN_DOCUMENT_URI_1,
+  FN_ROOT_0,
+  FN_ROOT_1,
+  FN_RESOLVE_URI_1,
+  FN_RESOLVE_URI_2,
+  FN_ZORBA_BASE64_DECODE_1,
+  FN_ZORBA_BASE64_ENCODE_1,
+  OP_IS_SAME_NODE_2,
+  OP_NODE_BEFORE_2,
+  OP_NODE_AFTER_2,
+  FN_COLLECTION_0,
+  FN_COLLECTION_1,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_COLLECTION_1,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_1,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_INDEX_OF_1,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INDEX_OF_1,
+  ZORBA_STORE_COLLECTIONS_STATIC_DDL_CREATE_1,
+  ZORBA_STORE_COLLECTIONS_STATIC_DDL_CREATE_2,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_CREATE_1,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_CREATE_2,
+  ZORBA_STORE_COLLECTIONS_STATIC_DDL_DELETE_1,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_DELETE_1,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_2,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_FIRST_2,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_NODES_FIRST_2,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_LAST_2,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_NODES_LAST_2,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_BEFORE_3,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_NODES_BEFORE_3,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_INSERT_NODES_AFTER_3,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_NODES_AFTER_3,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_2,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_FIRST_2,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_FIRST_2,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_LAST_2,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_LAST_2,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_BEFORE_3,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_BEFORE_3,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_APPLY_INSERT_NODES_AFTER_3,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_AFTER_3,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODES_1,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODES_1,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODE_FIRST_1,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODES_FIRST_2,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODE_FIRST_1,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODES_FIRST_2,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODE_LAST_1,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_DELETE_NODES_LAST_2,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODE_LAST_1,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_NODES_LAST_2,
+  ZORBA_STORE_COLLECTIONS_STATIC_DML_COLLECTION_NAME_1,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_NAME_1,
+  ZORBA_STORE_COLLECTIONS_STATIC_DDL_IS_AVAILABLE_COLLECTION_1,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_IS_AVAILABLE_COLLECTION_1,
+  ZORBA_STORE_COLLECTIONS_STATIC_DDL_AVAILABLE_COLLECTIONS_0,
+  ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_AVAILABLE_COLLECTIONS_0,
+  ZORBA_STORE_INDEXES_STATIC_DDL_IS_AVAILABLE_INDEX_1,
+  ZORBA_STORE_INDEXES_STATIC_DDL_AVAILABLE_INDEXES_0,
+  ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_IS_ACTIVATED_INTEGRITY_CONSTRAINT_1,
+  ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_ACTIVATED_INTEGRITY_CONSTRAINTS_0,
+  ZORBA_STORE_COLLECTIONS_STATIC_DDL_IS_DECLARED_COLLECTION_1,
+  ZORBA_STORE_COLLECTIONS_STATIC_DDL_DECLARED_COLLECTIONS_0,
+  ZORBA_STORE_INDEXES_STATIC_DDL_IS_DECLARED_INDEX_1,
+  ZORBA_STORE_INDEXES_STATIC_DDL_DECLARED_INDEXES_0,
+  ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_IS_DECLARED_INTEGRITY_CONSTRAINT_1,
+  ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_DECLARED_INTEGRITY_CONSTRAINTS_0,
+  FN_CURRENT_DATETIME_0,
+  FN_CURRENT_DATE_0,
+  FN_CURRENT_TIME_0,
+  FN_IMPLICIT_TIMEZONE_0,
+  FN_DEFAULT_COLLATION_0,
+  FN_POSITION_0,
+  FN_LAST_0,
+  FN_STATIC_BASE_URI_0,
+  FN_YEARS_FROM_DURATION_1,
+  FN_MONTHS_FROM_DURATION_1,
+  FN_DAYS_FROM_DURATION_1,
+  FN_HOURS_FROM_DURATION_1,
+  FN_MINUTES_FROM_DURATION_1,
+  FN_SECONDS_FROM_DURATION_1,
+  FN_YEAR_FROM_DATETIME_1,
+  FN_MONTH_FROM_DATETIME_1,
+  FN_DAY_FROM_DATETIME_1,
+  FN_HOURS_FROM_DATETIME_1,
+  FN_MINUTES_FROM_DATETIME_1,
+  FN_SECONDS_FROM_DATETIME_1,
+  FN_TIMEZONE_FROM_DATETIME_1,
+  FN_YEAR_FROM_DATE_1,
+  FN_MONTH_FROM_DATE_1,
+  FN_DAY_FROM_DATE_1,
+  FN_TIMEZONE_FROM_DATE_1,
+  FN_HOURS_FROM_TIME_1,
+  FN_MINUTES_FROM_TIME_1,
+  FN_SECONDS_FROM_TIME_1,
+  FN_TIMEZONE_FROM_TIME_1,
+  FN_ERROR_0,
+  FN_ERROR_1,
+  FN_ERROR_2,
+  FN_ERROR_3,
+  FN_TRACE_2,
+  OP_ZORBA_READ_LINE_0,
+  FN_ZORBA_UTIL_PRINT_1,
+  FN_ZORBA_FETCH_CONTENT_2,
+  FN_ZORBA_FETCH_CONTENT_TYPE_1,
+  FN_PUT_2,
+  FN_FUNCTION_NAME_1,
+  FN_FUNCTION_ARITY_1,
+  FN_PARTIAL_APPLY_2,
+  FN_PARTIAL_APPLY_3,
+  ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_ACTIVATE_1,
+  ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_DEACTIVATE_1,
+  ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DML_CHECK_INTEGRITY_CONSTRAINT_1,
+  FN_ZORBA_INTROSPECT_SCTX_STATICALLY_KNOWN_NAMESPACES_0,
+  FN_ZORBA_INTROSPECT_SCTX_DEFAULT_FUNCTION_NAMESPACE_0,
+  FN_ZORBA_INTROSPECT_SCTX_BASE_URI_0,
+  FN_ZORBA_INTROSPECT_SCTX_DEFAULT_COLLATION_0,
+  FN_ZORBA_INTROSPECT_SCTX_STATICALLY_KNOWN_NAMESPACE_BINDING_1,
+  FN_ZORBA_INTROSPECT_SCTX_IN_SCOPE_VARIABLES_0,
+  FN_ZORBA_INTROSPECT_SCTX_DEFAULT_COLLECTION_TYPE_0,
+  FN_ZORBA_INTROSPECT_SCTX_XPATH10_COMPATIBILITY_MODE_0,
+  FN_ZORBA_INTROSPECT_SCTX_STATICALLY_KNOWN_DOCUMENTS_0,
+  FN_ZORBA_INTROSPECT_SCTX_STATICALLY_KNOWN_DOCUMENT_TYPE_1,
+  FN_ZORBA_INTROSPECT_SCTX_STATICALLY_KNOWN_COLLATIONS_0,
+  FN_ZORBA_INTROSPECT_SCTX_CONSTRUCTION_MODE_0,
+  FN_ZORBA_INTROSPECT_SCTX_ORDERING_MODE_0,
+  FN_ZORBA_INTROSPECT_SCTX_DEFAULT_ORDER_0,
+  FN_ZORBA_INTROSPECT_SCTX_BOUNDARY_SPACE_POLICY_0,
+  FN_ZORBA_INTROSPECT_SCTX_COPY_NAMESPACES_MODE_0,
+  FN_ZORBA_INTROSPECT_SCTX_FUNCTION_NAMES_0,
+  FN_ZORBA_INTROSPECT_SCTX_FUNCTION_ARGUMENTS_COUNT_1,
+  FN_ZORBA_INTROSPECT_SCTX_IN_SCOPE_SCHEMA_TYPES_0,
+  FN_ZORBA_INTROSPECT_SCTX_IN_SCOPE_ELEMENT_DECLARATIONS_0,
+  FN_ZORBA_INTROSPECT_SCTX_IN_SCOPE_ATTRIBUTE_DECLARATIONS_0,
+  FN_ZORBA_INTROSPECT_SCTX_IN_SCOPE_ELEMENT_GROUPS_0,
+  FN_ZORBA_INTROSPECT_SCTX_IN_SCOPE_ATTRIBUTE_GROUPS_0,
+  FN_ZORBA_INTROSPECT_SCTX_OPTION_1,
+  FN_ZORBA_INTROSPECT_SCTX_FUNCTION_ANNOTATIONS_2,
+  MATH_SQRT_1,
+  MATH_EXP_1,
+  MATH_EXP10_1,
+  MATH_LOG_1,
+  MATH_LOG10_1,
+  MATH_SIN_1,
+  MATH_COS_1,
+  MATH_TAN_1,
+  MATH_ASIN_1,
+  MATH_ACOS_1,
+  MATH_ATAN_1,
+  MATH_ATAN2_2,
+  FN_ZORBA_MATH_COSH_1,
+  FN_ZORBA_MATH_ACOSH_1,
+  FN_ZORBA_MATH_FMOD_2,
+  FN_ZORBA_MATH_LDEXP_2,
+  MATH_POW_2,
+  FN_ZORBA_MATH_SINH_1,
+  FN_ZORBA_MATH_ASINH_1,
+  FN_ZORBA_MATH_TANH_1,
+  FN_ZORBA_MATH_ATANH_1,
+  MATH_PI_0,
+  FN_ZORBA_MATH_IS_INF_1,
+  FN_ZORBA_MATH_IS_NAN_1,
+  FN_ZORBA_MATH_MODF_1,
+  FN_ZORBA_MATH_FREXP_1,
+  FN_ZORBA_REF_NODE_REFERENCE_1,
+  FN_ZORBA_REF_NODE_BY_REFERENCE_1,
+  FN_LOCAL_NAME_0,
+  FN_LOCAL_NAME_1,
+  FN_NAMESPACE_URI_0,
+  FN_NAMESPACE_URI_1,
+  FN_LANG_1,
+  FN_LANG_2,
+  FN_NUMBER_0,
+  FN_NUMBER_1,
+  FN_HAS_CHILDREN_1,
+  FN_INNERMOST_1,
+  FN_OUTERMOST_1,
+  FN_GENERATE_ID_0,
+  FN_GENERATE_ID_1,
+  FN_ZORBA_NODE_ANCESTOR_OF_2,
+  FN_ZORBA_NODE_DESCENDANT_OF_2,
+  FN_ZORBA_NODE_PARENT_OF_2,
+  FN_ZORBA_NODE_CHILD_OF_2,
+  FN_ZORBA_NODE_FOLLOWING_OF_2,
+  FN_ZORBA_NODE_PRECEDING_OF_2,
+  FN_ZORBA_NODE_FOLLOWING_SIBLING_OF_2,
+  FN_ZORBA_NODE_PRECEDING_SIBLING_OF_2,
+  FN_ZORBA_NODE_LEVEL_1,
+  FN_ZORBA_NODE_LEAST_COMMON_ANCESTOR_2,
+  FN_ABS_1,
+  FN_CEILING_1,
+  FN_FLOOR_1,
+  FN_ROUND_1,
+  FN_ROUND_2,

Follow ups