Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Question about tag and value [Thread Next] Re: Question about tag and valueTo: NULL Date: 11/5/2007 8:46:00 PM mittra@j... wrote: > if (TAG2 value is 1) then > <TAG3>some_value</TAG3> > else > <TAG4>some_value2</TAG4> Neither XML Schema nor DTDs can express that constraint, except by using xsi:type. Some of the less-widely-supported schema languages can (I think both RelaxNG and Schematron can do this) -- but then you have the problem of whether your users will accept those solutions. Again: The simplest answer is to fix it in documentation and in application code. -- () ASCII Ribbon Campaign | Joe Kesselman /\ Stamp out HTML e-mail! | System architexture and kinetic poetry | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
