Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: How do you best express references to keys/ID's in an XSD ? [Thread Next] Re: How do you best express references to keys/ID's in an XSD ?To: NULL Date: 10/1/2008 4:43:00 PM Sébastien de Mapias wrote: >> See http://www.w3.org/TR/xmlschema-0/#specifyingKeysAndtheirRefs > > Thanks for your answer. I'm afraid I still don't understand how key/ > references > have to be expressed. In the report.xsd example schema, > 1/ I see they use this <selector xpath...> tag: DO YOU HAVE TO USE IT > in combination with KEY/KEYREF's tags ? Yes, you use selector and field as child elements of key and keyref elements to precisely define what constitutes the key respectively the key reference. > 2/ this way do you easily see the references of 'regions' and 'parts' > to > purchaseReport ? In that example the 'number' attribute of 'parts/part' elements inside the 'purchaseReport' element is a key referenced by the 'number' attribute of 'regions/zip/part' elements. -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
