Re: XSV: Question on treatment of schema imports

"Gregor Karlinger" <gregor.karlinger@cio.gv.at> writes:

> The main driver is the file main.xsd; this schema includes two schemas
> this1.xsd and this2.xsd respectively. The schema represented by this1.xsd
> imports an element {urn:other}:other from the urn:other namespace. The
> schema represented by this2.xsd has a reference to the the
> {urn:other}:other element as well, but does not explicitly import it.
>
> Now, XSV exactly reports an error on this reference in this2.xsd, when I
> try to asses the main.xsd:
>
>   "attribute type check failed for {None}:ref: other:OtherElem is
> qualified    
>    by an unimported non-local namespace: urn:other"
>
> My question: is this behaviour of XSV correct, i.e. do I need an explicit
> import in this2.xsd for the referenced element?

Yes, it's correct.  Any schema _document_ which references names out
of its target namespace requires an import for each foreign namespace
referenced.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                      Half-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 Sunday, 26 October 2003 05:04:37 UTC