Hi,

I'm trying to parse a schema like the one below in Castor and it fails. I get an error saying:
Error: could not find the built in parent type for: MyIDType


I believe this to be a valid schema construct. I'm using the lastest version of Castor I could find: 0.9.5

Thanks for your consideration.
Brian

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
   <xsd:simpleType name="MyIntType">
       <xsd:union memberTypes="xsd:integer">
           <xsd:simpleType>
               <xsd:restriction base="xsd:token">
                   <xsd:enumeration value=""/>
               </xsd:restriction>
           </xsd:simpleType>
       </xsd:union>
   </xsd:simpleType>
   <xsd:simpleType name="MyIDType">
       <xsd:restriction base="MyIntType"/>
   </xsd:simpleType>
   <xsd:element name="TEST_ROOT" type="MyIDType"/>
</xsd:schema>

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev




Reply via email to