W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2002

Re: problem with import/include and XSV type qualified by non-local namespace

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 14 Mar 2002 17:19:25 +0000
To: "Colin Mackenzie" <colin@elecmc.com>
Cc: <xmlschema-dev@w3.org>
Message-ID: <f5b8z8v9iea.fsf@cogsci.ed.ac.uk>
"Colin Mackenzie" <colin@elecmc.com> writes:

> Hi,
> 
> I have a top level schema (see top.xsd below) that includes other schemas
> with the same namespace.
> 
> These "sub-schemas" use types defined in a schema of another namespace. To
> avoid importing the other schemas multiple times (i.e. once in each sub
> schema) I import the other namespace schema in the top level schema
> (top.xsd).
> 
> This seems to work OK in XMLSpy and Turbo XML but using XSV I get an error
> when one of my subschemas attempts to use a type from the other namespace.
> The error is:"attribute type check failed for {None}:type: yours:YourType is
> qualified by an unimported non-local namespace"
> 
> This seems to point to XSV saying that the other namespace schema should be
> imported in the schema file in which uses that type (rather in the level
> above).
> 
> Is XSV correct, have I made a mistake or is this a bug?

A schema document must contain <xs:import>s for every non-local
namespace.  The fact that that document is being included in some
other schema document which has the import does not let it off the
hook.

Are there actually still processors out there that complain about
multiple identical <import>s?

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2002, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Thursday, 14 March 2002 12:19:28 GMT

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