← Back to team overview

zorba-coders team mailing list archive

[Merge] lp:~zorba-coders/zorba/fn_envvars into lp:zorba

 

Matthias Brantner has proposed merging lp:~zorba-coders/zorba/fn_envvars into lp:zorba.

Requested reviews:
  Matthias Brantner (matthias-brantner)
  Sorin Marian Nasoi (sorin.marian.nasoi)
Related bugs:
  Bug #930157 in Zorba: "fn:available-environment-variables Implementation"
  https://bugs.launchpad.net/zorba/+bug/930157
  Bug #930158 in Zorba: "fn:environment-variables Implementation"
  https://bugs.launchpad.net/zorba/+bug/930158
  Bug #930160 in Zorba: "fn:uri-collection Implementation"
  https://bugs.launchpad.net/zorba/+bug/930160
  Bug #930161 in Zorba: "fn:unparsed-text Implementation"
  https://bugs.launchpad.net/zorba/+bug/930161
  Bug #930162 in Zorba: "fn:unparsed-text-available Implementation"
  https://bugs.launchpad.net/zorba/+bug/930162

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/fn_envvars/+merge/101876

Bug #930157: fn:available-environment-variables Implementation
Bug #930158: fn:environment-variables Implementation
Bug #930160: fn:uri-collection Implementation
Bug #930161: fn:unparsed-text Implementation
Bug #930162: fn:unparsed-text-available Implementation

-- 
The attached diff has been truncated due to its size.
https://code.launchpad.net/~zorba-coders/zorba/fn_envvars/+merge/101876
Your team Zorba Coders is subscribed to branch lp:zorba.
=== added file 'NOTICE.txt'
--- NOTICE.txt	1970-01-01 00:00:00 +0000
+++ NOTICE.txt	2012-04-13 09:26:20 +0000
@@ -0,0 +1,740 @@
+-----------
+Zorba 2.2.0
+-----------
+
+(Note: This file is generated automatically from NOTICE.xml.
+Please do not modify this file directly.)
+
+
+
+
+Apache 2
+
+      Copyright 2006-2011 The FLWOR Foundation
+
+      See LICENSE.txt for license information.
+
+      ------------------------
+      This product includes software developed at
+      The FLWOR Foundation (http://www.flworfound.org/).
+
+      ------------------------
+      Portions of this software were developed at the Systems
+      Group of the ETH Zurich, Switzerland.
+    
+
+Other files used by this project:
+----------------------------------------------------
+
+src/zorbatypes/m_apm.h
+src/zorbatypes/mapm/
+
+Copyright: 1999-2007 Michael C. Ring
+Website: http://www.tc.umn.edu/~ringx004/mapm-main.html
+
+      This software is Freeware.
+
+      Permission to use, copy, and distribute this software and its
+      documentation for any purpose with or without fee is hereby granted,
+      provided that the above copyright notice appear in all copies and
+      that both that copyright notice and this permission notice appear
+      in supporting documentation.
+
+      Permission to modify the software is granted. Permission to distribute
+      the modified code is granted. Modifications are to be distributed by
+      using the file 'license.txt' as a template to modify the file header.
+      'license.txt' is available in the official MAPM distribution.
+
+      To distribute modified source code, insert the file 'license.txt'
+      at the top of all modified source code files and edit accordingly.
+
+      This software is provided "as is" without express or implied warranty.
+    
+----------------------------------------------------
+
+src/zorbamisc/config/stdint.h
+
+Copyright: 2006 Alexander Chemeris
+
+
+      Redistribution and use in source and binary forms, with or without
+      modification, are permitted provided that the following conditions are met:
+
+      1. Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+
+      2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+
+      3. The name of the author may be used to endorse or promote products
+      derived from this software without specific prior written permission.
+
+      THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+      WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+      MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+      EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+      SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+      PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+      OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+      WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+      OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+      ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+    
+----------------------------------------------------
+
+src/zorbautils/stemmer/
+
+Copyright: 2001 Dr. Martin Porter
+
+
+      All the software given out on this Snowball site is covered by the BSD
+      License (see http://www.opensource.org/licenses/bsd-license.html), with
+      Copyright (c) 2001, Dr Martin Porter, and (for the Java developments)
+      Copyright (c) 2002, Richard Boulton.
+
+      Essentially, all this means is that you can do what you like with the code,
+      except claim another Copyright for it, or claim that it is issued under a
+      different license. The software is also issued without warranties, which
+      means that if anyone suffers through its use, they cannot come back and sue
+      you. You also have to alert anyone to whom you give the Snowball software to
+      the fact that it is covered by the BSD license.
+
+      We have not bothered to insert the licensing arrangement into the text of
+      the Snowball software.
+    
+----------------------------------------------------
+
+src/util/less.h
+
+Copyright: 1998 Paul J. Lucas
+
+
+      Redistribution and use in source and binary forms, with or without
+      modification, are permitted provided that the following conditions are met:
+
+      o  Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+
+      o  Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+
+      o  The name of the author may not be used to endorse or promote products
+      derived from this software without specific prior written permission.
+
+      THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+      IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+      ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+      LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+      CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+      SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+      INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+      CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+      POSSIBILITY OF SUCH DAMAGE.
+    
+----------------------------------------------------
+
+src/util/auto_vector.h (has been modified)
+
+Copyright: 2003 Reliable Software
+
+
+      Redistribution and use in source and binary forms, with or without
+      modification, are permitted provided that the following conditions are met:
+
+      o  Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+
+      o  Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+
+      o  The name of the author may not be used to endorse or promote products
+      derived from this software without specific prior written permission.
+
+      THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+      IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+      ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+      LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+      CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+      SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+      INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+      CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+      POSSIBILITY OF SUCH DAMAGE.
+    
+----------------------------------------------------
+
+cmake_modules/FindBoost.cmake
+
+Copyright: 
+      2006-2008 Andreas Schneider <mail@xxxxxxxxxxxx>
+      2007      Wengo
+      2007      Mike Jackson
+      2008      Andreas Pakulat <apaku@xxxxxx>
+    
+
+
+      Redistribution AND use is allowed according to the terms of the New BSD license.
+      For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+    
+----------------------------------------------------
+
+cmake_modules/FindJNI.cmake
+cmake_modules/FindPythonLibs.cmake
+cmake_modules/FindSWIG.cmake
+
+Copyright: 2001-2009 Kitware, Inc.
+
+
+      Distributed under the OSI-approved BSD License (the "License");
+      see accompanying file Copyright.txt for details.
+
+      This software is distributed WITHOUT ANY WARRANTY; without even the
+      implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+      See the License for more information.
+
+      CMake - Cross Platform Makefile Generator
+      Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
+      All rights reserved.
+
+      Redistribution and use in source and binary forms, with or without
+      modification, are permitted provided that the following conditions
+      are met:
+
+      * Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+
+      * Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+
+      * Neither the names of Kitware, Inc., the Insight Software Consortium,
+      nor the names of their contributors may be used to endorse or promote
+      products derived from this software without specific prior written
+      permission.
+
+      THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+      "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+      LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+      A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+      HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+      SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+      LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+      DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+      THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+      (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+      OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+      ------------------------------------------------------------------------------
+
+      The above copyright and license notice applies to distributions of
+      CMake in source and binary form.  Some source files contain additional
+      notices of original copyright by their contributors; see each source
+      for details.  Third-party software packages supplied with CMake under
+      compatible licenses provide their own copyright notices documented in
+      corresponding subdirectories.
+
+      ------------------------------------------------------------------------------
+
+      CMake was initially developed by Kitware with the following sponsorship:
+
+      * National Library of Medicine at the National Institutes of Health
+      as part of the Insight Segmentation and Registration Toolkit (ITK).
+
+      * US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel
+      Visualization Initiative.
+
+      * National Alliance for Medical Image Computing (NAMIC) is funded by the
+      National Institutes of Health through the NIH Roadmap for Medical Research,
+      Grant U54 EB005149.
+
+      * Kitware, Inc.
+    
+----------------------------------------------------
+
+/xml.xsd
+
+Copyright: 2001 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
+
+
+      All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+      W3C Software Notice and License
+
+      This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
+
+      License
+
+      By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
+
+      Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications:
+      •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
+      •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code.
+      •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)
+
+      Disclaimers
+
+      THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
+
+      COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
+
+      The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
+    
+----------------------------------------------------
+
+schemas/xslt-xquery-serialization.xsd
+
+Copyright: 2010 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
+
+
+      All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+      W3C Software Notice and License
+
+      This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
+
+      License
+
+      By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
+
+      Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications:
+      •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
+      •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code.
+      •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)
+
+      Disclaimers
+
+      THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
+
+      COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
+
+      The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
+    
+----------------------------------------------------
+
+modules/w3c/xpath-functions.xsd
+
+Copyright: 2005 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
+
+
+      All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+      W3C Software Notice and License
+
+      This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
+
+      License
+
+      By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
+
+      Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications:
+      •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
+      •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code.
+      •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)
+
+      Disclaimers
+
+      THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
+
+      COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
+
+      The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
+    
+----------------------------------------------------
+
+include/xqc.h
+
+Copyright: 2008, Matthias Brantner, John Snelson
+
+
+      * All rights reserved.
+      *
+      * Redistribution and use in source and binary forms, with or without
+      * modification, are permitted provided that the following conditions are met:
+      *
+      *     * Redistributions of source code must retain the above copyright notice,
+      *       this list of conditions and the following disclaimer.
+      *     * Redistributions in binary form must reproduce the above copyright
+      *       notice, this list of conditions and the following disclaimer in the
+      *       documentation and/or other materials provided with the distribution.
+      *     * Neither the name of the developers nor the names of contributors may be
+      *       used to endorse or promote products derived from this software without
+      *       specific prior written permission.
+      *
+      * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+      * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+      * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+      * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+      * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+      * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+      * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+      * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+      * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+      * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+      * POSSIBILITY OF SUCH DAMAGE.
+    
+----------------------------------------------------
+
+modules/functx/functx.xq
+
+Copyright: 2007 Datypic
+
+
+      : This library is free software; you can redistribute it and/or
+      : modify it under the terms of the GNU Lesser General Public
+      : License as published by the Free Software Foundation; either
+      : version 2.1 of the License.
+
+      : This library is distributed in the hope that it will be useful,
+      : but WITHOUT ANY WARRANTY; without even the implied warranty of
+      : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+      : Lesser General Public License for more details.
+
+      : You should have received a copy of the GNU Lesser General Public
+      : License along with this library; if not, write to the Free Software
+      : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+    
+----------------------------------------------------
+
+src/compiler/parser/FlexLexer.h
+
+Copyright: 1993 The Regents of the University of California
+
+
+      // All rights reserved.
+      //
+      // This code is derived from software contributed to Berkeley by
+      // Kent Williams and Tom Epperly.
+      //
+      //  Redistribution and use in source and binary forms, with or without
+      //  modification, are permitted provided that the following conditions
+      //  are met:
+
+      //  1. Redistributions of source code must retain the above copyright
+      //  notice, this list of conditions and the following disclaimer.
+      //  2. Redistributions in binary form must reproduce the above copyright
+      //  notice, this list of conditions and the following disclaimer in the
+      //  documentation and/or other materials provided with the distribution.
+
+      //  Neither the name of the University nor the names of its contributors
+      //  may be used to endorse or promote products derived from this software
+      //  without specific prior written permission.
+
+      //  THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+      //  IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+      //  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+      //  PURPOSE.
+    
+----------------------------------------------------
+
+src/diagnostics/StackWalker.cpp
+src/diagnostics/StackWalker.h
+
+Copyright: 2005 Jochen Kalmbach 
+
+
+      Under BSD License: http://www.opensource.org/licenses/bsd-license.php
+    
+----------------------------------------------------
+
+src/util/singleton.h
+src/util/threads.h
+
+Copyright: 2001 Andrei Alexandrescu
+
+
+      This code accompanies the book:
+      Alexandrescu, Andrei. "Modern C++ Design: Generic Programming and Design
+          Patterns Applied". Copyright (c) 2001. Addison-Wesley.
+      Permission to use, copy, modify, distribute and sell this software for any
+          purpose is hereby granted without fee, provided that the above copyright
+          notice appear in all copies and that both that copyright notice and this
+          permission notice appear in supporting documentation.
+      The author or Addison-Wesley Longman make no representations about the
+          suitability of this software for any purpose. It is provided "as is"
+          without express or implied warranty.
+    
+
+External libraries used by this project:
+----------------------------------------------------
+
+Name: LIBXML2
+Preferred version: 2.2.16 or higher
+Is mandatory: true
+Website: http://xmlsoft.org/
+License: MIT
+Copyright: 1998-2002 Daniel Veillard.  All Rights Reserved.
+External notice: 
+
+      Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+      The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+      Except as contained in this notice, the name of Daniel Veillard shall not
+      be used in advertising or otherwise to promote the sale, use or other deal-
+      ings in this Software without prior written authorization from him.
+    
+----------------------------------------------------
+
+Name: LIBXSLT
+Preferred version: 1.1.26
+Is mandatory: false
+Website: http://xmlsoft.org/XSLT/
+License: MIT
+Copyright: 2001-2002 Daniel Veillard.  All Rights Reserved.
+External notice: 
+
+      Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+      The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL DANIEL VEILLARD BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+      Except as contained in this notice, the name of Daniel Veillard shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from him.
+
+    
+----------------------------------------------------
+
+Name: ICU4C
+Preferred version: 3.6 or higher
+Is mandatory: true
+Website: http://www.icu-project.org/
+License: ICU License
+Copyright: 1995-2011 International Business Machines Corporation and others 
+External notice: 
+
+      Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, provided that the above copyright notice(s) and this permission notice appear in all copies of the Software and that both the above copyright notice(s) and this permission notice appear in supporting documentation.
+
+      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+      Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization of the copyright holder.
+    
+----------------------------------------------------
+
+Name: CURL
+Preferred version: above 7.12
+Is mandatory: false
+Website: http://curl.haxx.se/
+License: MIT/X derivate license
+Copyright: 1996 - 2011, Daniel Stenberg, <daniel@xxxxxxx>.
+External notice: 
+
+      All rights reserved.
+
+      Permission to use, copy, modify, and distribute this software for any purpose
+      with or without fee is hereby granted, provided that the above copyright
+      notice and this permission notice appear in all copies.
+
+      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+      IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+      FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
+      NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+      DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+      OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
+      OR OTHER DEALINGS IN THE SOFTWARE.
+
+      Except as contained in this notice, the name of a copyright holder shall not
+      be used in advertising or otherwise to promote the sale, use or other dealings
+      in this Software without prior written authorization of the copyright holder.
+    
+----------------------------------------------------
+
+Name: ICONV
+Preferred version: above 1.12
+Is mandatory: true
+Website: http://www.gnu.org/software/libiconv/
+License: LGPL
+Copyright: 1998, 2010 Free Software Foundation, Inc.
+External notice: 
+
+----------------------------------------------------
+
+Name: ZLIB
+Preferred version: 1.2.5
+Is mandatory: true
+Website: http://www.zlib.net/
+Copyright: 1995-2004 Jean-loup Gailly and Mark Adler
+External notice: 
+
+      This software is provided 'as-is', without any express or implied
+      warranty.  In no event will the authors be held liable for any damages
+      arising from the use of this software.
+
+      Permission is granted to anyone to use this software for any purpose,
+      including commercial applications, and to alter it and redistribute it
+      freely, subject to the following restrictions:
+
+      1. The origin of this software must not be misrepresented; you must not
+      claim that you wrote the original software. If you use this software
+      in a product, an acknowledgment in the product documentation would be
+      appreciated but is not required.
+      2. Altered source versions must be plainly marked as such, and must not be
+      misrepresented as being the original software.
+      3. This notice may not be removed or altered from any source distribution.
+
+      Jean-loup Gailly jloup@xxxxxxxx
+      Mark Adler madler@xxxxxxxxxxxxxxxxxx
+    
+----------------------------------------------------
+
+Name: XERCES
+Preferred version: 2.8.0 or higher
+Is mandatory: true
+Website: http://xerces.apache.org/xerces-c/
+License: Apache 2
+Copyright: Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.
+External notice: 
+
+      http://www.apache.org/licenses/LICENSE-2.0
+    
+----------------------------------------------------
+
+Name: BOOST (boost_filesystem)
+Preferred version: 1.32 or higher
+Is mandatory: false
+Website: http://www.boost.org/
+License: Boost Software License v1.0
+Copyright: 
+      Beman Dawes, David Abrahams, 1998-2005.
+      Rene Rivera 2004-2007
+    
+External notice: 
+
+      Permission is hereby granted, free of charge, to any person or organization
+      obtaining a copy of the software and accompanying documentation covered by
+      this license (the "Software") to use, reproduce, display, distribute,
+      execute, and transmit the Software, and to prepare derivative works of the
+      Software, and to permit third-parties to whom the Software is furnished to
+      do so, all subject to the following:
+
+      The copyright notices in the Software and this entire statement, including
+      the above license grant, this restriction and the following disclaimer,
+      must be included in all copies of the Software, in whole or in part, and
+      all derivative works of the Software, unless such copies or derivative
+      works are solely in the form of machine-executable object code generated by
+      a source language processor.
+
+      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+      IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+      FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+      SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+      FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+      ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+      DEALINGS IN THE SOFTWARE.
+    
+
+External applications used by this project:
+----------------------------------------------------
+
+Name: FLEX
+Preferred version: 2.5.33
+Is mandatory: false
+Website: http://flex.sourceforge.net/
+Copyright: 
+      2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The Flex Project.
+      1990, 1997 The Regents of the University of California. All rights reserved.
+    
+External notice: 
+
+      Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+      1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+      2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+      
+      Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+
+      THIS SOFTWARE IS PROVIDED “AS IS” AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+    
+----------------------------------------------------
+
+Name: BISON
+Preferred version: 2.4 or higher
+Is mandatory: false
+Website: http://www.gnu.org/software/bison/
+License: GPL
+Copyright: 1998, 2001, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+External notice: 
+
+----------------------------------------------------
+
+Name: DOXYGEN
+Preferred version: v1.7.4 
+Is mandatory: false
+Website: www.doxygen.org
+License: GPL
+Copyright: 1997-2011 by Dimitri van Heesch
+External notice: 
+
+      Permission to use, copy, modify, and distribute this software and its documentation under the terms of the GNU General Public License is hereby granted.
+      No representations are made about the suitability of this software for any purpose. 
+      It is provided "as is" without express or implied warranty. 
+      See the GNU General Public License for more details.
+
+      Documents produced by doxygen are derivative works derived from the input used in their production; they are not affected by this license.
+    
+----------------------------------------------------
+
+Name: CMAKE
+Preferred version: 2.8.4
+Is mandatory: true
+Website: http://www.cmake.org/
+License: Creative Commons Attribution-NoDerivs 3.0 Unported License
+Copyright: 2000-2009 Kitware, Inc., Insight Software Consortium. All rights reserved.
+External notice: 
+
+      Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+      Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+      Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+      Neither the names of Kitware, Inc., the Insight Software Consortium, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+
+      THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+    
+----------------------------------------------------
+
+Name: SWIG
+Preferred version: 2.0.4 or above
+Is mandatory: false
+Website: http://www.swig.org/
+License: GPL
+Copyright: 
+      1995-2011 The SWIG Developers
+      2005-2006 Arizona Board of Regents (University of Arizona).
+      1998-2005 University of Chicago.
+      1995-1998 The University of Utah and the Regents of the University of California
+    
+External notice: 
+
+      SWIG is free software: you can redistribute it and/or modify it
+      under the terms of the GNU General Public License as published by
+      the Free Software Foundation, either version 3 of the License, or
+      (at your option) any later version. See the LICENSE-GPL file for
+      the full terms of the GNU General Public license version 3.
+
+      Portions of SWIG are also licensed under the terms of the licenses
+      in the file LICENSE-UNIVERSITIES. You must observe the terms of
+      these licenses, as well as the terms of the GNU General Public License,
+      when you distribute SWIG.
+
+      The SWIG library and examples, under the Lib and Examples top level
+      directories, are distributed under the following terms:
+
+      You may copy, modify, distribute, and make derivative works based on
+      this software, in source code or object code form, without
+      restriction. If you distribute the software to others, you may do
+      so according to the terms of your choice. This software is offered as
+      is, without warranty of any kind.
+
+      See the COPYRIGHT file for a list of contributors to SWIG and their
+      copyright notices.
+    
\ No newline at end of file

