Thread: positive integers and CounterType

Started: 2011-10-21 17:57:33
Last activity: 2011-10-21 17:57:33
Topics: Web Services
Philip Crotwell
2011-10-21 17:57:33
Hi

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"/>
</xs:restriction>
</xs:simpleType>

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
1.

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.

Philip

00:20:43 v.01697673