XML editor catalogue entry, xsd:import problem by not resolving the schemaLocation/namespace [message #1734551] |
Thu, 09 June 2016 06:07  |
Eclipse User |
|
|
|
Hi,
Problem:
I am using two EMF models (A and B) which referencing each other. The
WST XML Editor does not resolve the referenced schema (A) as context
assistant for elements of schema A are not provided, only for schema B.
From the two EMF models I export the XSD. There are two XSD files,
where one file references to the other like this:
in schemaB.XSD
<xsd:import namespace="http://xyz.com/schemaA.xsd"
schemaLocation="../../com.xyz.a/model/schemaA.xsd"/>
Both schemas are in different plugins. Each plugin is using the
org.eclipse.wst.xml.core.catalogContributions extension point.
e.g.:
<extension point="org.eclipse.wst.xml.core.catalogContributions">
<catalogContribution id="opn">
<uri name="http://xyz.com/schemaA.xsd" uri="assets/schemaA.xsd"></uri>
</catalogContribution>
</extension>
Workaround:
Please note the ../../ at the schemaLocation of the xsd:import element.
I replaced the ../../ with platform:/plugin/ and this fixed the issue.
Question:
As the namespace http://xyz.com/schemaA.xsd is also at the catalogue I
believe the schema location should be resolved from the catalogue
instead of the schemaLocation attribute at the xsd:import element.
I am wrong or do I misunderstand the catalogue?
Any hints are appreciated, Martin
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.21525 seconds