Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XSD question: Allowing one required element and many optional elements. >Thread Next - Re: XSD question: Allowing one required element and many optional elements. Re: XSD question: Allowing one required element and many optional elements.To: NULL Date: 4/1/2005 11:33:00 AM You can't do conditions like this in XML Schema. You can try using a big choice with all possible states -- Stan Kitsis Program Manager, XML Technologies Microsoft Corporation This posting is provided "AS IS" with no warranties, and confers no rights. <chaitanyag@h...> wrote in message news:1111469996.196709.56910@z...... >A more challenging aspect of the problem: > > Lets modify the xml slightly > > <root> > <dialog> > <node> > <description/> > <config/> > <log/> > <transition/> > <node> > <transition/> > <dialog> > <transition/> > <\root> > > I need a rule that says that its ok if a node doesn't have a transition > as long as the dialog or root has a transition (it is possible for all > 3 to have a transition, which is ok). Note that a root can contain many > dialogs and a dialog can contain many nodes. > > What i need is some sort of fall through/ sibling navigation, parent > navigation sort of command. How do I go about doing this in XSD? > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
