tags:

views:

377

answers:

2

What's the difference between xsd:include and xsd:import? When would you use one instead of the other, and when might it not matter?

A: 

I'm interested in this as well. The only explanation I've found is that xsd:include is used for intra-namespace inclusions, while xsd:import is for inter-namespace inclusion.

Matt Luongo
+3  A: 

The fundamental difference between include and import is that you must use import to refer to declarations or definitions that are in a different target namespace and you must use include to refer to declarations or definitions that are (or will be) in the same target namespace.

Source: http://xsd.stylusstudio.com/2002Jun/post08016.htm

Sergiy Byelozyorov
I found these explanations helpful as well: http://xsd.stylusstudio.com/2005Mar/post05007.htm http://msdn.microsoft.com/en-us/library/ms256480.aspx
Lord Torgamus