|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Element declaring
In fact, i use SourceGenerator in castor project to generate the sourcecode. So, should i change it by hand? I had thought the castor is fine.
<xs:simpleType name='MyEnum' >
<xs:restriction base='xs:QName' >
<xs:enumeration value='foo:Val1' />
<xs:enumeration value='foo:Val2' />
<xs:enumeration value='foo:Val3' />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name='MyOpenEnum' >
<xs:union memberTypes='tns:MyEnum xs:QName' />
</xs:simpleType>
<xs:element name='MyData' type='tns:MyOpenEnum' />
Best Regards.
Chen Peng Keenmicro
Email:pchen@k...
MSN: jacky_chenp@h...
----- Original Message -----
From: "Rich Salz" <rsalz@d...>
To: "jacky" <jacky_chenp@u...>
Cc: "Jonathan Robie" <jonathan.robie@d...>; <xml-dev@l...>
Sent: Friday, October 15, 2004 7:33 PM
Subject: Re: Element declaring
> > but, in the code, MyData is the String type. That means i can't use a MyEnum instance for MyData.
> > Is that right?
>
> I guess so. :) It complete depends on how your environment binds XML and
> programming language types. It's not a generic question.
> /r$
> --
> Rich Salz Chief Security Architect
> DataPower Technology http://www.datapower.com
> XS40 XML Security Gateway http://www.datapower.com/products/xs40.html
> XML Security Overview http://www.datapower.com/xmldev/xmlsecurity.html
>
>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








