Next in thread → Next in month →

RE: [xml-dev] Key and Keyref not working properly

From
Priscilla Walmsley <>
To
'Marco Mastrocinque' <>,
Date
2005-03-27T20:51:43Z
Thread
RE: [xml-dev] Key and Keyref not working properly
Hi,

You need to move the key and keyref up into the declaration of
companyInformationSystem.  Otherwise, it is looking for the c:Divisions
element as a child of c:Employess.

There is also a typo.  The element is called Employess (two s's), but the
XPath says Employees.  After I fixed those things, it worked for me.

Hope that helps,
Priscilla

-----------------------------------------------------
Priscilla Walmsley             
Author, Definitive XML Schema     (Prentice Hall PTR)
-----------------------------------------------------  

> -----Original Message-----
> From: Marco Mastrocinque [mailto:] 
> Sent: Sunday, March 27, 2005 4:24 AM
> To: 
> Cc: Jeff Rafter; Henry S. Thompson
> Subject: [xml-dev] Key and Keyref not working properly
> 
> Hi All,
>        I'm using key and keyref system to implement Primary 
> and Foreign Key
> relationships. I have tried everything; I'm using Apache 
> Xerecs to validate
> it. If I can implement the 'refDID' attribute in Employee to 
> reference the
> 'DID' attribute in Division, I can do the rest myself. Any 
> suggestions most
> appreciated. Please have a look at the files inserted with my 
> email. It will
> not catch the deliberate errors I have introduced.  
> 
> Thanks Marco Mastrocinque
>    
>     
>
Next in thread → Next in month →