I'm trying to impliment a <key> as below but for some reason it doesn't work. Is it me that's wrong, or XMLSpy 4.1? I have a document like this: <IDs> <Form FormID="1"> <Field FieldID="1"/> </Form> <Form FormID="2"> <Field FieldID="1"/> </Form> </IDs> In the Schema I have the following KEY on the <IDs> element: <xs:key name="FieldsByFormKey"> <xs:selector xpath="Form/Field"/> <xs:field xpath="../@FormID"/> <xs:field xpath="@FieldID"/> </xs:key> I believe this document should be valid against that Key constraint, but XMLSpy4.1 says that the second <Field> element produces a duplicate Key value, and hence is invalid. By my understanding there should be two unique keys generated: {1 1) (2 1} So, it is me or XMLSpy at fault? -- May the flares be with you, Kevin mailto:kevin@burieddreams.com ++++++++++++ Cool music - http://burieddreams.com/marshan ++++++ Attitude Webzine - http://burieddreams.com/attitudeReceived on Monday, 19 November 2001 05:56:17 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:35 GMT