Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Key and KeyRefs [Thread Next] Re: Key and KeyRefsTo: NULL Date: 4/10/2008 6:45:00 PM Jeev wrote: > But my schema gives me a keyref cannot find key in scope error. Please > suggest what is wrong in my schema. > > <?xml version="1.0" encoding="utf-8" ?> > <!-- Created with Liquid XML Studio 1.0.8.0 (http://www.liquid- > technologies.com) --> > <xsd:schema xmlns:sql="urn:schemas-microsoft-com:mapping-schema" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > <xsd:element name="Root"> > <xsd:complexType> > <xsd:sequence> > <xsd:element minOccurs="1" maxOccurs="1" ref="Categories" /> > <xsd:element minOccurs="1" maxOccurs="1" ref="Items" /> > </xsd:sequence> > </xsd:complexType> Move the key/keyref definitions here into the Root element definition and make sure all paths are relative to the Root element. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
