Hi,
I've seen some discussion on this before, but haven't got very clear and solid answer for this...
 
Please look at below piece of sample XSD source.
 
<xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
  elementFormDefault = "qualified">
 <xsd:element name = "a" type = "t1"/>
 <xsd:simpleType name = "t1">
  <xsd:restriction base = "xsd:string"/>
 </xsd:simpleType>
</xsd:schema>
 
It's quite simple, and when I use Castor SchemaReader to get a Schema object, it worked OK. However, when I use another XSD to include it, SchemaReader complains about that "t1 is not a built in type"...from previous discussion I understand that Castor will treat it as built-in when its prefix equals the xmlns... but obviously this isn't the case I want it processed.
 
How do I solve this problem?
 
Thanks for the help,
Thomas

Reply via email to