

























|
| |
Schema is not fully supported in Xerces-C yet. But an
experimental implementation of a subset of the W3C XML
Schema language is now available for review in Xerces1.5.
You should not consider this implementation complete or
correct. The limitations of this implementation are
detailed below. Please read this document before using
Xerces 1.5.
|
| |
The Xerces 1.5 contains an implementation
of a subset of the W3C XML Schema Language as specified
in the 2 May 2001 Recommendation for Structures
and
Datatypes. The parsers contained in this package are
able to read and validate XML documents with the grammar specified
in either DTD or XML Schema format.
We intend to update this package until it implements all
the functionality of the current XML Schema Recommendation.
If you are interested in a particular unimplemented feature, or
if you have any feedback on the implementation design,
we welcome your input to the
Xerces-C mailing list xerces-c-dev@xml.apache.org .
|
| |
The XML Schema implementation in the Xerces 1.5 is a
subset of the features defined in the 2 May 2001 XML Schema Recommendation.
|
 |  |  |  | Features/Datatypes Supported |  |  |  |  |
| |
- Partial Simple type support
- Yes: atomic simple type
- No: union and list
- Partial Complex type suppport
- Yes: choice, sequence
- No: group, all
- Element and Attribute Declaration
- SubsitutionGroup
- Subset of Built-in Datatypes
- Primitive Datatypes: string, boolean, decimal, hexbinary, base64binary
- Derived Datatypes: integer
- xsi Markup
- Yes: xsi:nil
- Yes: xsi:schemaLocation and xsi:noNamespaceSchemaLocation
- No: xsi:type
Additional Experimental Features (not tested and subject to change, use as is)
- Complex type derivation support (simpleContent and complexContent).
- Element and attribute re-use using "ref".
- Include support
- Import Support
Other features in the Schema recommendation such as "redefine",
"identity constraints" and others which are not mentioned above, are not supported
yet. Also, particle and model group constraint checking is not yet fully implemented. But development is
continuing and we target to implement all the features of the current XML Schema
Recommendation before end of this year. Please note that the date is tentative and
subject to change.
|
| |
The schema must be specified by the xsi:schemaLocation or
xsi:noNamespaceSchemaLocation attribute on the root
element of the document. The xsi prefix must be bound to the
Schema document instance namespace, as specified by the
Recommendation. See the sample provided in the Usage section.
|
|
|