Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle multiple XSD files? #21

Closed
andig opened this issue Feb 28, 2021 · 3 comments
Closed

Handle multiple XSD files? #21

andig opened this issue Feb 28, 2021 · 3 comments

Comments

@andig
Copy link

andig commented Feb 28, 2021

I have a set of XSD files I'd like to convert that reference each other, i.e. entity or type defined in one file and used in other file. Is there any way to handle such situation easily?

I've tried combining the XSDs but without success:

<?xml version="1.0"?>
<xs:schema xmlns:ns_p="http://docs.eebus.org/spine/xsd/v1" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://docs.eebus.org/spine/xsd/v1" version="1.1.1"
    blockDefault="#all" elementFormDefault="qualified">
    <xs:import schemaLocation="../evcc-docs/eebus/EEBus_SPINE_V1.1.1_final_hp/XSDs/EEBus_SPINE_TS_CommonDataTypes.xsd" />
    <xs:import schemaLocation="../evcc-docs/eebus/EEBus_SPINE_V1.1.1_final_hp/XSDs/EEBus_SPINE_TS_CommandCommonDefinitions.xsd" />
...

only leads to import issues although the relevant definition is part of the included files:

Processing 'combined.xsd'
	Parsing: combined.xsd
	Parsing: ../evcc-docs/eebus/EEBus_SPINE_V1.1.1_final_hp/XSDs/EEBus_SPINE_TS_CommonDataTypes.xsd
	Parsing: ../evcc-docs/eebus/EEBus_SPINE_V1.1.1_final_hp/XSDs/EEBus_SPINE_TS_CommandCommonDefinitions.xsd
	Parsing: ../evcc-docs/eebus/EEBus_SPINE_V1.1.1_final_hp/XSDs/EEBus_SPINE_TS_ActuatorLevel.xsd
panic: Cannot resolve type reference: ns_p:ScaledNumberType
@isimluk
Copy link
Member

isimluk commented Nov 27, 2021

Hello @andig,

Have you been able to resolve the issue?

Have you considered avoiding the circular input by having a file that contains shared definitions?

If not, can you please share these files with me (even privately)?

Thank You!

@andig
Copy link
Author

andig commented Nov 27, 2021

This I did solve this but need to check how- so long ago…

@isimluk
Copy link
Member

isimluk commented Nov 27, 2021

Thank You!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants