W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2004

Re: Understanding Dawns! But 1 More Question About Keys/Refs...

From: George Cristian Bina <george@sync.ro>
Date: Mon, 02 Aug 2004 11:50:55 +0300
Message-ID: <410E006F.1070304@sync.ro>
To: Jim Stanley <JimS@Media-Services.Com>
Cc: xmlschema-dev@w3.org

Hi Jim,

 > <xs:keyref name="schedDayActivity.FK" refer="schedActivity.PK">
 > 	<xs:selector xpath="prodSchedule/dayBucket"/>
 > 	<xs:field xpath="activityRef"/>
 > </xs:keyref>

Move the activityRef in the selector and select its value in the keyref 
field:

<xs:keyref name="schedDayActivity.FK" refer="schedActivity.PK">
   <xs:selector xpath="prodSchedule/dayBucket/activityRef"/>
   <xs:field xpath="."/>
</xs:keyref>

Best Regards,
George
-----------------------------------------------
George Cristian Bina
<oXygen/> XML Editor & XSLT Editor/Debugger
http://www.oxygenxml.com
Received on Monday, 2 August 2004 04:50:56 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:10 UTC