Schema imports in M2 -- bug or expected behavior? [message #63379] |
Sat, 08 January 2005 00:39 |
Eclipse User |
|
|
|
Originally posted by: not_real.not_real.com
Here's a scenario:
-Schema file A with target namespace nA:
<xsd:schema targetNamespace="nA"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="nA"
xmlns:nB="nB">
<xsd:import namespace="nB"></xsd:import>
<xsd:element name="A">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="nB:B"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
-Schema file B with target namespace nB:
<xsd:schema targetNamespace="nB" xmlns="nB"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="B" />
</xsd:schema>
-Notice that schema file A has an import directive but an unspecified
schema location.
-The XML catalog has an entry for nB mapping it to file B.
Given the fact that the XML catalog has the entry for nB, shouldn't the
schema editor be able to resolve the reference from A to B? In M2 it
doesn't appear to...
Thanks!
|
|
|
|
Powered by
FUDForum. Page generated in 0.03529 seconds