DFDL 言語: スコープ設定

DFDL オブジェクトのプロパティーを設定する範囲。

DFDL プロパティーには組み込みのデフォルトはありません。オブジェクトにプロパティーが必要な場合は、値を指定する必要があります。
ヒント: dfdl:ref プロパティーを dfdl:format 注釈に使用して、継承チェーニングを実現にすることもできます。
以下のサンプル・データは、イニシエーター a:、b:、および c: を設定できるさまざまな方法を示しています。
<xs:schema>
  <xs:annotation>
    <xs:appinfo source="http://www.ogf.org/dfdl/" >   
      <dfdl:format initiator="c:" … />
    </xs:appinfo>
  </xs:annotation>

  <xs:annotation> <xs:appinfo source="http://www.ogf.org/dfdl/" >
      <dfdl:defineFormat name="myFormat" />
      <dfdl:format initiator="b:" … />
      </dfdl:defineFormat>
    </xs:appinfo>
  </xs:annotation>

  <xs:complexType>
    <xs:sequence dfdl:separator="," >
      <xs:element name="a" type="xs:string" dfdl:initiator="a:" 1  />
      <xs:element name="b" type="xs:string" dfdl:ref="myFormat" 2  />
      <xs:element name="c" type="xs:string" 3  />
    </xs:sequence>
  </xs:complexType>
</xs:schema>
キー:
  •  1  dfdl:initiator プロパティーがローカルに設定されています。
  •  2  dfdl:initiator プロパティーが定義済みのフォーマット myFormat で設定されており、dfdl:ref によってアクセスされています。
  •  3  dfdl:initiator プロパティーがスキーマの dfdl:format 注釈で設定されています。
特記事項 | 商標 | ダウンロード | ライブラリー | サポート | フィードバック

Copyright IBM Corporation 1999, 2012Copyright IBM Corporation 1999, 2012.

        
最終更新

        最終更新 : 2012-07-13 15:46:28


参照トピック参照トピック | バージョン 8.0.0.1 | df20084_