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

Re: Keying off text nodes

From: Martin Gudgin <marting@develop.com>
Date: Thu, 17 May 2001 01:17:11 +0100
Message-ID: <008101c0de66$b9610e70$0200a8c0@greyarea>
To: "Jeff Lowery" <jlowery@scenicsoft.com>, <xmlschema-dev@w3.org>
Looks fine to me.

Martin Gudgin
DevelopMentor

----- Original Message ----- 
From: "Jeff Lowery" <jlowery@scenicsoft.com>
To: <xmlschema-dev@w3.org>
Sent: Thursday, May 17, 2001 1:01 AM
Subject: 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:18:41 GMT

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