OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

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

[ Lists Home | Date Index | Thread Index ]

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@walmsley.com
Author, Definitive XML Schema     (Prentice Hall PTR)
-----------------------------------------------------  

> -----Original Message-----
> From: Marco Mastrocinque [mailto:mmfive@netspace.net.au] 
> Sent: Sunday, March 27, 2005 4:24 AM
> To: xml-dev@lists.xml.org
> 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
>    
>     
> 






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS