付録C.2 送信結果/受信定義ファイル,および送信情報ファイルで使用するXMLスキーマ

送信結果/受信定義ファイル,および送信情報ファイルで使用するXMLスキーマを次に示します。

<?xml version="1.0" encoding="Shift_JIS"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.hitachi.co.jp/soft/xml/ebxml/msh/common/configuration/config/rcvdef.xsd"
xmlns="http://www.hitachi.co.jp/soft/xml/ebxml/msh/common/configuration/config/rcvdef.xsd">

<xsd:simpleType name="non-empty-string">
   <xsd:restriction base="xsd:string">
       <xsd:minLength value="1"/>
   </xsd:restriction>
</xsd:simpleType>

<xsd:element name="Service">
   <xsd:complexType>
       <xsd:simpleContent>
           <xsd:extension base="non-empty-string">
               <xsd:attribute name="name" use="required" type="non-empty-string" />
               <xsd:attribute name="type" use="optional" type="non-empty-string" />
           </xsd:extension>
       </xsd:simpleContent>
   </xsd:complexType>
</xsd:element>

<xsd:element name="Action">
   <xsd:complexType>
       <xsd:simpleContent>
           <xsd:extension base="non-empty-string">
               <xsd:attribute name="name" use="required" type="non-empty-string" />
           </xsd:extension>
       </xsd:simpleContent>
   </xsd:complexType>
</xsd:element>

<xsd:element name="Key">
   <xsd:complexType mixed="true">
       <xsd:choice maxOccurs="1" minOccurs="0">
           <xsd:element ref="Service" maxOccurs="unbounded" minOccurs="1"/>
           <xsd:element ref="Action" maxOccurs="unbounded" minOccurs="1"/>
       </xsd:choice>
   <xsd:attribute name="id" use="required" type="non-empty-string" />
   </xsd:complexType>
</xsd:element>

<xsd:element name="Container">
   <xsd:complexType>
       <xsd:sequence>
           <xsd:element ref="Key" maxOccurs="255" />
       </xsd:sequence>
       <xsd:attribute name="id" use="required" type="non-empty-string" />
   </xsd:complexType>
</xsd:element>

<xsd:element name="Configuration">
   <xsd:complexType>
       <xsd:sequence>
           <xsd:element ref="Container" maxOccurs="255" />
       </xsd:sequence>
   </xsd:complexType>
</xsd:element>

</xsd:schema>