IDMW 2.0 XML-Schema Dokumentation
FORMULAS Element
IDMW 2.0 XML-Schema Dokumentation > T_NEW_CATALOG Element > FEATURE_DEFINITION Element : FORMULAS Element
Description
This element is used for the calculation of options (e.g. sitting height + 5 cm). The function is however only permitted for dimensional versions with a feature that contains the value "M", the unit of measure can be entered in MEASURE_UNIT, the parameter (e.g. sh for sitting height) in MEASURE_PARAMETER. The calculation is carried out via a formula string that may contain parameters and values.
Namespace (none)
Diagram
FORMULA Element Sequence FORMULAS Element
Overview
FORMULAS optional
This element is used for the calculation of options (e.g. sitting height + 5 cm). The function is however only permitted for dimensional versions with a feature that contains the value "M", the unit of measure can be entered in MEASURE_UNIT, the parameter (e.g. sh for sitting height) in MEASURE_PARAMETER. The calculation is carried out via a formula string that may contain parameters and values.
Sequence
FORMULA 1..∞
The element serves the purpose of defining a formula.The attribute FORMULA_KEY contains the identifier, the FORMULA_STRING contains the actual formula.
FORMULA_KEY required Restriction of xs:string
This attribute is used to define the key for the formula.    D   string
   P   
   M   [1:30]
Sequence
FORMULA_STRING Restriction of xs:string
This element is used to specify a formula.    D   string
   P   [+\-*/()A-Za-z. ]{0,}
   M   
Source
<xs:element name="FORMULAS" minOccurs="0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation xml:lang="de">Formeln dürfen nur angewendet werden auf Maßvarianten </xs:documentation>
    <xs:documentation>Version Beta 2.0 Build 7</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="FORMULA" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="FORMULA_STRING">
              <xs:annotation>
                <xs:documentation xml:lang="DE">Formeln dürfen nur Parameter enthalten, die an der Variantenart definiert wurden.</xs:documentation>
                <xs:documentation>Version Beta 2.0 Build 0</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:pattern value="[+\-*/()A-Za-z0-9. ]*" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="FORMULA_KEY" use="required">
            <xs:annotation>
              <xs:documentation>260--0--NEW</xs:documentation>
              <xs:documentation>Version Beta 2.0 Build 0</xs:documentation>
              <xs:documentation>17.01.2013 - Version 2.2.5 Polsterbranche - von 5 auf 30stellig geändert</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:minLength value="1" />
                <xs:maxLength value="30" />
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>
See Also
FEATURE_DEFINITION ElementT_NEW_CATALOG ElementIDMW 2.0 XML-Schema Dokumentation