Flatten Schema with xsd:import

This should cover W3C XML Schema, Relax NG and DTD related problems.
egogenesic
Posts: 1
Joined: Fri Sep 18, 2009 6:25 pm

Flatten Schema with xsd:import

Post 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
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: Flatten Schema with xsd:import

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