W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2002

identity constraints and substitution groups

From: Mark Thornton <mthornton@optrak.co.uk>
Date: Tue, 19 Mar 2002 16:08:39 -0000
Message-ID: <30273167BD5AD111A5AD00A0C9922017537480@mercury.net.optrak.co.uk>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Do the xpath expressions in an identity constraint have to match the actual
name of an element or is it sufficient to match a substitution group?

I.e.  suppose

<xs:element name='column'/>
<xs:element name='specialColumn' substitutionGroup='column'/>

<xs:key name='kColumn'>
    <xs:selector xpath='column'/>
    <!-- etc -->
</xs:key>

Will the selector match 'specialColumn' elements as well as 'column'
elements?

Regards,
Mark Thornton
Received on Tuesday, 19 March 2002 11:09:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:30 GMT