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

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

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

  <key name="saKey"> 
     <selector xpath="."/> 
     <field xpath="studentID"/>
     <field xpath="activity"/> 
Received on Wednesday, 16 May 2001 20:02:15 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:51 UTC