What's the difference between xsd:include and xsd:import?

Pops picture Pops · Mar 1, 2010 · Viewed 143.3k times · Source

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?

Answer

Sergiy Belozorov picture Sergiy Belozorov · Mar 1, 2010

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: https://web.archive.org/web/20070804031046/http://xsd.stylusstudio.com/2002Jun/post08016.htm