Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Question on XSD elements in groups >Thread Next - UPA example Re: Question on XSD elements in groupsTo: lists@--------.--- Date: 6/23/2008 10:14:00 AM Thanks to all for the suggestions. I have modified my schema accordingly and no longer receive the error. Arshad Noor StrongAuth, Inc. Florent Georges wrote: > Arshad Noor wrote: > > Hi, > >> Since I can only have a Symkey, SymkeyError or a combination >> of both in the to-be-defined element, why does NB think there >> will be ambiguity? > > Because when it will encounter a Symkey, it will be not possible to > know in the choice if this is the Symkey from the Symkey alternative, > or from the group alternative. > >> How do I go about accomplishing what I want? > > The idiomatic solution is to use a choice on Symkey and optional > SymkeyError, or just a SymkeyError: > > <xs:choice> > <xs:sequence> > <xs:element ref="Symkey"/> > <xs:element ref="SymkeyError" minOccurs="0"/> > </xs:sequence> > <xs:sequence> > <xs:element ref="SymkeyError"/> > </xs:sequence> > </xs:choice> > > For more information, look for "UPA" or "UPA violation". > > Regards, > > --drkm > > > > > > > > > > > > > > > > > > > > > > > > > _____________________________________________________________________________ > Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr From cesarariza@g... Tue Jun 24 05:43:27 2008 Received: from farnsworth.w3.org ([128.30.52.43] helo=wiggum. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
