eclipse plugin default schema association
Posted: Thu Dec 29, 2005 4:13 pm
I'm having a problem related to the example at http://www.oxygenxml.com/forum/viewtopi ... =3939#3939.
The example is working fine if I try it but I would like to avoid the hardcoded paths in the schemaLocation attributes. Suppose the test.xml file would not have the schemaLocation attributes in the a&b elements:
I would like oxygen to find the needed schemas via the default schema association settings in Windows->preferences->oXygen->Editor->Default Schema Association. I've added the following entries:
The validation fails with:
Can somebody enlighten me?
The example is working fine if I try it but I would like to avoid the hardcoded paths in the schemaLocation attributes. Suppose the test.xml file would not have the schemaLocation attributes in the a&b elements:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<t:test xmlns:t="test">
<a:a xmlns:a="a" a="1"/>
<a:b xmlns:a="b" b="2"/>
</t:test>
- Namespace=test
Root local name=test
File name=<ANY>
Schema type=XML Schema
Schema URI=(path to test.xsd)
Namespace=a
Root local name=a
File name=<ANY>
Schema type=XML Schema
Schema URI=(path to a.xsd)
Namespace=b
Root local name=b
File name=<ANY>
Schema type=XML Schema
Schema URI=(path to b.xsd)
The validation fails with:
The strange thing is that test.xsd is found but a.xsd and b.xsd not.The matching wildcard is strict, but no declaration can be found for element 'a:a'.
@see: http://www.w3.org/TR/xmlschema-1/#cvc-complex-type
The matching wildcard is strict, but no declaration can be found for element 'b:b'.
@see: http://www.w3.org/TR/xmlschema-1/#cvc-complex-type
Can somebody enlighten me?