Re: problem referencing attributes from imported namespace

Hi,

> These are the root and import element in my schema:
>
> <xsd:schema targetNamespace="http://xxxxx/yyyyy"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:myNS="http://xxxxx/yyyyy"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope"
> elementFormDefault="qualified" attributeFormDefault="unqualified">
> <xsd:import namespace="http://schemas.xmlsoap.org/soap/envelope/"/>

I think that the problem is that the namespaces don't quite match.
You've declared the SOAP namespace as:

  http://schemas.xmlsoap.org/soap/envelope

but you're importing the namespace:

  http://schemas.xmlsoap.org/soap/envelope/
                                          ^
remove the extra slash -------------------| and it should work.
  
Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

Received on Thursday, 24 July 2003 09:58:48 UTC