jsonix-schema-compiler - как настроить внешнюю схему? - PullRequest
0 голосов
/ 26 марта 2019

Я пытаюсь использовать 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'?

...