Finally implemented some rough cut of the <import>
support. The process is looking more and more like a language compiler. When you are processing multiple XSD schema, the actual parsing step doesn't really care about other files, but the type checking/object binding phase needs to be aware of the other schemas.
In the schema, all you have to do is write
<import namespace="http://www.example.com/IPO"/>
and the types etc. from the given namespace are imported to the current schema. So, this works more like Java's import
than C's #include
, which is limited to inclusion of a physical file.