W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2003

Re: problem referencing attributes from imported namespace

From: Jeni Tennison <jeni@jenitennison.com>
Date: Thu, 24 Jul 2003 14:58:39 +0100
Message-ID: <271481762051.20030724145839@jenitennison.com>
To: "vletrmx21@inwind.it" <vletrmx21@inwind.it>
CC: "xmlschema-dev" <xmlschema-dev@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:39 GMT