0
同じ要素を別々に定義するスキーマ定義がある場合、両方の定義をインポート/インクルードして3番目のスキーマ定義から独立して参照できますか?例えばXMLスキーマをインポート/インポートする際の要素の衝突を処理する
、与えられた:
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:example:namespace">
<element name="message" type="boolean"/>
</schema>
と:
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:example:namespace">
<element name="message" type="date"/>
</schema>
1には、以下を構築することができた:
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:example:namespace">
<complexType name="booleanMessageType">
<sequence>
<!-- reference to first definition here -->
</sequence>
</complexType>
<complexType name="dateMessageType">
<sequence>
<!-- reference to second definition here -->
</sequence>
</complexType>
</schema>