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 
17 #ifndef ZORBA_NS_CONSTS_H
18 #define ZORBA_NS_CONSTS_H
19 
20 // TODO make these static members of the context
21 
22 ///////////////////////////////////////////////////////////////////////////////
23 
24 #define W3C_NS                  "http://www.w3.org/"
25 #define W3C_CODEPT_COLLATION_NS \
26   W3C_NS "2005/xpath-functions/collation/codepoint"
27 
28 ///////////////////////////////////////////////////////////////////////////////
29 
30 #define XMLNS_NS                W3C_NS "2000/xmlns/"
31 
32 #define XML_NS                  W3C_NS "XML/1998/namespace"
33 #define XML_SCHEMA_NS           W3C_NS "2001/XMLSchema"
34 #define XML_SCHEMA_PREFIX       "xs"
35 
36 #define XQUERY_ERR_NS           W3C_NS "2005/xqt-errors"                //not predeclared in XQuery 3.0
37 #define XQUERY_LOCAL_FN_NS      W3C_NS "2005/xquery-local-functions"
38 #define XQUERY_XPATH_FN_NS      W3C_NS "2005/xpath-functions"
39 #define XQUERY_MATH_FN_NS       W3C_NS "2005/xpath-functions/math"      //not predeclared in XQuery 3.0
40 
41 #define XSI_NS                  W3C_NS "2001/XMLSchema-instance"
42 
43 #ifdef ZORBA_WITH_JSON
44 #define JSONIQ_ERR_NS           "http://jsoniq.org/errors"
45 #endif
46 
47 ///////////////////////////////////////////////////////////////////////////////
48 
49 #define ZORBA_NS                "http://www.zorba-xquery.com/"
50 
51 #define ZORBA_DEF_COLLATION_NS  ZORBA_COLLATION_NS_BASE "IDENTICAL/en/US"
52 
53 #define ZORBA_ERR_NS            ZORBA_NS "errors"
54 #define ZORBA_WARN_NS           ZORBA_NS "warnings"
55 
56 #define ZORBA_FEATURES_NS       ZORBA_NS "features"
57 #define ZORBA_ANNOTATIONS_NS    ZORBA_NS "annotations"
58 #define ZORBA_COLLATION_NS_BASE ZORBA_NS "collations/"
59 #define ZORBA_EXTENSIONS_NS     ZORBA_NS "extensions"
60 
61 // TODO these probably should not be in "ns_consts"
62 #define ZORBA_OPTION_ENABLE_DTD "enable-dtd"
63 #define ZORBA_OPTION_MODULE_VERSION "module-version"
64 #define ZORBA_OPTION_ZORBA_VERSION "zorba-version"
65 
66 ///////////////////////////////////////////////////////////////////////////////
67 
68 #endif /* ZORBA_NS_CONSTS_H */
69 /*
70  * Local variables:
71  * mode: c++
72  * End:
73  */
74 /* vim:set et sw=2 ts=2: */
75