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

Re: Substitution Groups in Local Elements?

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 22 Apr 2002 19:11:06 +0100
To: Jerome Simeon <simeon@simeon-ltmh.research.bell-labs.com>
Cc: W3C XML Schema IG <w3c-xml-schema-ig@w3.org>, Jerome Simeon <simeon@research.bell-labs.com>, Philip Wadler <wadler@research.avayalabs.com>, www-xml-schema-comments@w3.org
Message-ID: <f5b7kmzfvt1.fsf@cogsci.ed.ac.uk>
[technical discussion on the IG, please]

Jerome Simeon <simeon@simeon-ltmh.research.bell-labs.com> writes:

> Can a local element belong to a substitution group?
> We can find nothing in Schema Part I that prohibits this, but if it is
> permitted, it is not clear what it would mean.

The Schema for Schemas rules this out:

 <xs:complexType name="localElement">
   <xs:restriction base="xs:element">
    . . .
    <xs:attribute name="substitutionGroup" use="prohibited"/>

This only applies to the XML representation layer, of course.

It's a bug that there's no clause in "Schema Component Constraint:
Element Declaration Properties Correct" ruling this out for components 
as well.

  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 Monday, 22 April 2002 14:11:23 UTC

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