XTCE 1.2 RTF Avatar
  1. OMG Issue

XTCE12 — Possible unused attribute in RepeatEntry

  • Key: XTCE12-13
  • Legacy Issue Number: 19443
  • Status: closed  
  • Source: NASA ( Mr. James Kevin Rice)
  • Summary:

    The RepeatEntry has a count element (required) and an offset element (optional). The offset element has four choices: offsetSizeInBits (attribute), FixedValue, DynamicValue, DiscreteLookupList (elements).

    The first item there seems a sore thumb... further you can easily say two conflicting things with it.

    The offsetSizeInBits is probably an vestige from an earlier version of the schema and can be removed.

  • Reported: XTCE 1.1 — Mon, 2 Jun 2014 04:00 GMT
  • Disposition: Resolved — XTCE 1.2
  • Disposition Summary:

    Propose to remove the redundant attribute

    OffsetType is only used in RepeatType. Eliminate OffsetType from the schema and define the Offset element in
    RepeatType as an IntegerValueType.

    Delete complexType OffsetType:
    <complexType name="OffsetType">
    <annotation>
    <documentation xml:lang="en">Indicates the distance between repeating entries (the last bit of one entry to the start bit of the next entry)</documentation>
    </annotation>
    <complexContent>
    <extension base="xtce:IntegerValueType">
    <attribute name="offsetSizeInBits" type="positiveInteger" default="1"/>
    </extension>
    </complexContent>
    </complexType>

    Replace element Offset in complexType RepeatType:
    <complexType name="RepeatType">
    ...
    <sequence>
    ...
    <element name="Offset" type="xtce:OffsetType" minOccurs="0"/>
    </sequence>
    </complexType>

    with the element:
    <element name="Offset" type="xtce:IntegerValueType" minOccurs="0"/>

  • Updated: Tue, 10 Jul 2018 14:22 GMT