Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: optional, but at least one required

From: Brian Bonner <bkbonner@-----.--->
To: George Cristian Bina <george@---------.--->
Date: 1/12/2006 12:34:00 PM
George, I think you had it right the first time.  (a|b|c)+ allows
multiple copies of a, b or c.

The way you wrote it (and how it needs to be) is:

a, b, or c can each be present, but only 1 copy of each can be
included.  At least one of a, b, or c needs to be present.

I guess I could have used something like

phonenumber
socialsecuritynumber
firstlastname

if these were all uniquely identifying characteristics of a person,
then I could reference it by phone number, social security number, or
first and lastname, or any combination, but I need at least one.

Thanks again for the help.

Brian


On 1/12/06, George Cristian Bina <george@o...> wrote:
> Hi Brian,
>
>  > George, thanks for the tip, I'm assuming that the (a|b|c)+ is the
>  > example that you gave me.
>
> No, that in XML Schema should be:
>
> <xs:complexType>
>      <xs:choice maxOccurs="unbounded">
>          <xs:element ref="a"/>
>          <xs:element ref="b"/>
>          <xs:element ref="c"/>
>      </xs:choice>
> </xs:complexType>
>
> Best Regards,
> George
> ---------------------------------------------------------------------
> George Cristian Bina
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> www.---.com
>
>
> Brian Bonner wrote:
> > George, thanks for the tip, I'm assuming that the (a|b|c)+ is the
> > example that you gave me.  It seemed to do the trick.  I will also try
> > Vegard's idea to see if that solves the problem.  Thanks.
>
>

From Steve.Tolkin@F... Thu Jan 12 22:51:16 2006
Received: from aji.w3.org ([133.27.228.225])


transparent
Print
Mail
Digg
delicious
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