Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Unable to locate a reference >Thread Next - Reusing a unique constraint xs:choice questionTo: xmlschema-dev@--.--- Date: 6/27/2007 11:22:00 PM Hello! I have the following xml fragment example: <data> <a>a test</a> <b>b test</a> <data> the schema should check the following rules (three options): - element a must exist, b may not - element b must exist, a may not - element a and b must exist Therefor I have defined the following choice: ... <xs:choice> <xs:element name="a" type="xs:string"/> <xs:element name="b" type="xs:string"/> <xs:sequence> <xs:element name="a" type="xs:string"/> <xs:element name="b" type="xs:string"/> </xs:sequence> </xs:choice> ... The xml editor raises an error - something about non determenistic declaration... Do you have a suggestion how to define these three rules? Thanks for your help! Markus -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger From noah_mendelsohn@u... Wed Jun 27 19:51:39 2007 Received: from | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
