jsonix-schema-compiler-如何配置外部模式?

时间:2019-03-26 15:46:25

标签: schema xml-dsig jsonix

我正在尝试使用'jsonix-schema-compiler'将XSD模式转换为JSON模式。

我的示例架构导入xmldsig架构

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:xsd="http://www.w3.org/2001/XMLSchema" jaxb:version="2.0">
    <xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
    <xsd:element name=

但这会在我运行转换命令时导致错误

$ java -jar libs/jsonix-schema-compiler-full-2.3.9.jar ./src/main/resources/schmea.xsd
[WARNING] schema_reference.4: Failed to read schema document 'xmldsig-core-schema.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
line 3 of core-schema/src/main/resources/schmea.xsd

[ERROR] src-resolve: Cannot resolve the name 'ds:Signature' to a(n) 'element declaration' component.

是否可以配置“ jsonix-schema-compiler”来解析外部的“ xmlns:ds”引用?

0 个答案:

没有答案