2.2.146 calculatedField

The calculatedField element specifies an individual calculation, when the calculation is to be performed, and where the result is stored.

Parent Elements

calculations

Attributes:

expression: This attribute specifies the formula, as an XPath expression, to be evaluated. The result MUST be stored in the target attribute.

refresh: This attribute specifies when the expression MUST be evaluated. The value MUST be one of the following values:

  • onInit: The value is evaluated when the node is initialized.

  • onChange: The value is evaluated when a parameter of the expression changes.

target: This attribute specifies the XPath expression location where the result of evaluating the expression attribute MUST be stored.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

 <xsd:element name="calculatedField">
   <xsd:complexType>
     <xsd:attribute name="target" type="xsd:string" use="required"/>
     <xsd:attribute name="expression" type="xsd:string" use="required"/>
     <xsd:attribute name="refresh" type="xsd:string" use="required"/>
   </xsd:complexType>
 </xsd:element>