=== removed file 'NOTICE.txt'
--- NOTICE.txt	2012-03-28 05:19:57 +0000
+++ NOTICE.txt	1970-01-01 00:00:00 +0000
@@ -1,740 +0,0 @@
------------
-Zorba 2.2.0
------------
-
-(Note: This file is generated automatically from NOTICE.xml.
-Please do not modify this file directly.)
-
-
-
-
-Apache 2
-
-      Copyright 2006-2011 The FLWOR Foundation
-
-      See LICENSE.txt for license information.
-
-      ------------------------
-      This product includes software developed at
-      The FLWOR Foundation (http://www.flworfound.org/).
-
-      ------------------------
-      Portions of this software were developed at the Systems
-      Group of the ETH Zurich, Switzerland.
-    
-
-Other files used by this project:
-----------------------------------------------------
-
-src/zorbatypes/m_apm.h
-src/zorbatypes/mapm/
-
-Copyright: 1999-2007 Michael C. Ring
-Website: http://www.tc.umn.edu/~ringx004/mapm-main.html
-
-      This software is Freeware.
-
-      Permission to use, copy, and distribute this software and its
-      documentation for any purpose with or without fee is hereby granted,
-      provided that the above copyright notice appear in all copies and
-      that both that copyright notice and this permission notice appear
-      in supporting documentation.
-
-      Permission to modify the software is granted. Permission to distribute
-      the modified code is granted. Modifications are to be distributed by
-      using the file 'license.txt' as a template to modify the file header.
-      'license.txt' is available in the official MAPM distribution.
-
-      To distribute modified source code, insert the file 'license.txt'
-      at the top of all modified source code files and edit accordingly.
-
-      This software is provided "as is" without express or implied warranty.
-    
-----------------------------------------------------
-
-src/zorbamisc/config/stdint.h
-
-Copyright: 2006 Alexander Chemeris
-
-
-      Redistribution and use in source and binary forms, with or without
-      modification, are permitted provided that the following conditions are met:
-
-      1. Redistributions of source code must retain the above copyright notice,
-      this list of conditions and the following disclaimer.
-
-      2. Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in the
-      documentation and/or other materials provided with the distribution.
-
-      3. The name of the author may be used to endorse or promote products
-      derived from this software without specific prior written permission.
-
-      THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
-      WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-      MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-      EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-      SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-      PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-      OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-      WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-      OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-      ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-    
-----------------------------------------------------
-
-src/zorbautils/stemmer/
-
-Copyright: 2001 Dr. Martin Porter
-
-
-      All the software given out on this Snowball site is covered by the BSD
-      License (see http://www.opensource.org/licenses/bsd-license.html), with
-      Copyright (c) 2001, Dr Martin Porter, and (for the Java developments)
-      Copyright (c) 2002, Richard Boulton.
-
-      Essentially, all this means is that you can do what you like with the code,
-      except claim another Copyright for it, or claim that it is issued under a
-      different license. The software is also issued without warranties, which
-      means that if anyone suffers through its use, they cannot come back and sue
-      you. You also have to alert anyone to whom you give the Snowball software to
-      the fact that it is covered by the BSD license.
-
-      We have not bothered to insert the licensing arrangement into the text of
-      the Snowball software.
-    
-----------------------------------------------------
-
-src/util/less.h
-
-Copyright: 1998 Paul J. Lucas
-
-
-      Redistribution and use in source and binary forms, with or without
-      modification, are permitted provided that the following conditions are met:
-
-      o  Redistributions of source code must retain the above copyright notice,
-      this list of conditions and the following disclaimer.
-
-      o  Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in the
-      documentation and/or other materials provided with the distribution.
-
-      o  The name of the author may not be used to endorse or promote products
-      derived from this software without specific prior written permission.
-
-      THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-      IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-      ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
-      LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-      CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-      SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-      INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-      CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-      POSSIBILITY OF SUCH DAMAGE.
-    
-----------------------------------------------------
-
-src/util/auto_vector.h (has been modified)
-
-Copyright: 2003 Reliable Software
-
-
-      Redistribution and use in source and binary forms, with or without
-      modification, are permitted provided that the following conditions are met:
-
-      o  Redistributions of source code must retain the above copyright notice,
-      this list of conditions and the following disclaimer.
-
-      o  Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in the
-      documentation and/or other materials provided with the distribution.
-
-      o  The name of the author may not be used to endorse or promote products
-      derived from this software without specific prior written permission.
-
-      THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-      IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-      ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
-      LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-      CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-      SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-      INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-      CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-      POSSIBILITY OF SUCH DAMAGE.
-    
-----------------------------------------------------
-
-cmake_modules/FindBoost.cmake
-
-Copyright: 
-      2006-2008 Andreas Schneider <mail@xxxxxxxxxxxx>
-      2007      Wengo
-      2007      Mike Jackson
-      2008      Andreas Pakulat <apaku@xxxxxx>
-    
-
-
-      Redistribution AND use is allowed according to the terms of the New BSD license.
-      For details see the accompanying COPYING-CMAKE-SCRIPTS file.
-    
-----------------------------------------------------
-
-cmake_modules/FindJNI.cmake
-cmake_modules/FindPythonLibs.cmake
-cmake_modules/FindSWIG.cmake
-
-Copyright: 2001-2009 Kitware, Inc.
-
-
-      Distributed under the OSI-approved BSD License (the "License");
-      see accompanying file Copyright.txt for details.
-
-      This software is distributed WITHOUT ANY WARRANTY; without even the
-      implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-      See the License for more information.
-
-      CMake - Cross Platform Makefile Generator
-      Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
-      All rights reserved.
-
-      Redistribution and use in source and binary forms, with or without
-      modification, are permitted provided that the following conditions
-      are met:
-
-      * Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-
-      * Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in the
-      documentation and/or other materials provided with the distribution.
-
-      * Neither the names of Kitware, Inc., the Insight Software Consortium,
-      nor the names of their contributors may be used to endorse or promote
-      products derived from this software without specific prior written
-      permission.
-
-      THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-      "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-      LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-      A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-      HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-      SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-      LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-      DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-      THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-      (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-      OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-      ------------------------------------------------------------------------------
-
-      The above copyright and license notice applies to distributions of
-      CMake in source and binary form.  Some source files contain additional
-      notices of original copyright by their contributors; see each source
-      for details.  Third-party software packages supplied with CMake under
-      compatible licenses provide their own copyright notices documented in
-      corresponding subdirectories.
-
-      ------------------------------------------------------------------------------
-
-      CMake was initially developed by Kitware with the following sponsorship:
-
-      * National Library of Medicine at the National Institutes of Health
-      as part of the Insight Segmentation and Registration Toolkit (ITK).
-
-      * US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel
-      Visualization Initiative.
-
-      * National Alliance for Medical Image Computing (NAMIC) is funded by the
-      National Institutes of Health through the NIH Roadmap for Medical Research,
-      Grant U54 EB005149.
-
-      * Kitware, Inc.
-    
-----------------------------------------------------
-
-/xml.xsd
-
-Copyright: 2001 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
-
-
-      All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-      W3C Software Notice and License
-
-      This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
-
-      License
-
-      By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
-
-      Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications:
-      •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
-      •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code.
-      •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)
-
-      Disclaimers
-
-      THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
-
-      COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
-
-      The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
-    
-----------------------------------------------------
-
-schemas/xslt-xquery-serialization.xsd
-
-Copyright: 2010 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
-
-
-      All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-      W3C Software Notice and License
-
-      This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
-
-      License
-
-      By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
-
-      Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications:
-      •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
-      •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code.
-      •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)
-
-      Disclaimers
-
-      THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
-
-      COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
-
-      The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
-    
-----------------------------------------------------
-
-modules/w3c/xpath-functions.xsd
-
-Copyright: 2005 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
-
-
-      All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-      W3C Software Notice and License
-
-      This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
-
-      License
-
-      By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
-
-      Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications:
-      •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
-      •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code.
-      •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)
-
-      Disclaimers
-
-      THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
-
-      COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
-
-      The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
-    
-----------------------------------------------------
-
-include/xqc.h
-
-Copyright: 2008, Matthias Brantner, John Snelson
-
-
-      * All rights reserved.
-      *
-      * Redistribution and use in source and binary forms, with or without
-      * modification, are permitted provided that the following conditions are met:
-      *
-      *     * Redistributions of source code must retain the above copyright notice,
-      *       this list of conditions and the following disclaimer.
-      *     * Redistributions in binary form must reproduce the above copyright
-      *       notice, this list of conditions and the following disclaimer in the
-      *       documentation and/or other materials provided with the distribution.
-      *     * Neither the name of the developers nor the names of contributors may be
-      *       used to endorse or promote products derived from this software without
-      *       specific prior written permission.
-      *
-      * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-      * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-      * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-      * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-      * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-      * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-      * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-      * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-      * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-      * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-      * POSSIBILITY OF SUCH DAMAGE.
-    
-----------------------------------------------------
-
-modules/functx/functx.xq
-
-Copyright: 2007 Datypic
-
-
-      : This library is free software; you can redistribute it and/or
-      : modify it under the terms of the GNU Lesser General Public
-      : License as published by the Free Software Foundation; either
-      : version 2.1 of the License.
-
-      : This library is distributed in the hope that it will be useful,
-      : but WITHOUT ANY WARRANTY; without even the implied warranty of
-      : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-      : Lesser General Public License for more details.
-
-      : You should have received a copy of the GNU Lesser General Public
-      : License along with this library; if not, write to the Free Software
-      : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
-    
-----------------------------------------------------
-
-src/compiler/parser/FlexLexer.h
-
-Copyright: 1993 The Regents of the University of California
-
-
-      // All rights reserved.
-      //
-      // This code is derived from software contributed to Berkeley by
-      // Kent Williams and Tom Epperly.
-      //
-      //  Redistribution and use in source and binary forms, with or without
-      //  modification, are permitted provided that the following conditions
-      //  are met:
-
-      //  1. Redistributions of source code must retain the above copyright
-      //  notice, this list of conditions and the following disclaimer.
-      //  2. Redistributions in binary form must reproduce the above copyright
-      //  notice, this list of conditions and the following disclaimer in the
-      //  documentation and/or other materials provided with the distribution.
-
-      //  Neither the name of the University nor the names of its contributors
-      //  may be used to endorse or promote products derived from this software
-      //  without specific prior written permission.
-
-      //  THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-      //  IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-      //  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-      //  PURPOSE.
-    
-----------------------------------------------------
-
-src/diagnostics/StackWalker.cpp
-src/diagnostics/StackWalker.h
-
-Copyright: 2005 Jochen Kalmbach 
-
-
-      Under BSD License: http://www.opensource.org/licenses/bsd-license.php
-    
-----------------------------------------------------
-
-src/util/singleton.h
-src/util/threads.h
-
-Copyright: 2001 Andrei Alexandrescu
-
-
-      This code accompanies the book:
-      Alexandrescu, Andrei. "Modern C++ Design: Generic Programming and Design
-          Patterns Applied". Copyright (c) 2001. Addison-Wesley.
-      Permission to use, copy, modify, distribute and sell this software for any
-          purpose is hereby granted without fee, provided that the above copyright
-          notice appear in all copies and that both that copyright notice and this
-          permission notice appear in supporting documentation.
-      The author or Addison-Wesley Longman make no representations about the
-          suitability of this software for any purpose. It is provided "as is"
-          without express or implied warranty.
-    
-
-External libraries used by this project:
-----------------------------------------------------
-
-Name: LIBXML2
-Preferred version: 2.2.16 or higher
-Is mandatory: true
-Website: http://xmlsoft.org/
-License: MIT
-Copyright: 1998-2002 Daniel Veillard.  All Rights Reserved.
-External notice: 
-
-      Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-      The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-      Except as contained in this notice, the name of Daniel Veillard shall not
-      be used in advertising or otherwise to promote the sale, use or other deal-
-      ings in this Software without prior written authorization from him.
-    
-----------------------------------------------------
-
-Name: LIBXSLT
-Preferred version: 1.1.26
-Is mandatory: false
-Website: http://xmlsoft.org/XSLT/
-License: MIT
-Copyright: 2001-2002 Daniel Veillard.  All Rights Reserved.
-External notice: 
-
-      Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-      The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL DANIEL VEILLARD BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-
-      Except as contained in this notice, the name of Daniel Veillard shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from him.
-
-    
-----------------------------------------------------
-
-Name: ICU4C
-Preferred version: 3.6 or higher
-Is mandatory: true
-Website: http://www.icu-project.org/
-License: ICU License
-Copyright: 1995-2011 International Business Machines Corporation and others 
-External notice: 
-
-      Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, provided that the above copyright notice(s) and this permission notice appear in all copies of the Software and that both the above copyright notice(s) and this permission notice appear in supporting documentation.
-
-      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
-      Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization of the copyright holder.
-    
-----------------------------------------------------
-
-Name: CURL
-Preferred version: above 7.12
-Is mandatory: false
-Website: http://curl.haxx.se/
-License: MIT/X derivate license
-Copyright: 1996 - 2011, Daniel Stenberg, <daniel@xxxxxxx>.
-External notice: 
-
-      All rights reserved.
-
-      Permission to use, copy, modify, and distribute this software for any purpose
-      with or without fee is hereby granted, provided that the above copyright
-      notice and this permission notice appear in all copies.
-
-      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-      IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-      FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
-      NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-      DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-      OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
-      OR OTHER DEALINGS IN THE SOFTWARE.
-
-      Except as contained in this notice, the name of a copyright holder shall not
-      be used in advertising or otherwise to promote the sale, use or other dealings
-      in this Software without prior written authorization of the copyright holder.
-    
-----------------------------------------------------
-
-Name: ICONV
-Preferred version: above 1.12
-Is mandatory: true
-Website: http://www.gnu.org/software/libiconv/
-License: LGPL
-Copyright: 1998, 2010 Free Software Foundation, Inc.
-External notice: 
-
-----------------------------------------------------
-
-Name: ZLIB
-Preferred version: 1.2.5
-Is mandatory: true
-Website: http://www.zlib.net/
-Copyright: 1995-2004 Jean-loup Gailly and Mark Adler
-External notice: 
-
-      This software is provided 'as-is', without any express or implied
-      warranty.  In no event will the authors be held liable for any damages
-      arising from the use of this software.
-
-      Permission is granted to anyone to use this software for any purpose,
-      including commercial applications, and to alter it and redistribute it
-      freely, subject to the following restrictions:
-
-      1. The origin of this software must not be misrepresented; you must not
-      claim that you wrote the original software. If you use this software
-      in a product, an acknowledgment in the product documentation would be
-      appreciated but is not required.
-      2. Altered source versions must be plainly marked as such, and must not be
-      misrepresented as being the original software.
-      3. This notice may not be removed or altered from any source distribution.
-
-      Jean-loup Gailly jloup@xxxxxxxx
-      Mark Adler madler@xxxxxxxxxxxxxxxxxx
-    
-----------------------------------------------------
-
-Name: XERCES
-Preferred version: 2.8.0 or higher
-Is mandatory: true
-Website: http://xerces.apache.org/xerces-c/
-License: Apache 2
-Copyright: Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.
-External notice: 
-
-      http://www.apache.org/licenses/LICENSE-2.0
-    
-----------------------------------------------------
-
-Name: BOOST (boost_filesystem)
-Preferred version: 1.32 or higher
-Is mandatory: false
-Website: http://www.boost.org/
-License: Boost Software License v1.0
-Copyright: 
-      Beman Dawes, David Abrahams, 1998-2005.
-      Rene Rivera 2004-2007
-    
-External notice: 
-
-      Permission is hereby granted, free of charge, to any person or organization
-      obtaining a copy of the software and accompanying documentation covered by
-      this license (the "Software") to use, reproduce, display, distribute,
-      execute, and transmit the Software, and to prepare derivative works of the
-      Software, and to permit third-parties to whom the Software is furnished to
-      do so, all subject to the following:
-
-      The copyright notices in the Software and this entire statement, including
-      the above license grant, this restriction and the following disclaimer,
-      must be included in all copies of the Software, in whole or in part, and
-      all derivative works of the Software, unless such copies or derivative
-      works are solely in the form of machine-executable object code generated by
-      a source language processor.
-
-      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-      IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-      FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
-      SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
-      FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
-      ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-      DEALINGS IN THE SOFTWARE.
-    
-
-External applications used by this project:
-----------------------------------------------------
-
-Name: FLEX
-Preferred version: 2.5.33
-Is mandatory: false
-Website: http://flex.sourceforge.net/
-Copyright: 
-      2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The Flex Project.
-      1990, 1997 The Regents of the University of California. All rights reserved.
-    
-External notice: 
-
-      Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
-      1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-      2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-      
-      Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
-
-      THIS SOFTWARE IS PROVIDED “AS IS” AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-    
-----------------------------------------------------
-
-Name: BISON
-Preferred version: 2.4 or higher
-Is mandatory: false
-Website: http://www.gnu.org/software/bison/
-License: GPL
-Copyright: 1998, 2001, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
-External notice: 
-
-----------------------------------------------------
-
-Name: DOXYGEN
-Preferred version: v1.7.4 
-Is mandatory: false
-Website: www.doxygen.org
-License: GPL
-Copyright: 1997-2011 by Dimitri van Heesch
-External notice: 
-
-      Permission to use, copy, modify, and distribute this software and its documentation under the terms of the GNU General Public License is hereby granted.
-      No representations are made about the suitability of this software for any purpose. 
-      It is provided "as is" without express or implied warranty. 
-      See the GNU General Public License for more details.
-
-      Documents produced by doxygen are derivative works derived from the input used in their production; they are not affected by this license.
-    
-----------------------------------------------------
-
-Name: CMAKE
-Preferred version: 2.8.4
-Is mandatory: true
-Website: http://www.cmake.org/
-License: Creative Commons Attribution-NoDerivs 3.0 Unported License
-Copyright: 2000-2009 Kitware, Inc., Insight Software Consortium. All rights reserved.
-External notice: 
-
-      Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
-      Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
-      Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
-      Neither the names of Kitware, Inc., the Insight Software Consortium, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission.
-
-      THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-    
-----------------------------------------------------
-
-Name: SWIG
-Preferred version: 2.0.4 or above
-Is mandatory: false
-Website: http://www.swig.org/
-License: GPL
-Copyright: 
-      1995-2011 The SWIG Developers
-      2005-2006 Arizona Board of Regents (University of Arizona).
-      1998-2005 University of Chicago.
-      1995-1998 The University of Utah and the Regents of the University of California
-    
-External notice: 
-
-      SWIG is free software: you can redistribute it and/or modify it
-      under the terms of the GNU General Public License as published by
-      the Free Software Foundation, either version 3 of the License, or
-      (at your option) any later version. See the LICENSE-GPL file for
-      the full terms of the GNU General Public license version 3.
-
-      Portions of SWIG are also licensed under the terms of the licenses
-      in the file LICENSE-UNIVERSITIES. You must observe the terms of
-      these licenses, as well as the terms of the GNU General Public License,
-      when you distribute SWIG.
-
-      The SWIG library and examples, under the Lib and Examples top level
-      directories, are distributed under the following terms:
-
-      You may copy, modify, distribute, and make derivative works based on
-      this software, in source code or object code form, without
-      restriction. If you distribute the software to others, you may do
-      so according to the terms of your choice. This software is offered as
-      is, without warranty of any kind.
-
-      See the COPYRIGHT file for a list of contributors to SWIG and their
-      copyright notices.
-    
\ No newline at end of file

