WebSphere Message Broker バージョン 8.0.0.5 オペレーティング・システム: AIX、HP-Itanium、Linux、Solaris、Windows、z/OS

製品の最新バージョンについては、IBM Integration Bus バージョン 9.0 をご覧ください。

サンプルの DFDL スキーマ

区切り文字で区切られているテキスト・データのモデル化の方法を示す DFDL スキーマの一部。

次のように区切られた ASCII テキスト・データがあるとします。
int=5;float=-7.1E8
このデータは、以下のようになっています。
これが、DFDL スキーマ・ファイルでは以下のように表されます。
<xs:complexType name="myNumbers">
  <xs:sequence>

    <xs:annotation>
      <xs:appinfo source="http://www.ogf.org/dfdl/v1.0">
        <dfdl:sequence separator=";" encoding="ascii"/>
      </xs:appinfo>
    </xs:annotation>

    <xs:element name="myInt" type="xs:int">
      <xs:annotation>
        <xs:appinfo source="http://www.ogf.org/dfdl/v1.0">
          <dfdl:element representation="text"
                textNumberRep="standard" encoding="ascii"
                lengthKind="delimited" initiator="int=" …/>
        </xs:appinfo>
      </xs:annotation>
    </xs:element>

    <xs:element name="myFloat" type="xs:float">
      <xs:annotation>
        <xs:appinfo source="http://www.ogf.org/dfdl/v1.0">
          <dfdl:element representation="text"
                textNumberRep="standard" encoding="ascii"
                lengthKind="delimited" initiator="float=" …/>
        </xs:appinfo>
      </xs:annotation>
    </xs:element>

  </xs:sequence>
</xs:complexType>
以下は同じ情報ですが、簡易な形式で記述されています。
<xs:complexType name="myNumbers">
  <xs:sequence dfdl:separator=";" dfdl:encoding="ascii" >
    <xs:element name="myInt" type="xs:int"
          dfdl:representation="text"
          dfdl:textNumberRep="standard" dfdl:encoding="ascii"
          dfdl:lengthKind="delimited" dfdl:initiator="int=" … />
    <xs:element name="myFloat" type="xs:float"
          dfdl:representation="text"
          dfdl:textNumberRep="standard" dfdl:encoding="ascii"
          dfdl:lengthKind="delimited" dfdl:initiator="float=" … />
  </xs:sequence>
</xs:complexType>
上記の例は説明のためにのみ用意されたものです。 このサンプルが実際に機能するものになるには、他の DFDL プロパティーもスキーマに含まれている必要があります。
特記事項 | 商標 | ダウンロード | ライブラリー | サポート | フィードバック

Copyright IBM Corporation 1999, 2014Copyright IBM Corporation 1999, 2014.

        
        最終更新:
        
        最終更新: 2015-02-28 17:49:42


概念トピック概念トピック | バージョン 8.0.0.5 | df20080_