Ok, the problem is not the deprecated api but rather a problem with the
schemas. I tried to figure out what could be wrong but did not find a
clue. Please help me - i will explain what i found out:
Both MeasureIntervalType and SoftTypedMeasureIntervalType are derived by
restriction (on the one hand restricting MeasureListType and on the
other hand SoftTypedMeasureOrNullListType). The restriction itself is
the same for both:
<restriction base="...">
<length value="2"/>
<attribute name="count" type="nonNegativeInteger"
use="prohibited"/>
</restriction>
Here are the four elements again so that you do not have to spend time
on searching the basicTypes.xsd:
<complexType name="MeasureListType">
<annotation>
<documentation>A list of numeric values, expressed using the
scale indicated by the value of the (mandatory) uom attribute.
</documentation>
</annotation>
<simpleContent>
<extension base="gml:MeasureListType">
<attribute name="nilReason" type="gml:NullType"
use="optional"/>
<attribute name="count" type="nonNegativeInteger"
use="optional"/>
</extension>
</simpleContent>
</complexType>
<!--
====================================================================== -->
<complexType name="MeasureIntervalType">
<annotation>
<documentation>A pair of numeric values, expressed using the
scale indicated by the value of the (mandatory) uom attribute,
attribute, and representing an interval of the phenomenon identified by
the property attribute. </documentation>
</annotation>
<simpleContent>
<restriction base="swe:MeasureListType">
<length value="2"/>
<attribute name="count" type="nonNegativeInteger"
use="prohibited"/>
</restriction>
</simpleContent>
</complexType>
<!--
====================================================================== -->
<complexType name="SoftTypedMeasureOrNullListType">
<annotation>
<documentation>A list of numeric values or Nulls, expressed
using the scale indicated by the value of the (mandatory) uom attribute,
attribute, and representing a set of descriptions of the phenomenon
identified by the property attribute. </documentation>
</annotation>
<simpleContent>
<extension base="gml:MeasureOrNullListType">
<attribute name="property" type="anyURI">
<annotation>
<documentation>This attribute holds a reference
to or label for the property being described.
This will usually refer to a measure described on a ratio or
interval scale,
such as temperature, wavelength, concentration.
</documentation>
</annotation>
</attribute>
<attribute name="nilReason" type="gml:NullType"
use="optional"/>
<attribute name="count" type="nonNegativeInteger"
use="optional"/>
</extension>
</simpleContent>
</complexType>
<!--
====================================================================== -->
<complexType name="SoftTypedMeasureIntervalType">
<annotation>
<documentation>A pair of numeric values, expressed using the
scale indicated by the value of the (mandatory) uom attribute,
attribute, and representing an interval of the phenomenon identified by
the property attribute. </documentation>
</annotation>
<simpleContent>
<restriction base="swe:SoftTypedMeasureOrNullListType">
<length value="2"/>
<!-- <attribute name="count" type="nonNegativeInteger"
use="prohibited"/> -->
</restriction>
</simpleContent>
</complexType>
When i uncomment the restriction of attribute with name 'count' (like:
<!-- <attribute name="count" type="nonNegativeInteger"
use="prohibited"/> -->) the compilation is successfull. What could be
wrong with the schema? I hope you can give me an answer to this question.
Regards,
Johannes Echterhoff
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]