blob: e547d36fa54c9b3761740bd2fd71da810991ac17 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
#ifndef WODEN_SCHEMA_CONSTANTS_H
#define WODEN_SCHEMA_CONSTANTS_H
/**
* @file axis2_schema_constants.h
* @brief Axis2 Xml Schema Constants
* Constants for XML Schema elements, attributes and URIs.
*/
#include <axis2_utils.h>
#include <axis2_qname.h>
#ifdef __cplusplus
extern "C"
{
#endif
/** @defgroup woden_schema_constants
* @ingroup woden_schema
* @{
*/
/*********************************** Constansts********************************/
/* Schema attribute names */
#define WODEN_ATTR_ID "id"
#define WODEN_ATTR_SCHEMA_LOCATION "schemaLocation"
/* Schema element names */
#define WODEN_ELEM_SCHEMA "schema"
#define WODEN_ELEM_SCHEMA_IMPORT "import"
#define WODEN_ELEM_SCHEMA_INCLUDE "include"
#define WODEN_ELEM_SCHEMA_REDEFINE "redefine"
/* Schema uri */
#define WODEN_NS_URI_XSD_1999 "http://www.w3.org/1999/XMLSchema"
#define WODEN_NS_URI_XSD_2000 "http://www.w3.org/2000/10/XMLSchema"
#define WODEN_NS_URI_XSD_2001 "http://www.w3.org/2001/XMLSchema"
/* <xs:schema> qnames */
#define WODEN_Q_ELEM_XSD_1999 "schema|http://www.w3.org/1999/XMLSchema"
#define WODEN_Q_ELEM_XSD_2000 "schema|http://www.w3.org/2000/10/XMLSchema"
#define WODEN_Q_ELEM_XSD_2001 "schema|http://www.w3.org/2001/XMLSchema"
/* <xs:import> qnames */
#define WODEN_Q_ELEM_IMPORT_XSD_1999 "import|http://www.w3.org/1999/XMLSchema"
#define WODEN_Q_ELEM_IMPORT_XSD_2000 "import|http://www.w3.org/2000/10/XMLSchema"
#define WODEN_Q_ELEM_IMPORT_XSD_2001 "import|http://www.w3.org/2001/XMLSchema"
/* TODO remove <include> if not used in Woden */
/* <xs:include> qnames */
#define WODEN_Q_ELEM_INCLUDE_XSD_1999 "include|http://www.w3.org/1999/XMLSchema"
#define WODEN_Q_ELEM_INCLUDE_XSD_2000 "include|http://www.w3.org/2000/10/XMLSchema"
#define WODEN_Q_ELEM_INCLUDE_XSD_2001 "include|http://www.w3.org/2001/XMLSchema"
/* TODO remove <redefine> if not used in Woden */
/* <xs:redefine> qnames */
#define WODEN_Q_ELEM_REDEFINE_XSD_1999 "redefine|http://www.w3.org/1999/XMLSchema"
#define WODEN_Q_ELEM_REDEFINE_XSD_2000 "redefine|http://www.w3.org/2000/10/XMLSchema"
#define WODEN_Q_ELEM_REDEFINE_XSD_2001 "redefine|http://www.w3.org/2001/XMLSchema"
/*********************************** Constants*********************************/
axis2_bool_t AXIS2_CALL
woden_schema_constants_compare_schema(
axis2_qname_t *schema,
const axis2_env_t *env);
axis2_bool_t AXIS2_CALL
woden_schema_constants_compare_include(
axis2_qname_t *include,
const axis2_env_t *env);
axis2_bool_t AXIS2_CALL
woden_schema_constants_compare_import(
axis2_qname_t *import,
const axis2_env_t *env);
axis2_bool_t AXIS2_CALL
woden_schema_constants_compare_redefine(
axis2_qname_t *redefine,
const axis2_env_t *env);
#ifdef __cplusplus
}
#endif
#endif /* WODEN_SCHEMA_CONSTANTS_H */