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

Question about <selector>

From: Sean Draine <seandr@millisecond.com>
Date: Wed, 8 Mar 2000 19:01:46 -0800
Message-ID: <000501bf8973$d16d2a60$0200000a@seandrhome>
To: <www-xml-schema-comments@w3.org>
Hello!

What is the purpose of <selector> in identity constraints? I understand that
<field> paths are relative to the <selector> path, but what does the
<selector> give me that I couldn't get by specifying a full path for each
<field>. In other words, what is the difference between

<key name="mykey">
   <selector>foo</selector>
   <field>bar/shoes</field>
</key>

and

<key name="mykey">
   <selector>.</selector>
   <field>foo/bar/shoes</field>
</key>

 or

<key name="mykey">
   <selector>foo/bar</selector>
   <field>shoes</field>
</key>

Thanks,
Sean
Received on Wednesday, 8 March 2000 22:10:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:46 GMT