Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Schema imports in M2 -- bug or expected behavior?
Schema imports in M2 -- bug or expected behavior? [message #63379] Sat, 08 January 2005 00:39 Go to next message
Eclipse UserFriend
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!
Re: Schema imports in M2 -- bug or expected behavior? [message #63705 is a reply to message #63379] Mon, 10 January 2005 05:40 Go to previous message
Craig Salter is currently offline Craig SalterFriend
Messages: 169
Registered: July 2009
Senior Member
ka wrote:

> 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!

Yes, in this case the schema editor should use the catalog entry. Please
open a bugzilla bug. Good catch. Thanks for your help!
Previous Topic:Volunteer for Axis Java2WSDL for M3
Next Topic:Web Services Project Problem
Goto Forum:
  


Current Time: Fri Dec 27 00:56:46 GMT 2024

Powered by FUDForum. Page generated in 0.03529 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top