<xs:complexType name="LinearToleranceDefinitionType">
  <xs:annotation>
    <xs:documentation>The LinearToleranceDefinitionType defines a tolerance on a length that can be referenced by its QIF id.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element ref="Attributes" minOccurs="0">
      <xs:annotation>
        <xs:documentation>The optional Attributes element contains user defined attributes (typified, binary array, or XML structured).</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:choice>
      <xs:annotation>
        <xs:documentation>The choice is among (1) MaxValue, (2) MinValue, (3) both (with MaxValue coming first). This choice structure is the normal XML schema language structure for 'one or both').</xs:documentation>
      </xs:annotation>
      <xs:sequence>
        <xs:element name="MaxValue" type="LinearValueType">
          <xs:annotation>
            <xs:documentation>The MaxValue element is the maximum specification limit or upper tolerance.</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="MinValue" type="LinearValueType" minOccurs="0">
          <xs:annotation>
            <xs:documentation>The optional MinValue element is the minimum specification limit or lower tolerance.</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
      <xs:element name="MinValue" type="LinearValueType">
        <xs:annotation>
          <xs:documentation>The MinValue element is the minimum specification limit or lower tolerance.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:choice>
  </xs:sequence>
  <xs:attribute name="id" type="QIFIdType" use="required">
    <xs:annotation>
      <xs:documentation>The id attribute is the QIF id of the tolerance definition, used for referencing.</xs:documentation>
    </xs:annotation>
  </xs:attribute>
</xs:complexType> |