Re: Keying off text nodes

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 UTC