Thread: positive integers and CounterType

Started: Oct. 21, 2011, 10:57 a.m.
Last activity: Oct. 21, 2011, 10:57 a.m.
Topics: Web Services
Philip Crotwell
Oct. 21, 2011, 10:57 a.m.

Small issue, but here is another place where the documentation and the
schema don't line up.

<!-- Positive integers used as counters for stage numbers, component
numbers, etc. -->
<xs:simpleType name="CounterType">
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>

The docs seems to indicate that CounterType should start with 1 but
the schema says it starts with 0. The use in the stage number of a
response, using stage=0 to denote the overall gain, agrees with the
schema, but other uses, like in TotalChannels in DataLoggerType and
number of Coefficients in PolynomialType would seem to imply a min of

The CounterType also seems to be used or not used inconsistently. For
example it is used as the type of the number attribute in Coefficient
inside PolynomialType, but a similar situation for
NumeratorCoefficient in FIRType just uses xs:integer with no limits.