W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2000

Re: (Clarification on xsi:type) was Re: Simplifying XML Schema

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 10 Jun 2000 12:38:37 +0100
To: Rick JELLIFFE <ricko@geotempo.com>
Cc: www-xml-schema-comments@w3.org
Message-ID: <f5br9a5dav6.fsf@cogsci.ed.ac.uk>
Rick JELLIFFE <ricko@geotempo.com> writes:

> > From: Henry S. Thompson (ht@cogsci.ed.ac.uk)
> > That's fine, you don't need any new features then:  use
> > <any processContents='strict' minOccurs='0' maxOccurs='unbounded'/>
> > and xsi:type in the instances and you'll have (nearly) everything you
> > want.
> Just for general clarification, is it possible to have an attribute
> (xsi:type or something derived from it somehow) which allows type
> selection from an attribute, but constrained to certain choices?  

Not as currently spec'ed.  You are specifically forbidden from
declaring the 'type' attribute in the
'http://www.w3.org/1999/XMLSchema-instance' namespace in any schema,
and deriving something from it or its type would not be recognised as
having any special meaning.

  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 Saturday, 10 June 2000 07:38:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:47 UTC