IBM Integration Bus, Version 10.0.0.5 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS


DFDL language: scoping

Where to set properties for DFDL objects.

DFDL properties do not have built-in defaults. If an object needs a property, you must supply a value.
Tip: The dfdl:ref property can also be used on a dfdl:format annotation, enabling inheritance chaining.
The following sample data shows the different ways that initiators a:, b:, and c: can be set:
<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>
Key:
  •  1  The dfdl:initiator property has been set locally.
  •  2  The dfdl:initiator property has been set in the defined format myFormat, and accessed by dfdl:ref.
  •  3  The dfdl:initiator property has been set in the dfdl:format annotation of the schema.

df20084_.htm | Last updated 2016-06-25 08:09:21