In a separate email, Lars Ericson asked:

> Do you have any plans to support xs:enumeration in generateDS.py?  For
> example
>
>   <xs:element name="primaryColor">
>       <xs:simpleType>
>           <xs:restriction base="xs:string">
>               <xs:enumeration value="red"/>
>               <xs:enumeration value="blue"/>
>               <xs:enumeration value="green"/>
>           </xs:restriction>
>       </xs:simpleType>
>   </xs:element
>

Lars -

Good to hear from you.

generateDS.py does not *directly* support enumerations.  But, you
might get some of what you need by reading:

    http://www.rexx.com/~dkuhlman/generateDS.html#simpletype

and, if it is validation that you are looking for, see:

    http://www.rexx.com/~dkuhlman/generateDS.html#simpletype-and-validators

Hope this helps.

Dave



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to