- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 12 Nov 2001 09:57:17 +0000
- To: Jeni Tennison <jeni@jenitennison.com>
- Cc: Saul Farber <saul@syncline.com>, xmlschema-dev@w3.org
Jeni Tennison <jeni@jenitennison.com> writes:
> So you have to tell the schema validator that the set of element
> declarations from the XML Schema namespace should be included in the
> set of element declarations for the schema itself. That's what the
> xs:import element does in the schema
So I think this is actually a bit misleading. <import>ing the
http://www.w3.org/2001/XMLSchema namespace is required in order to
reference e.g. element declarations or type definitions therein _from
schema documents_. There are no such references in Saul's examples.
I suppose your knowledge that you expect that ##other to be used to
validate things in that namespace is relevant.
And certainly the REC says an <import> for a namespace adds all the
declarations and definitions it can find for that namespace to the
schema to be used for validation, so it does have the desired effect.
> or adding entries to the xsi:schemaLocation attribute does in the
> instance.
This seems to me the better strategy -- you're using elements from the
http://www.w3.org/2001/XMLSchema namespace in your instance, so you
should tell the validator where to find declarations for them.
ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
W3C Fellow 1999--2001, 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/
Received on Monday, 12 November 2001 05:00:09 UTC