RE: union(?) question

> -----Original Message-----
> From:	Doug [SMTP:ummmmm22@yahoo.com]
> Sent:	Tuesday, June 04, 2002 6:20 PM
> To:	xmlschema-dev@w3.org
> Subject:	union(?) question
> 
> i'm trying to define 4 custom, "named" simpleTypes,
> each a restriction of xsd:string, then combine them
> into a "named" type that allows any one of those
> simpleType formats.
> 
> i'm very new to XML Schema, and the only thing i could
> come up with that seems promising is "union".  so...
> would this syntax do the trick?  is there a better
> way?
> 
>       <xsd:simpleType name="AcceptedCreditCards">
>          <xsd:union memberTypes="VisaNumber
> MasterCardNumber AMEXNumber DiscoverNumber"/>
>       </xsd:simpleType>
> 
that's exactly how you'd do it.

pvb

Received on Tuesday, 4 June 2002 21:47:47 UTC