Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: JiBX 1.2.3
-
Fix Version/s: None
-
Component/s: CodeGen
-
Labels:None
-
Environment:OSX
-
Number of attachments :
Description
In gml and other complex schemas if an element specified with a ref="referredName" attribute, the referenced element is often found in an XSD file that is included later. This condition passes validation but codeGen throws an error when faced with this construction.
I clipped out and attached a simplified example of this behavior starting with the gml schema. schemaTest.xsd is the root schema, schemaA.xsd contains a reference to the element metaDataProperties which is defined in schemaB.xsd
When I run codegen I get the following:
codegenTest:
[echo] Running code generation from schema
[delete] Deleting directory .... /codegen/test/src
[java] Fatal: Referenced element 'metaDataProperty' is not defined for element at (line 7, col 76, in
file:///.../codegen/test/schemaA.xsd)
[java] Terminating due to errors in input schemas