XSD include problem ------------------- Key: JIBX-447 URL: https://jira.codehaus.org/browse/JIBX-447 Project: JiBX Issue Type: Bug Components: CodeGen Affects Versions: JiBX 1.2.3 Environment: OSX Reporter: Michael Burek Attachments: schemaA.xsd, schemaB.xsd, schemaTest.xsd
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 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ jibx-devs mailing list jibx-devs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-devs