xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Xerces Wiki] Update of "XML Schema 1.1 Assertions" by assertions
Date Mon, 15 Sep 2008 06:17:28 GMT
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

------------------------------------------------------------------------------
  
  '''Design approach'''
  
- The Complex Type traverser of Xerces is modified to handle assertions. XSModel is also modified
as well, to handle assertions.
+ XSModel is modified to handle the new 'assert' feature, for XML Schema Simple and Complex
Types.
+ 
+ Since, now 'assert' is a new Facet, to implement asserts for Simple Types, the current Facets
data structures are enhanced to support XML Schema 1.1 assertions. The file XSDAbstractTraverser.java
handles processing of Facets, which is modified to handle the new, 'assert' Facet.
+ 
+ To implement asserts for Complex Types, the Complex Type traverser of Xerces is modified.
  
  '''Open issues'''
  
-  1. XPath 2.0 processing for ''test'' attributes of xs:assert elements is not yet written.
The current implementation of xs:assert elements would return true for any value of ''test''
attribute.
+  1. XPath 2.0 processing for ''test'' attributes of xs:assert elements is not yet written.
The current implementation of xs:assert elements would return true for any value of ''test''
attribute. There might be possibility to reuse some XPath 2.0 processing code, from XML Schema
1.1 Type alternative component, which would be explored.
   1. In the Schema grammar above, there is a problem with 'assert' facet in Complex Types
with Simple Content. It's not possible to distinguish between the 'assert' facet and the 'assert'
element of the Complex Type.[[BR]]This issue is pending with the XML Schema WG, and it might
be possible, that 'assert' facet might get removed from Complex Types with Simple Content,
or be renamed to something like, 'assertFacet'.
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org


Mime
View raw message