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

Re: more schemaLocation attrs in a xml instance

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: Tue, 19 Aug 2003 09:49:30 +0100
To: fazekas.benedek@nir.hu
Cc: xmlschema-dev@w3.org
Message-ID: <f5bn0e6m3qd.fsf@erasmus.inf.ed.ac.uk>

fazekas.benedek@nir.hu writes:

> for the xml instance below i wanna use more xml schemas. if i list them
> in the schemaLocation attribute of the root element [UserInterface] it
> works fine with the validator [http://www.w3.org/2001/03/webdata/xsv]
> however if a try to put the schemaLocation attribute for the namespace
> http://www.mo.hu/PortalForm somewhere else (tried FromList element and
> first occurance of the form: namespaceid, line 22), the validation
> fails as if the validator did not even try to load the referenced
> schema [PortalXML_FormElements.xsd].
> AFAIK one could put the schemaLocation attribute at the first occurance
> of the namespace which the schema belongs to: am i mistaken?
> (it worked with Syncro's oxygen, but did not with xmlspy)

Hmm.  The version as posted should work, with the xsi:schemaLocation
on the first appearance of the relevant namespace.  I can't debug, as
I don't have your PortalXML.xsd schema doc't or its URL -- please let
me know and I'll look at this.

(XSV no longer scans the whole document for xsi:schemaLocation unless
you set a command line switch requesting this, and that switch isn't
exposed in the online version, so putting xsi:schemaLocation on
FromList won't work online)

  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 Tuesday, 19 August 2003 04:49:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:12 UTC