Flatten Schema with xsd:import

This should cover W3C XML Schema, Relax NG and DTD related problems.
egogenesic
Posts: 1

Flatten Schema with xsd:import

Fri Sep 18, 2009 7:23 pm

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
george
Site Admin
Posts: 2100

Re: Flatten Schema with xsd:import

Sat Sep 19, 2009 10:31 am

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
George Cristian Bina

Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 0 guests