Page 1 of 1

Flatten Schema with xsd:import

Posted: Fri Sep 18, 2009 7:23 pm
by egogenesic
Hi,

Is there a way to convert a schema that imports multiple other schema files into a single schema?

The 'Flatten Schema' option under Refactor only seems to handle xsd:include and not xsd:import (as far as I can tell anyway :)).

I am working with an xforms rendering tool that can only handle single schema files (i.e. won't process the includes or imports) so being able to convert a complex schema with lots of imports (including nested imports) would be fantastic.

Thanks very much,

Samual

Re: Flatten Schema with xsd:import

Posted: Sat Sep 19, 2009 10:31 am
by george
Hi Samual,

XML Schema cannot define components from different namespaces in the same file. When you use import in XML Schema that means you are referring a schema from a different namespace and those components cannot stay in the same file with the components from the including schema - that is why the flatten schema action deals only with includes.

Best Regards,
George