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 2011Copyright IBM Corporation 2011.

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