XML Schema question - does "import" import elements?

V

Vitali Gontsharuk

Hi!

I can't find an answer to the following question: does the "import"
command in XML Schema import also element declarations? Or only type
definitions? As far as I understood, the first takes place... The spec says:
"In our example, we imported one simple type from one external
namespace, and used it for declaring attributes. XML Schema in fact
permits multiple schema components to be imported, from multiple
namespaces, and they can be referred to in both definitions and
declarations."
What do they mean by "multiple schema components", are element and
attribute declarations amongst them? Or does it just allow to use import
as a mechanism to import type libraries?

Thanks,
Vitali
 
P

Priscilla Walmsley

Hi,

You can import any kind of top-level schema component. This does
include global element and attribute declarations. It also means named
complex and simple types, and named model groups and attribute groups.

Hope that helps,
Priscilla
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,001
Messages
2,570,251
Members
46,850
Latest member
Brightrs

Latest Threads

Top