Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - xs conditional schema [Thread Next] Re: xs conditional schemaTo: NULL Date: 4/6/2008 3:27:00 PM <mielnik.bartek@g...> wrote in message news:33fe8c7a-25a8-495d-94e6-653f6750581b@a...... > Hi, > could you tell me please is it possible to create a xs schema with > structure depending on attribute value ? > E.g. > > <node1 attr="1"> > <a> ... </a> > <b> ... </b> > </node1> > <node1 attr="2"> > <c> ... </c> > </node1> > > where inner node1 xml section can varry depending on attr value. > > Thanks in advance > Bartek If you mean the contents of an element changes depending on a particular attribute value then no, it can't be done in W3C XML Schema 1.0. It can be done in other XML schema languages. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