=== modified file 'include/zorba/pregenerated/diagnostic_list.h'
--- include/zorba/pregenerated/diagnostic_list.h	2012-03-28 05:19:57 +0000
+++ include/zorba/pregenerated/diagnostic_list.h	2012-04-13 09:26:20 +0000
@@ -1,814 +1,818 @@
-/**
- * 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 ZXQP0006_UNKNOWN_ENCODING;
-
-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 ZXQD0006_INVALID_UTF8_BYTE_SEQUENCE;
-
-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 ZAPI0011_ELEMENT_NOT_DECLARED;
-
-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 ZAPI0090_CANNOT_VALIDATE_NON_ROOT;
-
-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 ZDDY0019_UNDO_NOT_POSSIBLE;
-
-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 ZDDY0035_INDEX_GENERAL_INSERT;
-
-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 ZDST0025_INDEX_BAD_UNIQUE_PROPERTY;
-
-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 ZOSE0006_TRANSCODING_ERROR;
-
-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 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 ZSTR0065_STRINGS_IN_POOL;
-
-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;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0001_ILLEGAL_CHARACTER;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0002_ILLEGAL_CODEPOINT;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0003_ILLEGAL_ESCAPE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0004_ILLEGAL_LITERAL;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0005_ILLEGAL_NUMBER;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0006_UNEXPECTED_TOKEN;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0007_UNTERMINATED_STRING;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0008_ILLEGAL_QNAME;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0009_ILLEGAL_EMPTY_STRING;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJSE0001_NOT_DOCUMENT_OR_ELEMENT_NODE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJSE0002_ELEMENT_MISSING_ATTRIBUTE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJSE0003_BAD_ATTRIBUTE_VALUE;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJSE0004_BAD_ELEMENT;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJSE0005_BAD_CHILD_ELEMENT;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJSE0006_NO_ELEMENT_CHILD;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJSE0007_NO_TEXT_CHILD;
-
-extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJSE0008_BAD_VALUE;
-
-} // 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;
-
-extern ZORBA_DLL_PUBLIC ZorbaWarningCode ZWST0005_CACHING_NOT_POSSIBLE;
-
-extern ZORBA_DLL_PUBLIC ZorbaWarningCode ZWST0006_CACHING_MIGHT_NOT_BE_INTENDED;
-
-} // 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 FOUT1170;
+
+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOUT1190;
+
+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 ZXQP0006_UNKNOWN_ENCODING;
+
+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 ZXQD0006_INVALID_UTF8_BYTE_SEQUENCE;
+
+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 ZAPI0011_ELEMENT_NOT_DECLARED;
+
+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 ZAPI0090_CANNOT_VALIDATE_NON_ROOT;
+
+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 ZDDY0019_UNDO_NOT_POSSIBLE;
+
+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 ZDDY0035_INDEX_GENERAL_INSERT;
+
+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 ZDST0025_INDEX_BAD_UNIQUE_PROPERTY;
+
+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 ZOSE0006_TRANSCODING_ERROR;
+
+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 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 ZSTR0065_STRINGS_IN_POOL;
+
+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;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0001_ILLEGAL_CHARACTER;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0002_ILLEGAL_CODEPOINT;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0003_ILLEGAL_ESCAPE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0004_ILLEGAL_LITERAL;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0005_ILLEGAL_NUMBER;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0006_UNEXPECTED_TOKEN;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0007_UNTERMINATED_STRING;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0008_ILLEGAL_QNAME;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJPE0009_ILLEGAL_EMPTY_STRING;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJSE0001_NOT_DOCUMENT_OR_ELEMENT_NODE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJSE0002_ELEMENT_MISSING_ATTRIBUTE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJSE0003_BAD_ATTRIBUTE_VALUE;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJSE0004_BAD_ELEMENT;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJSE0005_BAD_CHILD_ELEMENT;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJSE0006_NO_ELEMENT_CHILD;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJSE0007_NO_TEXT_CHILD;
+
+extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZJSE0008_BAD_VALUE;
+
+} // 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;
+
+extern ZORBA_DLL_PUBLIC ZorbaWarningCode ZWST0005_CACHING_NOT_POSSIBLE;
+
+extern ZORBA_DLL_PUBLIC ZorbaWarningCode ZWST0006_CACHING_MIGHT_NOT_BE_INTENDED;
+
+} // namespace zwarn
+} // namespace zorba
+#endif /* ZORBA_DIAGNOSTIC_LIST_API_H */
+/*
+ * Local variables:
+ * mode: c++
+ * End:
+ */ 

