Re: substitutionGroups

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lolke B. Dijkstra writes:

> example just above section 3.3.3:

> <xs:complexType name="facet">

. . .

> <xs:element name="facet" type="xs:facet" abstract="true"/>
>
> <xs:element name="encoding" substitutionGroup="xs:facet">

> The substitutionGroup attribute references a type, should this be a
> QName instead (e.g. the name facet instead of the type xs:facet)

W3C XML Schema maintains separate "symbol spaces" for element
declarations on the one hand and type definitions on the other.  In
the fragment above you can see that there is an element decl named
'facet' in the target namespace, _and_ a type definition named 'facet'
in the target namespace.

The mapping rules for <xs:element> make clear that the QName value of
the 'substitutionGroup' attribute is looked up in the element
declaration symbol space, so the right connection is being made in
this case.

ht
- -- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
                         Half-time member of W3C Team
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: ht@inf.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]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFLHmxBkjnJixAXWBoRAn4cAJ438rgwhe70cnmimxmWNVjQcl49oACdHypw
ohzIMbU32rz32yWx0R1WNYI=
=/aJv
-----END PGP SIGNATURE-----

Received on Tuesday, 8 December 2009 15:10:23 UTC