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

xml, xsd

Solution

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

Problem

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?

Original source

Related problems