Keying off text nodes

Howdy,

I'm wondering about the correct syntax for defining keys based on element
text content. Is the following key definition valid?

---------------------------------------
<element name="studentActivity">
  <complexType>
    <sequence>
      <element name="studentID" type="IDREF"/>
      <element name="activity" type="normalizedString"/>
      <element name="fee" type="decimal"/>
    </sequence>
  </complexType>

  <key name="saKey"> 
     <selector xpath="."/> 
     <field xpath="studentID"/>
     <field xpath="activity"/> 
  </key> 
</element>

Received on Wednesday, 16 May 2001 20:02:15 UTC