I can reproduce this.  But with one schema change (and with
-generateImportedSchemas) I get a successful build.  Notice in your tree
of imports and includes that you include Zcommon.xsd twice:
 
ZRoot.xsd:
      <xs:import namespace="http://www.kenklose.com/xmlns/NS2
<http://www.kenklose.com/xmlns/NS2> " schemaLocation="ZNS2Doc.xsd"/>
      <xs:include schemaLocation="ZDoc.xsd"/>
ZDoc.xsd:
     <xs:import namespace="http://www.kenklose.com/xmlns/NS2";
schemaLocation="Zcommon.xsd"/>
ZNS2Doc.xsd:
     <xs:include schemaLocation="Zcommon.xsd"/>

I removed the include from ZNS2Doc.xsd and with -generateImportedSchemas
I can successfully run the code generator.  This may well be a bug in
Castor that causes it to complain like this (I believe it is supposed ot
keep track of imports or includes that have already been processed), but
the workaround is very simple.
 
Hope this helps.
 
    Eddie
 

Reply via email to