[ https://issues.apache.org/jira/browse/XERCESJ-1332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641827#action_12641827 ]
Mukul Gandhi commented on XERCESJ-1332: --------------------------------------- Requesting you to please review this patch. I'll be happy to incorporate any suggested changes. Regards, Mukul > XML Schema 1.1 assertions patch, for Complex types > -------------------------------------------------- > > Key: XERCESJ-1332 > URL: https://issues.apache.org/jira/browse/XERCESJ-1332 > Project: Xerces2-J > Issue Type: New Feature > Components: XML Schema 1.1 Structures > Affects Versions: 2.9.1 > Reporter: Mukul Gandhi > Attachments: assert_complexType.zip, testcase_asserts.zip > > > I am providing a patch for XML Schema 1.1 assertions support, for Complex > Types. Earlier I had submitted an assertions patch for Simple Types, which is > now available in SVN repository. > Now the assertions traversal support both for Simple Types and Complex Types > is complete, except the XPath 2.0 processing. > Kindly note ... > 1. The grammar changes, for assertions are now considered (as also discussed > with Khaled). The details of the XML Schema 1.1 grammar where asserts are > used is available on the wiki page at, > http://wiki.apache.org/xerces/XML_Schema_1.1_Assertions. > 2. A separate traversal class for assertions is not designed, to implement > assertions for Complex types. Instead, traversal support for assertions is > added to, XSDComplexTypeTraverser.java. This is done because assertions are > available in Simple types, as well as Complex types. For simple types, > assertions are now facets, which required modifying the Facet data structures. > Due to this, I felt it was appropriate to add traversal method for > assertions, in XSDComplexTypeTraverser.java instead of having a separate > traversal class. > 3. Some error messages, as specified in Xerces properties file need to be > changed, > to reflect the new XML Schema 1.1 grammar. This is presently not done. > 4. XPath 2.0 support for assertions is presently not implemented. > 5. A test case XML and XSD files is also provided with this patch. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]