Community
Participate
Working Groups
Created attachment 189024 [details] The schema files Using attached schema, I created an xml file with root element of "adfc-config" which contains "task-flow-definition" element using sapphire based editor. After adding a few "views" and some control flow rules, I noticed "view" elements are placed after "control-flow-rule" elements. Here is the xml: <?xml version="1.0" encoding="UTF-8"?> <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/adf/controller http://xmlns.oracle.com/adf/controller/1.0"> <task-flow-definition id="first"> <control-flow-rule> <from-activity-id>view0</from-activity-id> <control-flow-case> <from-outcome>success</from-outcome> <to-activity-id>view1</to-activity-id> </control-flow-case> <control-flow-case> <from-outcome>failure</from-outcome> <to-activity-id>view2</to-activity-id> </control-flow-case> </control-flow-rule> <control-flow-rule> <from-activity-id>view2</from-activity-id> <control-flow-case> <from-outcome>success</from-outcome> <to-activity-id>view3</to-activity-id> </control-flow-case> </control-flow-rule> <view id="view1"></view> <view id="view2"></view> <view id="view0"></view> <view id="view3"></view> </task-flow-definition> </adfc-config> This results in xml validation errors since in the schema, "view" elements are supposed to be ahead of "control-flow-rule" elements.
Please go ahead and work on debugging and fixing this. Ping me if you get stuck. The schema parser is located in XmlDocumentSchema class.
Out of order caused by abstract and subsitutionGroup attributes not supported. Added unit test case Verify insertion of view is now ahead of control-flow-rule element Verify Coherence cache config
TestXmlXsd0001 is getting too overloaded. Its original purpose was to test handling of just the redefine directive. I'd like to keep it to that. Please create separate numbered tests to test handling of the include directive and substitution groups. Go ahead and create separate schemas for these too. That should make the test cases simpler and easier to understand.
unit tests refactored
Verified the fix. Thanks Ling!