W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2001

Keying off text nodes

From: Jeff Lowery <jlowery@scenicsoft.com>
Date: Wed, 16 May 2001 17:01:43 -0700
Message-ID: <3549BAFD79A7D411A1CF00508B62B5BC766BE8@exchange-us.scenicsoft.com>
To: xmlschema-dev@w3.org
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 GMT

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