Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XML W3C Schema, check excistence of attribute depending on other attributes XML W3C Schema, check excistence of attribute depending on other attributesTo: NULL Date: 8/30/2008 1:04:00 AM Dear ALL, I creating an XML which holds elements which optional attributes. So-far no problem, I just set the "optional" value in the "required" attribute of my schema. But how to check for such situations (I omitted the attribute values for the sake of short text here) A1 is always there, all other attributes are optional. Case one: Combination which may exists are A1,AA2,A3 or A1,A4,A5. <E A1="" A2="" A3=""> <E A1="" A4"" A5=""> Case two: The existance of an attribute depnds on a the VALUE of another attribute A1=a ==> A1,A2,A3 A1=b ==> A1,A4,A5 A1=c ==> A1,A6,A7 <E A1="a" A2="" A3=""> <E A1="b" A4="" A5=""> <E A1="c" A6="" A7=""> May be there is a standard solution for this two cases. Thanks a lot Rolfk | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
