[Home] [By Thread] [By Date] [Recent Entries]
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 priscilla@w... Author, Definitive XML Schema (Prentice Hall PTR) ----------------------------------------------------- > -----Original Message----- > From: Marco Mastrocinque [mailto:mmfive@n...] > Sent: Sunday, March 27, 2005 4:24 AM > To: xml-dev@l... > Cc: Jeff Rafter; Henry S. Thompson > Subject: 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 > > >
|

Cart



