Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSD question: Allowing one required element and many optional elements.

From: "Stan Kitsis [MSFT]" <skits@---------.--->
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?
> 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent