Bernard created NETBEANS-4543:
---------------------------------
Summary: XML validation breaks with multiple schema files
Key: NETBEANS-4543
URL: https://issues.apache.org/jira/browse/NETBEANS-4543
Project: NetBeans
Issue Type: Bug
Components: xml - Schema
Affects Versions: 11.3
Reporter: Bernard
If an XML file loaded in the editor is validated against multiple schema files,
then validation breaks under an observed condition.
The condition is that definitions in the schema files reference each other. In
this case, it appears to be important that the validator builds the schema from
the multiple files in such a way that the order in which the files are loaded
matching the hierarchy. Dependent files need to be loaded after the files that
they depended on.
I am coming to this conclusion after building a test case. This this test case
builds the schema in the correct way, using an iterative brute force approach.
If the schema files are loaded in the incorrect order, then the schema cannot
be built, and validation is not even started.
I am donating the code in the test case to Apache Netbeans with the aim that
the validation using the editor is fixed, using the insight gained from the
test case.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists