1 /*
2  * Copyright 2006-2008 The FLWOR Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #ifndef ZORBA_STATIC_CONTEXT_CONSTS_API_H
17 #define ZORBA_STATIC_CONTEXT_CONSTS_API_H
18 
19 namespace zorba
20 {
21 
22 /** \brief XPath 1.0 compatibility mode as defined in
23  *         http://www.w3.org/TR/xquery/#static_context
24  */
25 typedef enum { xpath2_0, xpath1_0 } xpath1_0compatib_mode_t;
26 
27 /** \brief Ordering mode as defined in http://www.w3.org/TR/xquery/#static_context.
28  */
29 typedef enum { ordered, unordered } ordering_mode_t;
30 
31 /** \brief Default order for empty sequences as defined in
32  *         http://www.w3.org/TR/xquery/#static_context.
33  */
34 typedef enum { empty_greatest, empty_least } order_empty_mode_t;
35 
36 /** \brief Inherit part of the Copy-namespace mode as defined in
37  *         http://www.w3.org/TR/xquery/#static_context.
38  */
39 typedef enum  { inherit_ns, no_inherit_ns } inherit_mode_t;
40 
41 /** \brief Preserve part of the Copy-namespace mode as defined in
42  *         http://www.w3.org/TR/xquery/#static_context.
43  */
44 typedef enum { preserve_ns, no_preserve_ns } preserve_mode_t;
45 
46 /** \brief Boundary-space policy as defined in http://www.w3.org/TR/xquery/#static_context.
47  */
48 typedef enum { preserve_space, strip_space } boundary_space_mode_t;
49 
50 /** \brief Construction mode as defined in http://www.w3.org/TR/xquery/#static_context.
51  */
52 typedef enum { preserve_cons, strip_cons } construction_mode_t;
53 
54 /** \brief The XQuery version, taken from the version declaration, an XQuery 3.0 feature.
55  */
56 typedef enum { xquery_version_1_0 = 100, xquery_version_3_0 = 300 } xquery_version_t;
57 
58 /** \brief Revalidation mode as defined in
59  *         http://www.w3.org/TR/xquery-update-10/#id-revalidation-declaration
60  *  Note: when DTD validation is needed the use of validate_lax_dtd is required.
61  */
62 typedef enum { validate_skip, validate_lax, validate_lax_dtd, validate_strict } validation_mode_t;
63 
64 /** \brief Maintenance mode of an index as defined
65  *         in the XQuery Data Definition Facility
66  */
67 typedef enum { index_automatic, index_manual } index_maintenance_mode_t;
68 
69 /** \brief Container kind of an index as defined
70  *         in the XQuery Data Definition Facility
71  */
72 typedef enum { index_hash, index_tree } index_container_kind_t;
73 
74 }
75 
76 #endif
77 /* vim:set et sw=2 ts=2: */
78