So if I wish import a complex type into my schema which is defined in
another schema I don't have to define the complex type I want again in
my schema because the 'import' statement will mean that all of the
global elements/complex types from that schema will automatically be
valid in mine? I understand that I don't have to define/declare the
types again, but I do have to 'ref' or 'name' them, is this correct? So
if I wanted to use 3 complex types from another schema with namespace
"http://www.???.com" called, "one", "two" and "three", in my schema I
would have:
<schema ...... xmlns:no="http://www.???.org" ....... >
..
<import namespace="http://www.???.com"
schemaLocation="http://www.???.com/schema.xsd" />
..
..
..
<element name="1" type="no

ne" .... />
<element name="2" type="no:two"..... />
<element name="3" type="no:three" ..... />
..
..
</schema>
Say, for example, complex types one, two and three had 'sub' types and
'super' types (not the correct terminology but I expect you know what I
mean) defined in the external schema, would an instance document of my
schema be valid if it contained instances of these 'sub' and 'super'
types or would I have to explicitly declare them in my schema?
Thanks for your help
Steve