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?
views:
377answers:
2
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
2010-03-01 18:12:19
+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.
Sergiy Byelozyorov
2010-03-01 18:15:05
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
2010-03-01 18:32:41