Dear Wiki user, You have subscribed to a wiki page or wiki category on "Xerces Wiki" for change notification.
The following page has been changed by assertions: http://wiki.apache.org/xerces/XML_Schema_1%2e1_Assertions ------------------------------------------------------------------------------ This page describes implementation details of XML Schema 1.1 assertions feature, in [http://xerces.apache.org/xerces2-j/ Xerces-J] XML Schema processor. + '''Status of assertions development:''' The assertions traverser (the Xerces component responsible for recognizing xs:assert and xs:assertion syntax in XML Schema instances, as defined in the XML Schema specification) support both for Simple and Complex type definitions is complete, and Xerces team has checked in the code for this, at the SVN repository (https://svn.apache.org/repos/asf/xerces/java/branches/xml-schema-1.1-dev/). The development of XPath 2.0 processing for assertions is underway. A major XPath 2.0 integration algorithm is complete and tested with Xerces Schema validator. We are working further to enhance it. + '''Assertions usage in Complex Types (as defined in the XML Schema 1.1 spec)''' @@ -69, +71 @@ Content: (annotation?, openContent?, ((group | all | choice | sequence)?, ((attribute | attributeGroup)*, anyAttribute?), '''assert'''*)) </extension> + '''Assertions usage in Simple Types (as defined in the XML Schema 1.1 spec)''' <simpleType @@ -86, +89 @@ Content: (annotation?, (simpleType?, (minExclusive | minInclusive | maxExclusive | maxInclusive | totalDigits | fractionDigits | maxScale | minScale | length | minLength | maxLength | enumeration | whiteSpace | pattern | '''assertion''' | {any with namespace: ##other})*)) </restriction> + '''Design approach''' The Xerces XSModel is modified to handle assertions, for the XML Schema 1.1 Simple and Complex types. @@ -93, +97 @@ Since 'assertion' is now a new facet for XML Schema Simple types, the current facet data structures, and the facet traverser are enhanced to support XML Schema 1.1 assertions. To implement assertions for Complex Types, the Complex Type traverser of Xerces is modified. + '''Assertions XPath 2.0 processing implementation''' @@ -104, +109 @@ 1. [http://psychopath.sourceforge.net/ PsychoPath] + '''References:''' + + 1. [http://www.ibm.com/developerworks/xml/library/x-xml11pt1/ An introduction to XML Schema 1.1, An overview of the key improvements over XML Schema 1.0 and an in-depth look at datatypes] + 1. [http://www.ibm.com/developerworks/library/x-xml11pt2/ An introduction to XML Schema 1.1, Co-occurence constraints using XPath 2.0] + + ---- Mukul Gandhi --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
