FSD Sequence tag

The sequence tag defines a sequence of records, choices or other sequences. Unlike choice, a sequence defines records in a fixed order.

<sequence
      name
      output='yes'|'no'
      max-occur
      min-occur>
            <record/>
            <choice/>
            <sequence/>
</sequence>

Attributes

  • name

    Defines the name of the sequence. If the output attribute is set to yes then this name is used as the XML tag name in the output, and used to match the sequence with an XML tag during input.

  • output

    Defines if the sequence is to be included in the output or not. The valid values for this attribute are:

    • yes

      means the sequence should cause a tag to be generated in the output

    • no

      means the sequence is only describing the data structure and is not in the output.

    The default value is yes.

  • max-occur

    Defines the maximum number of occurrences for the sequence. A value of zero means there can be any number of occurrences.

    The default value is one.

  • min-occur

    Defines the minimum number of occurrences for this sequence.

    The default value is zero.