Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   restriction enumeraction (http://www.velocityreviews.com/forums/t297579-restriction-enumeraction.html)

sk 06-06-2006 08:25 PM

restriction enumeraction
 
I am trying to assign the restriction to a perticular element using schema

There is some way to force to select one of three countries?

<xs:element name="iims0001" >
<xs:simpleType>
<xs:restriction base="xs:string" >
<xs:maxLength value="50" />
<xs:enumeration value="France" />
<xs:enumeration value="Mexico" />
<xs:enumeration value="China" />
</xs:restriction>
</xs:simpleType>
</xs:element>




sk 06-06-2006 09:14 PM

Re: restriction enumeraction
 
Sorry it works the way i wanted.


"sk" <s@s.com> wrote in message news:Vwlhg.14819$771.2759@edtnps89...
> I am trying to assign the restriction to a perticular element using schema
>
> There is some way to force to select one of three countries?
>
> <xs:element name="iims0001" >
> <xs:simpleType>
> <xs:restriction base="xs:string" >
> <xs:maxLength value="50" />
> <xs:enumeration value="France" />
> <xs:enumeration value="Mexico" />
> <xs:enumeration value="China" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
>
>
>





All times are GMT. The time now is 08:54 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.