=== modified file 'modules/com/zorba-xquery/www/modules/pregenerated/errors.xq'
--- modules/com/zorba-xquery/www/modules/pregenerated/errors.xq	2012-03-28 05:19:57 +0000
+++ modules/com/zorba-xquery/www/modules/pregenerated/errors.xq	2012-04-13 09:26:20 +0000
@@ -1,875 +1,875 @@
-(:
- : 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:ZXQP0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0006");
-
-(:~
-:)
-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:ZXQD0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQD0006");
-
-(:~
-:)
-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:ZAPI0011 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0011");
-
-(:~
-:)
-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:ZAPI0090 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0090");
-
-(:~
-:)
-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:ZDDY0019 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0019");
-
-(:~
-:)
-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:ZDDY0035 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0035");
-
-(:~
-:)
-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:ZDST0025 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0025");
-
-(:~
-:)
-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:ZOSE0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZOSE0006");
-
-(:~
-:)
-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: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:ZSTR0065 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0065");
-
-(:~
-:)
-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");
-
-(:~
-:)
-declare variable $zerr:ZJPE0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0001");
-
-(:~
-:)
-declare variable $zerr:ZJPE0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0002");
-
-(:~
-:)
-declare variable $zerr:ZJPE0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0003");
-
-(:~
-:)
-declare variable $zerr:ZJPE0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0004");
-
-(:~
-:)
-declare variable $zerr:ZJPE0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0005");
-
-(:~
-:)
-declare variable $zerr:ZJPE0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0006");
-
-(:~
-:)
-declare variable $zerr:ZJPE0007 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0007");
-
-(:~
-:)
-declare variable $zerr:ZJPE0008 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0008");
-
-(:~
-:)
-declare variable $zerr:ZJPE0009 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0009");
-
-(:~
-:)
-declare variable $zerr:ZJSE0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZJSE0001");
-
-(:~
-:)
-declare variable $zerr:ZJSE0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZJSE0002");
-
-(:~
-:)
-declare variable $zerr:ZJSE0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZJSE0003");
-
-(:~
-:)
-declare variable $zerr:ZJSE0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZJSE0004");
-
-(:~
-:)
-declare variable $zerr:ZJSE0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZJSE0005");
-
-(:~
-:)
-declare variable $zerr:ZJSE0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZJSE0006");
-
-(:~
-:)
-declare variable $zerr:ZJSE0007 as xs:QName := fn:QName($zerr:NS, "zerr:ZJSE0007");
-
-(:~
-:)
+(:
+ : 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:ZXQP0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQP0006");
+
+(:~
+:)
+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:ZXQD0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZXQD0006");
+
+(:~
+:)
+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:ZAPI0011 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0011");
+
+(:~
+:)
+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:ZAPI0090 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0090");
+
+(:~
+:)
+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:ZDDY0019 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0019");
+
+(:~
+:)
+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:ZDDY0035 as xs:QName := fn:QName($zerr:NS, "zerr:ZDDY0035");
+
+(:~
+:)
+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:ZDST0025 as xs:QName := fn:QName($zerr:NS, "zerr:ZDST0025");
+
+(:~
+:)
+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:ZOSE0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZOSE0006");
+
+(:~
+:)
+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: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:ZSTR0065 as xs:QName := fn:QName($zerr:NS, "zerr:ZSTR0065");
+
+(:~
+:)
+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");
+
+(:~
+:)
+declare variable $zerr:ZJPE0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0001");
+
+(:~
+:)
+declare variable $zerr:ZJPE0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0002");
+
+(:~
+:)
+declare variable $zerr:ZJPE0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0003");
+
+(:~
+:)
+declare variable $zerr:ZJPE0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0004");
+
+(:~
+:)
+declare variable $zerr:ZJPE0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0005");
+
+(:~
+:)
+declare variable $zerr:ZJPE0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0006");
+
+(:~
+:)
+declare variable $zerr:ZJPE0007 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0007");
+
+(:~
+:)
+declare variable $zerr:ZJPE0008 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0008");
+
+(:~
+:)
+declare variable $zerr:ZJPE0009 as xs:QName := fn:QName($zerr:NS, "zerr:ZJPE0009");
+
+(:~
+:)
+declare variable $zerr:ZJSE0001 as xs:QName := fn:QName($zerr:NS, "zerr:ZJSE0001");
+
+(:~
+:)
+declare variable $zerr:ZJSE0002 as xs:QName := fn:QName($zerr:NS, "zerr:ZJSE0002");
+
+(:~
+:)
+declare variable $zerr:ZJSE0003 as xs:QName := fn:QName($zerr:NS, "zerr:ZJSE0003");
+
+(:~
+:)
+declare variable $zerr:ZJSE0004 as xs:QName := fn:QName($zerr:NS, "zerr:ZJSE0004");
+
+(:~
+:)
+declare variable $zerr:ZJSE0005 as xs:QName := fn:QName($zerr:NS, "zerr:ZJSE0005");
+
+(:~
+:)
+declare variable $zerr:ZJSE0006 as xs:QName := fn:QName($zerr:NS, "zerr:ZJSE0006");
+
+(:~
+:)
+declare variable $zerr:ZJSE0007 as xs:QName := fn:QName($zerr:NS, "zerr:ZJSE0007");
+
+(:~
+:)
 declare variable $zerr:ZJSE0008 as xs:QName := fn:QName($zerr:NS, "zerr:ZJSE0008");
\ 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	2012-03-28 05:19:57 +0000
+++ modules/com/zorba-xquery/www/modules/pregenerated/warnings.xq	2012-04-13 09:26:20 +0000
@@ -1,75 +1,75 @@
-(:
- : 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");
-
-(:~
- :
- : This warning is raised if the user explicitly enables caching
- : of function results (using the %ann:cache annotation) but the function
- : is updating or its parameter and return types are not subtypes of
- : xs:anyAtomicType.
- : 
-:)
-declare variable $zwarn:ZWST0005 as xs:QName := fn:QName($zwarn:NS, "zwarn:ZWST0005");
-
-(:~
- :
- : This warning is raised if the user explicitly enables caching
- : of function results (using the %ann:cache annotation) and the function
- : is annotated as sequential or nondeterministic.
- : 
-:)
+(:
+ : 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");
+
+(:~
+ :
+ : This warning is raised if the user explicitly enables caching
+ : of function results (using the %ann:cache annotation) but the function
+ : is updating or its parameter and return types are not subtypes of
+ : xs:anyAtomicType.
+ : 
+:)
+declare variable $zwarn:ZWST0005 as xs:QName := fn:QName($zwarn:NS, "zwarn:ZWST0005");
+
+(:~
+ :
+ : This warning is raised if the user explicitly enables caching
+ : of function results (using the %ann:cache annotation) and the function
+ : is annotated as sequential or nondeterministic.
+ : 
+:)
 declare variable $zwarn:ZWST0006 as xs:QName := fn:QName($zwarn:NS, "zwarn:ZWST0006");
\ No newline at end of file

=== modified file 'modules/w3c/pregenerated/xqt-errors.xq'
--- modules/w3c/pregenerated/xqt-errors.xq	2012-03-28 05:19:57 +0000
+++ modules/w3c/pregenerated/xqt-errors.xq	2012-04-13 09:26:20 +0000
@@ -1,1687 +1,1705 @@
-(:
- : 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");
+
+(:~
+ :
+ : Identifier cannot be used to retrive a resource containing text
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOUT1170 as xs:QName := fn:QName($err:NS, "err:FOUT1170");
+
+(:~
+ :
+ : Retrieved resource contains octets that cannot be decoded into Unicode 
+ : using the specified encoding, the resulting characters are not 
+ : permitted XML characters or requested encoding not supported
+ : 
+ : @see http://www.w3.org/2005/xqt-errors
+:)
+declare variable $err:FOUT1190 as xs:QName := fn:QName($err:NS, "err:FOUT1190");
+
+(:~
+ :
+ : 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 'modules/w3c/xpath_functions.xq'
--- modules/w3c/xpath_functions.xq	2012-03-28 05:19:57 +0000
+++ modules/w3c/xpath_functions.xq	2012-04-13 09:26:20 +0000
@@ -994,4 +994,49 @@
 (:~
  : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-string";>fn:string</a>
  :)
-declare function fn:string($arg as item()?) as xs:string external;
\ No newline at end of file
+declare function fn:string($arg as item()?) as xs:string external;
+
+(:~
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-available-environment-variables";>fn:available-environment-variables</a>
+ :)
+declare function fn:available-environment-variables() as xs:string* external;
+
+(:~
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-environment-variable";>fn:environment-variable</a>
+ :)
+declare function fn:environment-variable($arg as xs:string) as xs:string? external;
+
+(:~
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text";>fn:unparsed-text</a>
+ :)
+declare function fn:unparsed-text($href as xs:string?) as xs:string? external;
+
+(:~
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text";>fn:unparsed-text</a>
+ :)
+declare function fn:unparsed-text($href as xs:string?, $encoding as xs:string) as xs:string? external;
+
+(:~
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-available";>fn:unparsed-text-available</a>
+ :)
+declare function fn:unparsed-text-available($href as xs:string?) as xs:boolean external;
+
+(:~
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-lines";>fn:unparsed-text-lines</a>
+ :)
+declare function fn:unparsed-text-lines(	$href	 as xs:string?, $encoding	 as xs:string) as xs:string* external;
+
+(:~
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-available";>fn:unparsed-text-available</a>
+ :)
+declare function fn:unparsed-text-available(	$href	 as xs:string?, $encoding	 as xs:string) as xs:boolean external;
+
+(:~
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-uri-collection";>fn:uri-collection</a>
+ :)
+declare function fn:uri-collection() as xs:anyURI* external;
+
+(:~
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-uri-collection";>fn:uri-collection</a>
+ :)
+declare function fn:uri-collection($arg as xs:string?) as xs:anyURI* external;

=== modified file 'src/context/dynamic_context.cpp'
--- src/context/dynamic_context.cpp	2012-03-28 05:19:57 +0000
+++ src/context/dynamic_context.cpp	2012-04-13 09:26:20 +0000
@@ -21,6 +21,7 @@
 #include <sys/timeb.h>
 #ifdef UNIX
 #include <sys/time.h>
+#include <unistd.h>
 #endif
 
 #include "store/api/iterator.h"
@@ -29,6 +30,7 @@
 #include "store/api/store.h"
 #include "store/api/index.h"
 #include "store/api/ic.h"
+#include "store/api/iterator_factory.h"
 
 #include "system/globalenv.h"
 
@@ -54,10 +56,13 @@
 
 using namespace std;
 
+#ifdef UNIX
+//external variables
+extern char **environ;
+#endif
+
 namespace zorba
 {
-
-
 /*******************************************************************************
 
 ********************************************************************************/
@@ -122,6 +127,7 @@
   theParent(NULL),
   keymap(NULL),
   theAvailableIndices(NULL),
+  theEnvironmentVariables(NULL),
   theDocLoadingUserTime(0.0),
   theDocLoadingTime(0)
 {
@@ -161,6 +167,9 @@
     delete keymap;
   }
 
+  if(theEnvironmentVariables)
+    delete theEnvironmentVariables;
+
   if (theAvailableIndices)
     delete theAvailableIndices;
 }
@@ -259,6 +268,145 @@
 /*******************************************************************************
 
 ********************************************************************************/
+void dynamic_context::set_environment_variables()
+{
+  if (!theEnvironmentVariables)
+    theEnvironmentVariables = new EnvVarMap();
+
+#if defined (WIN32)
+    LPTCH envVarsCH = GetEnvironmentStrings();
+    LPTSTR envVarsSTR = (LPTSTR) envVarsCH;
+
+    while (*envVarsSTR)
+    {
+      int size = lstrlen(envVarsSTR);
+
+      char * envVar = new char[size+1];
+      
+      
+      WideCharToMultiByte( CP_ACP, 
+                           WC_NO_BEST_FIT_CHARS|WC_COMPOSITECHECK|WC_DEFAULTCHAR, 
+                           envVarsSTR, 
+                           size+1, 
+                           envVar, 
+                           size+1,
+                           NULL,
+                           NULL);
+      
+
+      zstring envVarZS(envVar);
+      
+      int eqPos = envVarZS.find_first_of("=");
+
+      if (eqPos > 0)
+      {
+        zstring varname(envVarZS.substr(0, eqPos));
+        zstring varvalue(envVarZS.substr(eqPos+1, size));
+
+        if (!varname.empty() || !varvalue.empty())
+          theEnvironmentVariables->insert(std::pair<zstring, zstring>(varname,varvalue));
+      }
+      
+      delete envVar;
+      envVarsSTR += lstrlen(envVarsSTR) + 1;
+    }
+    
+    FreeEnvironmentStrings(envVarsCH);
+#else    
+    const char* invalid_char;
+    for (char **env = environ; *env; ++env)
+    {
+      zstring envVarZS(*env);
+      
+      if ((invalid_char = utf8::validate(envVarZS.c_str())) != NULL)
+        throw XQUERY_EXCEPTION(err::FOCH0001,
+          ERROR_PARAMS(zstring("#x") + 
+          BUILD_STRING(std::uppercase << std::hex 
+            << (static_cast<unsigned int>(*invalid_char)&0xFF))));
+
+      if ((invalid_char = utf8::validate(envVarZS.c_str())) != NULL)
+      {
+        throw XQUERY_EXCEPTION(err::FOCH0001, 
+        ERROR_PARAMS(zstring("#x") + 
+        BUILD_STRING(std::uppercase << std::hex
+                     << (static_cast<unsigned int>(*invalid_char) & 0xFF)) ));
+      }
+
+      int size = envVarZS.size();
+            
+      int eqPos = envVarZS.find_first_of("=");
+            
+      if (eqPos > 0)
+      {
+        zstring varname(envVarZS.substr(0, eqPos));
+        zstring varvalue(envVarZS.substr(eqPos+1, size));
+                                                  
+        if (!varname.empty() || !varvalue.empty())
+          theEnvironmentVariables->insert(std::pair<zstring, zstring>(varname,varvalue));
+      }                                                                   
+    }
+     
+#endif
+    
+}
+/*******************************************************************************
+
+********************************************************************************/
+store::Iterator_t dynamic_context::available_environment_variables()
+{
+  if (!theEnvironmentVariables)
+  {
+    set_environment_variables();
+  }
+
+  EnvVarMap::iterator lIte = theEnvironmentVariables->begin();
+  EnvVarMap::iterator lEnd = theEnvironmentVariables->end();
+
+  std::vector<store::Item_t> lVarNames;
+
+  for (;lIte != lEnd; ++lIte)
+  {
+    store::Item_t varname;
+    zstring zsvarname = lIte->first;
+    GENV_ITEMFACTORY->createString(varname, zsvarname);
+    lVarNames.push_back(varname);
+  }
+
+  if (lVarNames.empty())
+  {
+    return NULL;
+  }
+
+  return GENV_STORE.createTempSeq(lVarNames)->getIterator(); 
+}
+
+/*******************************************************************************
+
+********************************************************************************/
+store::Item_t dynamic_context::get_environment_variable(const zstring& varname)
+{
+
+  if (!theEnvironmentVariables)
+  {
+    set_environment_variables();
+  }
+
+  EnvVarMap::iterator lIter = theEnvironmentVariables->find(varname);
+
+  if (lIter == theEnvironmentVariables->end())
+  {
+    return NULL;
+  }
+
+  store::Item_t value; 
+  zstring varvalue = lIter->second;
+  GENV_ITEMFACTORY->createString(value, varvalue);
+  return value;
+}
+
+/*******************************************************************************
+
+********************************************************************************/
 void dynamic_context::add_variable(ulong varid, store::Iterator_t& value) 
 {
   declare_variable(varid);
@@ -607,7 +755,6 @@
   {
     keymap = new ValueMap(8, false);
   }
-
   if (!keymap->insert(aName, val))
   {
     keymap->update(aName, val);

=== modified file 'src/context/dynamic_context.h'
--- src/context/dynamic_context.h	2012-03-28 05:19:57 +0000
+++ src/context/dynamic_context.h	2012-04-13 09:26:20 +0000
@@ -105,6 +105,8 @@
 
   typedef ItemPointerHashMap<store::Index_t> IndexMap;
 
+  typedef std::map<const zstring,const zstring> EnvVarMap;
+
 protected:
   dynamic_context            * theParent;
 
@@ -119,6 +121,9 @@
 
   IndexMap                   * theAvailableIndices;
 
+    //MODIFY
+  EnvVarMap                  * theEnvironmentVariables;
+
 public:
   double                       theDocLoadingUserTime;
   double                       theDocLoadingTime;
@@ -142,6 +147,12 @@
 
   store::Item_t get_current_time_millis() const;
 
+  void set_environment_variables();
+
+  store::Item_t get_environment_variable(const zstring& varname);
+
+  store::Iterator_t available_environment_variables();
+
   void set_implicit_timezone(long tzone_seconds);
 
   long get_implicit_timezone() const;

=== modified file 'src/diagnostics/diagnostic_en.xml'
--- src/diagnostics/diagnostic_en.xml	2012-04-10 13:10:22 +0000
+++ src/diagnostics/diagnostic_en.xml	2012-04-13 09:26:20 +0000
@@ -1142,7 +1142,23 @@
        An argument to \c fn:deep-equal() contains a function item.
       </comment>
       <value>"$1": argument to fn:deep-equal() contains a function item</value>
+    </diagnostic>  
+    
+    <diagnostic code="FOUT1170">
+      <comment>
+       Identifier cannot be used to retrive a resource containing text
+      </comment>
+      <value>"$1": error retrieving resource containing text</value>
     </diagnostic>
+    
+    <diagnostic code="FOUT1190">
+      <comment>
+       Retrieved resource contains octets that cannot be decoded into Unicode 
+       using the specified encoding, the resulting characters are not 
+       permitted XML characters or requested encoding not supported
+      </comment>
+      <value>"$1": Cannot decode resource retrieved</value>
+    </diagnostic>  
 
     <!--////////// XQuery Update Facility //////////////////////////////////-->
 

=== modified file 'src/diagnostics/pregenerated/diagnostic_list.cpp'
--- src/diagnostics/pregenerated/diagnostic_list.cpp	2012-03-28 05:19:57 +0000
+++ src/diagnostics/pregenerated/diagnostic_list.cpp	2012-04-13 09:26:20 +0000
@@ -1,1192 +1,1198 @@
-/**
- * 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 ZXQP0006_UNKNOWN_ENCODING( "ZXQP0006" );
-
-
-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 ZXQD0006_INVALID_UTF8_BYTE_SEQUENCE( "ZXQD0006" );
-
-
-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 ZAPI0011_ELEMENT_NOT_DECLARED( "ZAPI0011" );
-
-
-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 ZAPI0090_CANNOT_VALIDATE_NON_ROOT( "ZAPI0090" );
-
-
-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 ZDDY0019_UNDO_NOT_POSSIBLE( "ZDDY0019" );
-
-
-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 ZDDY0035_INDEX_GENERAL_INSERT( "ZDDY0035" );
-
-
-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 ZDST0025_INDEX_BAD_UNIQUE_PROPERTY( "ZDST0025" );
-
-
-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 ZOSE0006_TRANSCODING_ERROR( "ZOSE0006" );
-
-
-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 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 ZSTR0065_STRINGS_IN_POOL( "ZSTR0065" );
-
-
-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" );
-
-
-ZorbaErrorCode ZJPE0001_ILLEGAL_CHARACTER( "ZJPE0001" );
-
-
-ZorbaErrorCode ZJPE0002_ILLEGAL_CODEPOINT( "ZJPE0002" );
-
-
-ZorbaErrorCode ZJPE0003_ILLEGAL_ESCAPE( "ZJPE0003" );
-
-
-ZorbaErrorCode ZJPE0004_ILLEGAL_LITERAL( "ZJPE0004" );
-
-
-ZorbaErrorCode ZJPE0005_ILLEGAL_NUMBER( "ZJPE0005" );
-
-
-ZorbaErrorCode ZJPE0006_UNEXPECTED_TOKEN( "ZJPE0006" );
-
-
-ZorbaErrorCode ZJPE0007_UNTERMINATED_STRING( "ZJPE0007" );
-
-
-ZorbaErrorCode ZJPE0008_ILLEGAL_QNAME( "ZJPE0008" );
-
-
-ZorbaErrorCode ZJPE0009_ILLEGAL_EMPTY_STRING( "ZJPE0009" );
-
-
-ZorbaErrorCode ZJSE0001_NOT_DOCUMENT_OR_ELEMENT_NODE( "ZJSE0001" );
-
-
-ZorbaErrorCode ZJSE0002_ELEMENT_MISSING_ATTRIBUTE( "ZJSE0002" );
-
-
-ZorbaErrorCode ZJSE0003_BAD_ATTRIBUTE_VALUE( "ZJSE0003" );
-
-
-ZorbaErrorCode ZJSE0004_BAD_ELEMENT( "ZJSE0004" );
-
-
-ZorbaErrorCode ZJSE0005_BAD_CHILD_ELEMENT( "ZJSE0005" );
-
-
-ZorbaErrorCode ZJSE0006_NO_ELEMENT_CHILD( "ZJSE0006" );
-
-
-ZorbaErrorCode ZJSE0007_NO_TEXT_CHILD( "ZJSE0007" );
-
-
-ZorbaErrorCode ZJSE0008_BAD_VALUE( "ZJSE0008" );
-
-
-} // namespace zerr
-
-namespace zwarn {
-
-ZorbaWarningCode ZWST0002_UNKNOWN_ANNOTATION( "ZWST0002" );
-
-
-ZorbaWarningCode ZWST0003_FAKE_SEQUENTIAL_FUNCTION( "ZWST0003" );
-
-
-ZorbaWarningCode ZWST0004_AMBIGUOUS_SEQUENTIAL_FLWOR( "ZWST0004" );
-
-
-ZorbaWarningCode ZWST0005_CACHING_NOT_POSSIBLE( "ZWST0005" );
-
-
-ZorbaWarningCode ZWST0006_CACHING_MIGHT_NOT_BE_INTENDED( "ZWST0006" );
-
-
-} // 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 FOUT1170( "FOUT1170" );
+
+
+XQueryErrorCode FOUT1190( "FOUT1190" );
+
+
+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 ZXQP0006_UNKNOWN_ENCODING( "ZXQP0006" );
+
+
+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 ZXQD0006_INVALID_UTF8_BYTE_SEQUENCE( "ZXQD0006" );
+
+
+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 ZAPI0011_ELEMENT_NOT_DECLARED( "ZAPI0011" );
+
+
+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 ZAPI0090_CANNOT_VALIDATE_NON_ROOT( "ZAPI0090" );
+
+
+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 ZDDY0019_UNDO_NOT_POSSIBLE( "ZDDY0019" );
+
+
+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 ZDDY0035_INDEX_GENERAL_INSERT( "ZDDY0035" );
+
+
+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 ZDST0025_INDEX_BAD_UNIQUE_PROPERTY( "ZDST0025" );
+
+
+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 ZOSE0006_TRANSCODING_ERROR( "ZOSE0006" );
+
+
+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 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 ZSTR0065_STRINGS_IN_POOL( "ZSTR0065" );
+
+
+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" );
+
+
+ZorbaErrorCode ZJPE0001_ILLEGAL_CHARACTER( "ZJPE0001" );
+
+
+ZorbaErrorCode ZJPE0002_ILLEGAL_CODEPOINT( "ZJPE0002" );
+
+
+ZorbaErrorCode ZJPE0003_ILLEGAL_ESCAPE( "ZJPE0003" );
+
+
+ZorbaErrorCode ZJPE0004_ILLEGAL_LITERAL( "ZJPE0004" );
+
+
+ZorbaErrorCode ZJPE0005_ILLEGAL_NUMBER( "ZJPE0005" );
+
+
+ZorbaErrorCode ZJPE0006_UNEXPECTED_TOKEN( "ZJPE0006" );
+
+
+ZorbaErrorCode ZJPE0007_UNTERMINATED_STRING( "ZJPE0007" );
+
+
+ZorbaErrorCode ZJPE0008_ILLEGAL_QNAME( "ZJPE0008" );
+
+
+ZorbaErrorCode ZJPE0009_ILLEGAL_EMPTY_STRING( "ZJPE0009" );
+
+
+ZorbaErrorCode ZJSE0001_NOT_DOCUMENT_OR_ELEMENT_NODE( "ZJSE0001" );
+
+
+ZorbaErrorCode ZJSE0002_ELEMENT_MISSING_ATTRIBUTE( "ZJSE0002" );
+
+
+ZorbaErrorCode ZJSE0003_BAD_ATTRIBUTE_VALUE( "ZJSE0003" );
+
+
+ZorbaErrorCode ZJSE0004_BAD_ELEMENT( "ZJSE0004" );
+
+
+ZorbaErrorCode ZJSE0005_BAD_CHILD_ELEMENT( "ZJSE0005" );
+
+
+ZorbaErrorCode ZJSE0006_NO_ELEMENT_CHILD( "ZJSE0006" );
+
+
+ZorbaErrorCode ZJSE0007_NO_TEXT_CHILD( "ZJSE0007" );
+
+
+ZorbaErrorCode ZJSE0008_BAD_VALUE( "ZJSE0008" );
+
+
+} // namespace zerr
+
+namespace zwarn {
+
+ZorbaWarningCode ZWST0002_UNKNOWN_ANNOTATION( "ZWST0002" );
+
+
+ZorbaWarningCode ZWST0003_FAKE_SEQUENTIAL_FUNCTION( "ZWST0003" );
+
+
+ZorbaWarningCode ZWST0004_AMBIGUOUS_SEQUENTIAL_FLWOR( "ZWST0004" );
+
+
+ZorbaWarningCode ZWST0005_CACHING_NOT_POSSIBLE( "ZWST0005" );
+
+
+ZorbaWarningCode ZWST0006_CACHING_MIGHT_NOT_BE_INTENDED( "ZWST0006" );
+
+
+} // namespace zwarn
+
+} // namespace zorba
+/*
+ * Local variables:
+ * mode: c++
+ * End:
+ */ 

=== modified file 'src/diagnostics/pregenerated/dict_en.cpp'
--- src/diagnostics/pregenerated/dict_en.cpp	2012-04-10 13:10:22 +0000
+++ src/diagnostics/pregenerated/dict_en.cpp	2012-04-13 09:26:20 +0000
@@ -1,3 +1,4 @@
+<<<<<<< TREE
 /**
  * Copyright 2006-2011 The FLWOR Foundation.
  *
@@ -766,3 +767,775 @@
  * 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/config.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" },
+  { "FOUT1170", "\"$1\": error retrieving resource containing text" },
+  { "FOUT1190", "\"$1\": Cannot decode resource retrieved" },
+#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" },
+  { "ZAPI0011", "\"$1\": undefined $2" },
+  { "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." },
+  { "ZAPI0090", "a non root element cannot be validated in place." },
+  { "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" },
+  { "ZDDY0019", "\"$1\": collection $2 cannot be undone" },
+  { "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" },
+  { "ZDDY0035", "\"$1\": index inserting more than one key not allowed for general index" },
+  { "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" },
+  { "ZDST0025", "\"$1\": index cannot be declared as unique" },
+  { "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
+  { "ZJPE0001", "'$1': illegal JSON character" },
+  { "ZJPE0002", "\"$1\": illegal Unicode code-point" },
+  { "ZJPE0003", "'\\$1': illegal JSON character escape" },
+  { "ZJPE0004", "illegal JSON literal" },
+  { "ZJPE0005", "illegal JSON number" },
+  { "ZJPE0006", "\"$1\": unexpected JSON token" },
+  { "ZJPE0007", "unterminated JSON string" },
+  { "ZJPE0008", "\"$1\": illegal QName" },
+  { "ZJPE0009", "illegal empty string" },
+  { "ZJSE0001", "JSON serialization requires document or element node" },
+  { "ZJSE0002", "\"$1\" element missing required \"$2\" attribute" },
+  { "ZJSE0003", "\"$1\": illegal value for attribute \"$2\"" },
+  { "ZJSE0004", "\"$1\": illegal element${; must be \"2\"}${ or \"3\"}" },
+  { "ZJSE0005", "\"$1\": illegal child element of \"$2\" type; must be \"$3\"" },
+  { "ZJSE0006", "JSON type \"$1\" can not have a child element node" },
+  { "ZJSE0007", "JSON type \"$1\" can not have a child text node" },
+  { "ZJSE0008", "\"$1\": illegal value for JSON type \"$2\"" },
+  { "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}" },
+  { "ZOSE0006", "stream transcoding error ($1)" },
+  { "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\"" },
+  { "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" },
+  { "ZSTR0065", "Zorba did not close properly, objects may still in memory.\n$1 referenced URI(s) remain in the string pool.\nFor help avoiding this message please refer to http://www.zorba-xquery.com/html/documentation in section General Architecture -> Memory Leaks." },
+  { "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" },
+  { "ZWST0005", "\"$1\": function caching not possible; $2" },
+  { "ZWST0006", "\"$1\": function caching might not give the intended result because the function is declared as $2" },
+  { "ZXQD0001", "\"$1\": prefix not declared when calling function \"$2\" from $3" },
+  { "ZXQD0002", "\"$1\": $2" },
+  { "ZXQD0003", "inconsistent options to the parse-xml() function: $1" },
+  { "ZXQD0004", "invalid parameter: $1" },
+  { "ZXQD0005", "key with type $1 not subtype or castable to target type $2 of map ($3)" },
+  { "ZXQD0006", "\"$1\": invalid UTF-8 byte sequence" },
+  { "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" },
+  { "ZXQP0006", "\"$1\": unknown character encoding" },
+  { "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" },
+  { "~BadXMLNoOpeningTag", "closing tag without matching opening tag" },
+  { "~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" },
+  { "~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" },
+  { "~JSON parser error", "JSON parser error" },
+  { "~JSON serialization error", "JSON serialization error" },
+  { "~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 '?'" },
+  { "~NoSeqForConcat", "multi-item sequence can not be operand for concatenation" },
+  { "~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\"" },
+  { "~ParseFragmentInvalidOptions", "invalid options passed to the parse-xml:parse() function, the element must in the schema target namespace" },
+  { "~ParseFragmentOptionCombinationNotAllowed", "only one of the <schema-validate/>, <DTD-validate/> or <parse-external-parsed-entity/> options can be specified" },
+  { "~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\"" },
+  { "~TrailingChar_3", "trailing '$3'" },
+  { "~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" },
+  { "~XMLSchema", "XML schema" },
+  { "~XPST0003_Anotations", "function and variable annotations only available in XQuery 3.0 or later" },
+  { "~XPST0003_CountClause11", "\"count\" clause only available in XQuery 3.0 or later" },
+  { "~XPST0003_OuterForClause11", "\"outer-for\" clause only available in XQuery 3.0 or later" },
+  { "~XPST0003_PiTarget", "\"XML\" not allowed as target of a direct processing-instruction constructor" },
+  { "~XPST0003_Scripting", "scripting feature not available" },
+  { "~XPST0003_SwitchExpr11", "\"switch\" expressions only available in XQuery 3.0 or later" },
+  { "~XPST0003_TryCatchExpr11", "\"try/catch\" expressions only available in XQuery 3.0 or later" },
+  { "~XPST0003_WindowClause11", "\"window\" clause only available in XQuery 3.0 or later" },
+  { "~XPST0003_XQueryVersionAtLeast30_2", "\"$2\": XQuery version must be at least 3.0" },
+  { "~XPTY0004_FormatNumber_2", "\"the first parameter to the format-number() function is of type $2, which is not allowed" },
+  { "~XQST0106_CONFLICTING", "conflicting" },
+  { "~XQST0106_THE_SAME", "the same" },
+  { "~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)" },
+  { "~ZWST0005_PARAM_TYPE", "type of parameter $3 is $4 which is not a subtype of xs:anyAtomicType" },
+  { "~ZWST0005_RETURN_TYPE", "return type ($3) is not subtype of xs:anyAtomicType" },
+  { "~ZWST0005_UPDATING", "function is updating" },
+  { "~ZWST0005_VARIADIC", "function is variadic" },
+  { "~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:
+ */ 
+>>>>>>> MERGE-SOURCE

=== added file 'src/functions/pregenerated/func_access.cpp'
--- src/functions/pregenerated/func_access.cpp	1970-01-01 00:00:00 +0000
+++ src/functions/pregenerated/func_access.cpp	2012-04-13 09:26:20 +0000
@@ -0,0 +1,111 @@
+/*
+ * 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/access/access.h"
+#include "functions/func_access.h"
+
+
+namespace zorba{
+
+
+
+PlanIter_t fn_unparsed_text::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  expr& ann) const
+{
+  return new FnUnparsedTextIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_unparsed_text_available::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  expr& ann) const
+{
+  return new FnUnparsedTextAvailableIterator(sctx, loc, argv);
+}
+
+void populate_context_access(static_context* sctx)
+{
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_unparsed_text,
+        (createQName("http://www.w3.org/2005/xpath-functions","","unparsed-text";), 
+        GENV_TYPESYSTEM.STRING_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.STRING_TYPE_QUESTION),
+        FunctionConsts::FN_UNPARSED_TEXT_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_unparsed_text,
+        (createQName("http://www.w3.org/2005/xpath-functions","","unparsed-text";), 
+        GENV_TYPESYSTEM.STRING_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
+        GENV_TYPESYSTEM.STRING_TYPE_QUESTION),
+        FunctionConsts::FN_UNPARSED_TEXT_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_unparsed_text_available,
+        (createQName("http://www.w3.org/2005/xpath-functions","","unparsed-text-available";), 
+        GENV_TYPESYSTEM.STRING_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.STRING_TYPE_QUESTION),
+        FunctionConsts::FN_UNPARSED_TEXT_AVAILABLE_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_unparsed_text_available,
+        (createQName("http://www.w3.org/2005/xpath-functions","","unparsed-text-available";), 
+        GENV_TYPESYSTEM.STRING_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
+        GENV_TYPESYSTEM.STRING_TYPE_QUESTION),
+        FunctionConsts::FN_UNPARSED_TEXT_AVAILABLE_2);
+
+  }
+
+}
+
+
+}
+
+
+

=== added file 'src/functions/pregenerated/func_access.h'
--- src/functions/pregenerated/func_access.h	1970-01-01 00:00:00 +0000
+++ src/functions/pregenerated/func_access.h	2012-04-13 09:26:20 +0000
@@ -0,0 +1,79 @@
+/*
+ * 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_ACCESS_H
+#define ZORBA_FUNCTIONS_ACCESS_H
+
+
+#include "common/shared_types.h"
+#include "functions/function_impl.h"
+
+
+namespace zorba {
+
+
+void populate_context_access(static_context* sctx);
+
+
+
+
+//fn:unparsed-text
+class fn_unparsed_text : public function
+{
+public:
+  fn_unparsed_text(const signature& sig, FunctionConsts::FunctionKind kind)
+    : 
+    function(sig, kind)
+  {
+
+  }
+
+  CODEGEN_DECL();
+};
+
+
+//fn:unparsed-text-available
+class fn_unparsed_text_available : public function
+{
+public:
+  fn_unparsed_text_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/func_accessors.cpp'
--- src/functions/pregenerated/func_accessors.cpp	2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_accessors.cpp	2012-04-13 09:26:20 +0000
@@ -1,259 +1,259 @@
-/*
- * 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/accessors/accessors.h"
-#include "functions/func_accessors.h"
-
-
-namespace zorba{
-
-
-
-PlanIter_t fn_node_name_3_0::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  expr& ann) const
-{
-  return new NodeNameIterator(sctx, loc, argv);
-}
-PlanIter_t fn_node_name::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  expr& ann) const
-{
-  return new NodeNameIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_nilled::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  expr& ann) const
-{
-  return new NilledIterator(sctx, loc, argv);
-}
-
-
-PlanIter_t fn_data::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  expr& ann) const
-{
-  return new FnDataIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_base_uri::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  expr& ann) const
-{
-  return new BaseUriIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_document_uri_3_0::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  expr& ann) const
-{
-  return new DocumentUriIterator(sctx, loc, argv);
-}
-PlanIter_t fn_document_uri::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  expr& ann) const
-{
-  return new DocumentUriIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_root::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  expr& ann) const
-{
-  return new RootIterator(sctx, loc, argv);
-}
-
-void populate_context_accessors(static_context* sctx)
-{
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_node_name_3_0,
-        (createQName("http://www.w3.org/2005/xpath-functions","","node-name";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_QUESTION),
-        FunctionConsts::FN_NODE_NAME_0);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_node_name,
-        (createQName("http://www.w3.org/2005/xpath-functions","","node-name";), 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.QNAME_TYPE_QUESTION),
-        FunctionConsts::FN_NODE_NAME_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_nilled,
-        (createQName("http://www.w3.org/2005/xpath-functions","","nilled";), 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
-        FunctionConsts::FN_NILLED_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_string,
-        (createQName("http://www.w3.org/2005/xpath-functions","","string";), 
-        GENV_TYPESYSTEM.STRING_TYPE_ONE),
-        FunctionConsts::FN_STRING_0);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_string,
-        (createQName("http://www.w3.org/2005/xpath-functions","","string";), 
-        GENV_TYPESYSTEM.ITEM_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.STRING_TYPE_ONE),
-        FunctionConsts::FN_STRING_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_data,
-        (createQName("http://www.w3.org/2005/xpath-functions","","data";), 
-        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
-        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR),
-        FunctionConsts::FN_DATA_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_base_uri,
-        (createQName("http://www.w3.org/2005/xpath-functions","","base-uri";), 
-        GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
-        FunctionConsts::FN_BASE_URI_0);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_base_uri,
-        (createQName("http://www.w3.org/2005/xpath-functions","","base-uri";), 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
-        FunctionConsts::FN_BASE_URI_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_document_uri_3_0,
-        (createQName("http://www.w3.org/2005/xpath-functions","","document-uri";), 
-        GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
-        FunctionConsts::FN_DOCUMENT_URI_0);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_document_uri,
-        (createQName("http://www.w3.org/2005/xpath-functions","","document-uri";), 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
-        FunctionConsts::FN_DOCUMENT_URI_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_root,
-        (createQName("http://www.w3.org/2005/xpath-functions","","root";), 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION),
-        FunctionConsts::FN_ROOT_0);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_root,
-        (createQName("http://www.w3.org/2005/xpath-functions","","root";), 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION),
-        FunctionConsts::FN_ROOT_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/accessors/accessors.h"
+#include "functions/func_accessors.h"
+
+
+namespace zorba{
+
+
+
+PlanIter_t fn_node_name_3_0::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  expr& ann) const
+{
+  return new NodeNameIterator(sctx, loc, argv);
+}
+PlanIter_t fn_node_name::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  expr& ann) const
+{
+  return new NodeNameIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_nilled::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  expr& ann) const
+{
+  return new NilledIterator(sctx, loc, argv);
+}
+
+
+PlanIter_t fn_data::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  expr& ann) const
+{
+  return new FnDataIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_base_uri::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  expr& ann) const
+{
+  return new BaseUriIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_document_uri_3_0::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  expr& ann) const
+{
+  return new DocumentUriIterator(sctx, loc, argv);
+}
+PlanIter_t fn_document_uri::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  expr& ann) const
+{
+  return new DocumentUriIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_root::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  expr& ann) const
+{
+  return new RootIterator(sctx, loc, argv);
+}
+
+void populate_context_accessors(static_context* sctx)
+{
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_node_name_3_0,
+        (createQName("http://www.w3.org/2005/xpath-functions","","node-name";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_QUESTION),
+        FunctionConsts::FN_NODE_NAME_0);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_node_name,
+        (createQName("http://www.w3.org/2005/xpath-functions","","node-name";), 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.QNAME_TYPE_QUESTION),
+        FunctionConsts::FN_NODE_NAME_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_nilled,
+        (createQName("http://www.w3.org/2005/xpath-functions","","nilled";), 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
+        FunctionConsts::FN_NILLED_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_string,
+        (createQName("http://www.w3.org/2005/xpath-functions","","string";), 
+        GENV_TYPESYSTEM.STRING_TYPE_ONE),
+        FunctionConsts::FN_STRING_0);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_string,
+        (createQName("http://www.w3.org/2005/xpath-functions","","string";), 
+        GENV_TYPESYSTEM.ITEM_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.STRING_TYPE_ONE),
+        FunctionConsts::FN_STRING_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_data,
+        (createQName("http://www.w3.org/2005/xpath-functions","","data";), 
+        GENV_TYPESYSTEM.ITEM_TYPE_STAR, 
+        GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR),
+        FunctionConsts::FN_DATA_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_base_uri,
+        (createQName("http://www.w3.org/2005/xpath-functions","","base-uri";), 
+        GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
+        FunctionConsts::FN_BASE_URI_0);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_base_uri,
+        (createQName("http://www.w3.org/2005/xpath-functions","","base-uri";), 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
+        FunctionConsts::FN_BASE_URI_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_document_uri_3_0,
+        (createQName("http://www.w3.org/2005/xpath-functions","","document-uri";), 
+        GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
+        FunctionConsts::FN_DOCUMENT_URI_0);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_document_uri,
+        (createQName("http://www.w3.org/2005/xpath-functions","","document-uri";), 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
+        FunctionConsts::FN_DOCUMENT_URI_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_root,
+        (createQName("http://www.w3.org/2005/xpath-functions","","root";), 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION),
+        FunctionConsts::FN_ROOT_0);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_root,
+        (createQName("http://www.w3.org/2005/xpath-functions","","root";), 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION),
+        FunctionConsts::FN_ROOT_1);
+
+  }
+
+}
+
+
+}
+
+
+

=== modified file 'src/functions/pregenerated/func_accessors.h'
--- src/functions/pregenerated/func_accessors.h	2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_accessors.h	2012-04-13 09:26:20 +0000
@@ -1,208 +1,208 @@
-/*
- * 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_ACCESSORS_H
-#define ZORBA_FUNCTIONS_ACCESSORS_H
-
-
-#include "common/shared_types.h"
-#include "functions/function_impl.h"
-
-
-namespace zorba {
-
-
-void populate_context_accessors(static_context* sctx);
-
-
-
-
-//fn:node-name
-class fn_node_name_3_0 : public function
-{
-public:
-  fn_node_name_3_0(const signature& sig, FunctionConsts::FunctionKind kind)
-    : 
-    function(sig, kind)
-  {
-theXQueryVersion = StaticContextConsts::xquery_version_3_0;
-  }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
-
-  CODEGEN_DECL();
-};
-
-//fn:node-name
-class fn_node_name : public function
-{
-public:
-  fn_node_name(const signature& sig, FunctionConsts::FunctionKind kind)
-    : 
-    function(sig, kind)
-  {
-
-  }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
-
-  CODEGEN_DECL();
-};
-
-
-//fn:nilled
-class fn_nilled : public function
-{
-public:
-  fn_nilled(const signature& sig, FunctionConsts::FunctionKind kind)
-    : 
-    function(sig, kind)
-  {
-
-  }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
-
-  CODEGEN_DECL();
-};
-
-
-//fn:string
-class fn_string : public function
-{
-public:
-  fn_string(const signature& sig, FunctionConsts::FunctionKind kind)
-    : 
-    function(sig, kind)
-  {
-
-  }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
-
-  CODEGEN_DECL();
-};
-
-
-//fn:data
-class fn_data : public function
-{
-public:
-  fn_data(const signature& sig, FunctionConsts::FunctionKind kind)
-    : 
-    function(sig, kind)
-  {
-
-  }
-
-  xqtref_t getReturnType(const fo_expr* caller) const;
-
-  bool isMap(ulong producer) const { return producer == 0; }
-
-  BoolAnnotationValue ignoresSortedNodes(expr* fo, csize producer) const;
-
-  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, csize producer) const;
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const;
-
-  CODEGEN_DECL();
-};
-
-
-//fn:base-uri
-class fn_base_uri : public function
-{
-public:
-  fn_base_uri(const signature& sig, FunctionConsts::FunctionKind kind)
-    : 
-    function(sig, kind)
-  {
-
-  }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//fn:document-uri
-class fn_document_uri_3_0 : public function
-{
-public:
-  fn_document_uri_3_0(const signature& sig, FunctionConsts::FunctionKind kind)
-    : 
-    function(sig, kind)
-  {
-theXQueryVersion = StaticContextConsts::xquery_version_3_0;
-  }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
-
-  CODEGEN_DECL();
-};
-
-//fn:document-uri
-class fn_document_uri : public function
-{
-public:
-  fn_document_uri(const signature& sig, FunctionConsts::FunctionKind kind)
-    : 
-    function(sig, kind)
-  {
-
-  }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
-
-  CODEGEN_DECL();
-};
-
-
-//fn:root
-class fn_root : public function
-{
-public:
-  fn_root(const signature& sig, FunctionConsts::FunctionKind kind)
-    : 
-    function(sig, kind)
-  {
-
-  }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
-
-  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_ACCESSORS_H
+#define ZORBA_FUNCTIONS_ACCESSORS_H
+
+
+#include "common/shared_types.h"
+#include "functions/function_impl.h"
+
+
+namespace zorba {
+
+
+void populate_context_accessors(static_context* sctx);
+
+
+
+
+//fn:node-name
+class fn_node_name_3_0 : public function
+{
+public:
+  fn_node_name_3_0(const signature& sig, FunctionConsts::FunctionKind kind)
+    : 
+    function(sig, kind)
+  {
+theXQueryVersion = StaticContextConsts::xquery_version_3_0;
+  }
+
+  bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
+
+  CODEGEN_DECL();
+};
+
+//fn:node-name
+class fn_node_name : public function
+{
+public:
+  fn_node_name(const signature& sig, FunctionConsts::FunctionKind kind)
+    : 
+    function(sig, kind)
+  {
+
+  }
+
+  bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
+
+  CODEGEN_DECL();
+};
+
+
+//fn:nilled
+class fn_nilled : public function
+{
+public:
+  fn_nilled(const signature& sig, FunctionConsts::FunctionKind kind)
+    : 
+    function(sig, kind)
+  {
+
+  }
+
+  bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
+
+  CODEGEN_DECL();
+};
+
+
+//fn:string
+class fn_string : public function
+{
+public:
+  fn_string(const signature& sig, FunctionConsts::FunctionKind kind)
+    : 
+    function(sig, kind)
+  {
+
+  }
+
+  bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
+
+  CODEGEN_DECL();
+};
+
+
+//fn:data
+class fn_data : public function
+{
+public:
+  fn_data(const signature& sig, FunctionConsts::FunctionKind kind)
+    : 
+    function(sig, kind)
+  {
+
+  }
+
+  xqtref_t getReturnType(const fo_expr* caller) const;
+
+  bool isMap(ulong producer) const { return producer == 0; }
+
+  BoolAnnotationValue ignoresSortedNodes(expr* fo, csize producer) const;
+
+  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, csize producer) const;
+
+  bool mustCopyInputNodes(expr* fo, csize producer) const;
+
+  CODEGEN_DECL();
+};
+
+
+//fn:base-uri
+class fn_base_uri : public function
+{
+public:
+  fn_base_uri(const signature& sig, FunctionConsts::FunctionKind kind)
+    : 
+    function(sig, kind)
+  {
+
+  }
+
+  bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//fn:document-uri
+class fn_document_uri_3_0 : public function
+{
+public:
+  fn_document_uri_3_0(const signature& sig, FunctionConsts::FunctionKind kind)
+    : 
+    function(sig, kind)
+  {
+theXQueryVersion = StaticContextConsts::xquery_version_3_0;
+  }
+
+  bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
+
+  CODEGEN_DECL();
+};
+
+//fn:document-uri
+class fn_document_uri : public function
+{
+public:
+  fn_document_uri(const signature& sig, FunctionConsts::FunctionKind kind)
+    : 
+    function(sig, kind)
+  {
+
+  }
+
+  bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
+
+  CODEGEN_DECL();
+};
+
+
+//fn:root
+class fn_root : public function
+{
+public:
+  fn_root(const signature& sig, FunctionConsts::FunctionKind kind)
+    : 
+    function(sig, kind)
+  {
+
+  }
+
+  bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+} //namespace zorba
+
+
+#endif
+/*
+ * Local variables:
+ * mode: c++
+ * End:
+ */ 

=== modified file 'src/functions/pregenerated/func_any_uri.cpp'
--- src/functions/pregenerated/func_any_uri.cpp	2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_any_uri.cpp	2012-04-13 09:26:20 +0000
@@ -1,76 +1,76 @@
-/*
- * 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/any_uri/any_uri.h"
-#include "functions/func_any_uri.h"
-
-
-namespace zorba{
-
-
-
-PlanIter_t fn_resolve_uri::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  expr& ann) const
-{
-  return new ResolveUriIterator(sctx, loc, argv);
-}
-
-void populate_context_any_uri(static_context* sctx)
-{
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_resolve_uri,
-        (createQName("http://www.w3.org/2005/xpath-functions","","resolve-uri";), 
-        GENV_TYPESYSTEM.STRING_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
-        FunctionConsts::FN_RESOLVE_URI_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_resolve_uri,
-        (createQName("http://www.w3.org/2005/xpath-functions","","resolve-uri";), 
-        GENV_TYPESYSTEM.STRING_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
-        GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
-        FunctionConsts::FN_RESOLVE_URI_2);
-
-  }
-
-}
-
-
-}
-
-
-
+/*
+ * 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/any_uri/any_uri.h"
+#include "functions/func_any_uri.h"
+
+
+namespace zorba{
+
+
+
+PlanIter_t fn_resolve_uri::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  expr& ann) const
+{
+  return new ResolveUriIterator(sctx, loc, argv);
+}
+
+void populate_context_any_uri(static_context* sctx)
+{
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_resolve_uri,
+        (createQName("http://www.w3.org/2005/xpath-functions","","resolve-uri";), 
+        GENV_TYPESYSTEM.STRING_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
+        FunctionConsts::FN_RESOLVE_URI_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_resolve_uri,
+        (createQName("http://www.w3.org/2005/xpath-functions","","resolve-uri";), 
+        GENV_TYPESYSTEM.STRING_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
+        GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
+        FunctionConsts::FN_RESOLVE_URI_2);
+
+  }
+
+}
+
+
+}
+
+
+

=== modified file 'src/functions/pregenerated/func_any_uri.h'
--- src/functions/pregenerated/func_any_uri.h	2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_any_uri.h	2012-04-13 09:26:20 +0000
@@ -1,66 +1,66 @@
-/*
- * 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_ANY_URI_H
-#define ZORBA_FUNCTIONS_ANY_URI_H
-
-
-#include "common/shared_types.h"
-#include "functions/function_impl.h"
-
-
-namespace zorba {
-
-
-void populate_context_any_uri(static_context* sctx);
-
-
-
-
-//fn:resolve-uri
-class fn_resolve_uri : public function
-{
-public:
-  fn_resolve_uri(const signature& sig, FunctionConsts::FunctionKind kind)
-    : 
-    function(sig, kind)
-  {
-
-  }
-
-  bool accessesDynCtx() const { return true; }
-
-  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_ANY_URI_H
+#define ZORBA_FUNCTIONS_ANY_URI_H
+
+
+#include "common/shared_types.h"
+#include "functions/function_impl.h"
+
+
+namespace zorba {
+
+
+void populate_context_any_uri(static_context* sctx);
+
+
+
+
+//fn:resolve-uri
+class fn_resolve_uri : public function
+{
+public:
+  fn_resolve_uri(const signature& sig, FunctionConsts::FunctionKind kind)
+    : 
+    function(sig, kind)
+  {
+
+  }
+
+  bool accessesDynCtx() const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+} //namespace zorba
+
+
+#endif
+/*
+ * Local variables:
+ * mode: c++
+ * End:
+ */ 

=== modified file 'src/functions/pregenerated/func_base64.cpp'
--- src/functions/pregenerated/func_base64.cpp	2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_base64.cpp	2012-04-13 09:26:20 +0000
@@ -1,85 +1,85 @@
-/*
- * 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/base64/base64.h"
-#include "functions/func_base64.h"
-
-
-namespace zorba{
-
-
-
-PlanIter_t fn_zorba_base64_decode::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  expr& ann) const
-{
-  return new Base64DecodeIterator(sctx, loc, argv);
-}
-
-PlanIter_t fn_zorba_base64_encode::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  expr& ann) const
-{
-  return new Base64EncodeIterator(sctx, loc, argv);
-}
-
-void populate_context_base64(static_context* sctx)
-{
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_zorba_base64_decode,
-        (createQName("http://www.zorba-xquery.com/modules/converters/base64","","decode";), 
-        GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE, 
-        GENV_TYPESYSTEM.STRING_TYPE_ONE),
-        FunctionConsts::FN_ZORBA_BASE64_DECODE_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, fn_zorba_base64_encode,
-        (createQName("http://www.zorba-xquery.com/modules/converters/base64","","encode";), 
-        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
-        GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE),
-        FunctionConsts::FN_ZORBA_BASE64_ENCODE_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/base64/base64.h"
+#include "functions/func_base64.h"
+
+
+namespace zorba{
+
+
+
+PlanIter_t fn_zorba_base64_decode::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  expr& ann) const
+{
+  return new Base64DecodeIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_zorba_base64_encode::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  expr& ann) const
+{
+  return new Base64EncodeIterator(sctx, loc, argv);
+}
+
+void populate_context_base64(static_context* sctx)
+{
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_zorba_base64_decode,
+        (createQName("http://www.zorba-xquery.com/modules/converters/base64","","decode";), 
+        GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE, 
+        GENV_TYPESYSTEM.STRING_TYPE_ONE),
+        FunctionConsts::FN_ZORBA_BASE64_DECODE_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_zorba_base64_encode,
+        (createQName("http://www.zorba-xquery.com/modules/converters/base64","","encode";), 
+        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
+        GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE),
+        FunctionConsts::FN_ZORBA_BASE64_ENCODE_1);
+
+  }
+
+}
+
+
+}
+
+
+

=== modified file 'src/functions/pregenerated/func_base64.h'
--- src/functions/pregenerated/func_base64.h	2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_base64.h	2012-04-13 09:26:20 +0000
@@ -1,79 +1,79 @@
-/*
- * 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_BASE64_H
-#define ZORBA_FUNCTIONS_BASE64_H
-
-
-#include "common/shared_types.h"
-#include "functions/function_impl.h"
-
-
-namespace zorba {
-
-
-void populate_context_base64(static_context* sctx);
-
-
-
-
-//fn-zorba-base64:decode
-class fn_zorba_base64_decode : public function
-{
-public:
-  fn_zorba_base64_decode(const signature& sig, FunctionConsts::FunctionKind kind)
-    : 
-    function(sig, kind)
-  {
-
-  }
-
-  CODEGEN_DECL();
-};
-
-
-//fn-zorba-base64:encode
-class fn_zorba_base64_encode : public function
-{
-public:
-  fn_zorba_base64_encode(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_BASE64_H
+#define ZORBA_FUNCTIONS_BASE64_H
+
+
+#include "common/shared_types.h"
+#include "functions/function_impl.h"
+
+
+namespace zorba {
+
+
+void populate_context_base64(static_context* sctx);
+
+
+
+
+//fn-zorba-base64:decode
+class fn_zorba_base64_decode : public function
+{
+public:
+  fn_zorba_base64_decode(const signature& sig, FunctionConsts::FunctionKind kind)
+    : 
+    function(sig, kind)
+  {
+
+  }
+
+  CODEGEN_DECL();
+};
+
+
+//fn-zorba-base64:encode
+class fn_zorba_base64_encode : public function
+{
+public:
+  fn_zorba_base64_encode(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_booleans.cpp'
--- src/functions/pregenerated/func_booleans.cpp	2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_booleans.cpp	2012-04-13 09:26:20 +0000
@@ -1,110 +1,110 @@
-/*
- * 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/booleans/booleans.h"
-#include "functions/func_booleans.h"
-
-
-namespace zorba{
-
-
-
-PlanIter_t op_is_same_node::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  expr& ann) const
-{
-  return new IsSameNodeIterator(sctx, loc, argv);
-}
-
-PlanIter_t op_node_before::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  expr& ann) const
-{
-  return new NodeBeforeIterator(sctx, loc, argv);
-}
-
-PlanIter_t op_node_after::codegen(
-  CompilerCB*,
-  static_context* sctx,
-  const QueryLoc& loc,
-  std::vector<PlanIter_t>& argv,
-  expr& ann) const
-{
-  return new NodeAfterIterator(sctx, loc, argv);
-}
-
-void populate_context_booleans(static_context* sctx)
-{
-  {
-    
-
-    DECL_WITH_KIND(sctx, op_is_same_node,
-        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","is-same-node";), 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
-        FunctionConsts::OP_IS_SAME_NODE_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, op_node_before,
-        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","node-before";), 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
-        FunctionConsts::OP_NODE_BEFORE_2);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, op_node_after,
-        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","node-after";), 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
-        GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
-        FunctionConsts::OP_NODE_AFTER_2);
-
-  }
-
-}
-
-
-}
-
-
-
+/*
+ * 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/booleans/booleans.h"
+#include "functions/func_booleans.h"
+
+
+namespace zorba{
+
+
+
+PlanIter_t op_is_same_node::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  expr& ann) const
+{
+  return new IsSameNodeIterator(sctx, loc, argv);
+}
+
+PlanIter_t op_node_before::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  expr& ann) const
+{
+  return new NodeBeforeIterator(sctx, loc, argv);
+}
+
+PlanIter_t op_node_after::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  expr& ann) const
+{
+  return new NodeAfterIterator(sctx, loc, argv);
+}
+
+void populate_context_booleans(static_context* sctx)
+{
+  {
+    
+
+    DECL_WITH_KIND(sctx, op_is_same_node,
+        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","is-same-node";), 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
+        FunctionConsts::OP_IS_SAME_NODE_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, op_node_before,
+        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","node-before";), 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
+        FunctionConsts::OP_NODE_BEFORE_2);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, op_node_after,
+        (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","node-after";), 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
+        FunctionConsts::OP_NODE_AFTER_2);
+
+  }
+
+}
+
+
+}
+
+
+

=== modified file 'src/functions/pregenerated/func_booleans.h'
--- src/functions/pregenerated/func_booleans.h	2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_booleans.h	2012-04-13 09:26:20 +0000
@@ -1,100 +1,100 @@
-/*
- * 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_BOOLEANS_H
-#define ZORBA_FUNCTIONS_BOOLEANS_H
-
-
-#include "common/shared_types.h"
-#include "functions/function_impl.h"
-
-
-namespace zorba {
-
-
-void populate_context_booleans(static_context* sctx);
-
-
-
-
-//op:is-same-node
-class op_is_same_node : public function
-{
-public:
-  op_is_same_node(const signature& sig, FunctionConsts::FunctionKind kind)
-    : 
-    function(sig, kind)
-  {
-
-  }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//op:node-before
-class op_node_before : public function
-{
-public:
-  op_node_before(const signature& sig, FunctionConsts::FunctionKind kind)
-    : 
-    function(sig, kind)
-  {
-
-  }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
-
-  CODEGEN_DECL();
-};
-
-
-//op:node-after
-class op_node_after : public function
-{
-public:
-  op_node_after(const signature& sig, FunctionConsts::FunctionKind kind)
-    : 
-    function(sig, kind)
-  {
-
-  }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
-
-  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_BOOLEANS_H
+#define ZORBA_FUNCTIONS_BOOLEANS_H
+
+
+#include "common/shared_types.h"
+#include "functions/function_impl.h"
+
+
+namespace zorba {
+
+
+void populate_context_booleans(static_context* sctx);
+
+
+
+
+//op:is-same-node
+class op_is_same_node : public function
+{
+public:
+  op_is_same_node(const signature& sig, FunctionConsts::FunctionKind kind)
+    : 
+    function(sig, kind)
+  {
+
+  }
+
+  bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//op:node-before
+class op_node_before : public function
+{
+public:
+  op_node_before(const signature& sig, FunctionConsts::FunctionKind kind)
+    : 
+    function(sig, kind)
+  {
+
+  }
+
+  bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+//op:node-after
+class op_node_after : public function
+{
+public:
+  op_node_after(const signature& sig, FunctionConsts::FunctionKind kind)
+    : 
+    function(sig, kind)
+  {
+
+  }
+
+  bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
+
+  CODEGEN_DECL();
+};
+
+
+} //namespace zorba
+
+
+#endif
+/*
+ * Local variables:
+ * mode: c++
+ * End:
+ */ 

=== modified file 'src/functions/pregenerated/func_collections.cpp'
--- src/functions/pregenerated/func_collections.cpp	2012-03-28 23:58:23 +0000
+++ src/functions/pregenerated/func_collections.cpp	2012-04-13 09:26:20 +0000
@@ -1,901 +1,934 @@
-/*
- * 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,
-  expr& 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,
-  expr& 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,
-  expr& 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,
-  expr& 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,
-  expr& 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,
-  expr& 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,
-  expr& 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,
-  expr& 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,
-  expr& 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,
-  expr& 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,
-  expr& 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,
-  expr& 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_truncate,
-        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","truncate";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_TRUNCATE_1);
-
-  }
-
-
-  {
-    
-
-    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_truncate,
-        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","truncate";), 
-        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
-        GENV_TYPESYSTEM.EMPTY_TYPE),
-        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_TRUNCATE_1);
-
-  }
-
-
-  {
-    
-
-    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,
+  expr& 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,
+  expr& 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,
+  expr& 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,
+  expr& 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,
+  expr& 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,
+  expr& 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,
+  expr& 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,
+  expr& 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,
+  expr& 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,
+  expr& 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,
+  expr& 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,
+  expr& ann) const
+{
+  return new DeclaredICsIterator(sctx, loc, argv);
+}
+
+PlanIter_t fn_uri_collection::codegen(
+  CompilerCB*,
+  static_context* sctx,
+  const QueryLoc& loc,
+  std::vector<PlanIter_t>& argv,
+  expr& ann) const
+{
+  return new FnURICollectionIterator(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_truncate,
+        (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","truncate";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_COLLECTIONS_STATIC_DML_TRUNCATE_1);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, zorba_store_collections_static_dml_truncate,
+        (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","truncate";), 
+        GENV_TYPESYSTEM.QNAME_TYPE_ONE, 
+        GENV_TYPESYSTEM.EMPTY_TYPE),
+        FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_TRUNCATE_1);
+
+  }
+
+
+  {
+    
+
+    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);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_uri_collection,
+        (createQName("http://www.w3.org/2005/xpath-functions","","uri-collection";), 
+        GENV_TYPESYSTEM.ANY_URI_TYPE_STAR),
+        FunctionConsts::FN_URI_COLLECTION_0);
+
+  }
+
+
+  {
+    
+
+    DECL_WITH_KIND(sctx, fn_uri_collection,
+        (createQName("http://www.w3.org/2005/xpath-functions","","uri-collection";), 
+        GENV_TYPESYSTEM.STRING_TYPE_QUESTION, 
+        GENV_TYPESYSTEM.ANY_URI_TYPE_STAR),
+        FunctionConsts::FN_URI_COLLECTION_1);
+
+  }
+
+}
+
+
+}
+
+
+

=== modified file 'src/functions/pregenerated/func_collections.h'
--- src/functions/pregenerated/func_collections.h	2012-03-28 23:58:23 +0000
+++ src/functions/pregenerated/func_collections.h	2012-04-13 09:26:20 +0000
@@ -1,675 +1,690 @@
-/*
- * 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; }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
-
-  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; }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
-
-  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; }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
-
-  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; }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
-
-  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; }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
-
-  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; }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
-
-  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; }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 2; }
-
-  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; }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 2; }
-
-  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; }
-
-  bool propagatesInputNodes(expr* fo, csize producer) const;
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
-
-  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; }
-
-  bool propagatesInputNodes(expr* fo, csize producer) const;
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
-
-  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; }
-
-  bool propagatesInputNodes(expr* fo, csize producer) const;
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
-
-  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; }
-
-  bool propagatesInputNodes(expr* fo, csize producer) const;
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 2; }
-
-  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; }
-
-  bool propagatesInputNodes(expr* fo, csize producer) const;
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 2; }
-
-  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, csize producer) const;
-
-  BoolAnnotationValue ignoresDuplicateNodes(expr* fo, csize producer) const;
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 0; }
-
-  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; }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
-
-  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; }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
-
-  CODEGEN_DECL();
-};
-
-
-//zorba-store-collections-static-dml:truncate
-class zorba_store_collections_static_dml_truncate : public function
-{
-public:
-  zorba_store_collections_static_dml_truncate(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; }
-
-  bool mustCopyInputNodes(expr* fo, csize producer) 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 

Follow ups