xml - Name clashes when combining XSD via xsd:include? -
i presently reading professional xml bill evjen, kent sharkey, thiru thangarathinam, michael kay, alessandro vernet, sam ferguson.
i beginner , trying basic structure of xml schema document. authors put forward concepts on how put xml schema documents together.
import
imports allow import entire xml schema document 1 working with. done if 2 varying xml schema documents utilize different namespaces. import done using
<import>
element , 2 attributes—namespace ,schemalocation
.
include
the
<include>
element used if other schema has same namespace or makes use of no namespace. quite similar<import>
element , way combine 2 schemas little work.
i find myself confused line, include element used if other schema has same namespace or makes use of no namespace.
if have same namespace, wouldn't results in clash between same elements defined in both schemas?
if you're combining xsds same namespace or no namespace via xsd:include
, yes, there naming clashes, when choose use xsd:include
typically have control on both xsds , can avoid clashes.
it's when you're combining xsd disparate sources, not under control, having separate namespaces more needed avoid component name clashes.
Comments
Post a Comment