Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - schema: different occurence types [Thread Next] Re: schema: different occurence typesTo: NULL Date: 9/1/2005 10:54:00 AM Sure -- add a 'fixed' attribute called 'root' with value 'root' to the <users> element, then define a <key>, which establishes id as a key for user under users, and define a <keyref>, which identifies root/@root as a reference to the 'id' key. See the Identity Constraint chapter of the W3C XML Schema Primer [1] for help with this. ht [1] http://www.w3.org/TR/xmlschema-0/#specifyingKeysAndtheirRefs -- Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh Half-time member of W3C Team 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: ht@i... URL: http://www.ltg.ed.ac.uk/~ht/ [mail really from me _always_ has this .sig -- mail without it is forged spam] | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
