我正在尝试导入WSO2治理注册表(4.6.0)中的模式文件,其中包括对其他xsd的导入。例如:
<xs:include schemaLocation="OtherSchemaToImport.xsd"/>
上传XSD时,我收到以下错误:
Unable to upload file File upload failed. Failed to add resource
/_system/governance/myXsd.xsd.
Could not read the XML Schema Definition file. this.schema.needs
当删除inc
我的任务是创建一个简单的(Java)程序,该程序接受一个xml文件( wsdl),并内联包含和导入。所以你会得到一个很大的AllInOne-File。
在wsdl:types元素中包含以下内容:
<wsdl:types>
<xsd:schema>
<!-- In Produktion ist ein absoluter Pfad zu verwenden. -->
<xsd:import namespace="http://namepsace.net/namespace"
我有一些非常大的模型,用许多xsd模式描述。模式通过包含相互引用。例如,架构包含'someEnum‘枚举。B模式想要使用枚举,所以它包含A模式。问题是,当我将我的XSD导入eCore模型的EMF时,它不仅会生成两次这样的枚举,而且还会在model for A schema中生成B schema中的所有元素。我觉得我做错了什么,但我不知道到底是什么。任何帮助都是非常感谢的!