This section provides documentation of each individual attribute. An example of each is provided. The sample output provided is formatted as XML for each of the attributes supported by the ETV step. All attributes supported by the ETV step are also supported by the XTT step. The attributes are handled in an equivalent way by the XTT step, but the output will be text.
addNumber:
Summary: The addNumber attribute adds the numeric value of the current element to a variable.
Valid Values: A comma-separated list of variable names.
Scope: Element only.
The addNumber attribute adds the numeric value of the current element to the variable named in the attribute. Typically, a single variable will be updated. Multiple variables can be updated by providing a comma-separated list of variable names. The following example shows how the addNumber attribute is used to calculate the total of two record elements:
<Sample>
<record etv:addNumber="aNumber">3.56</record>
<record etv:addNumber="aNumber">1.01</record>
<result etv:number="aNumber"/>
</Sample>
This XML will result in the following text:
<Sample>
<record>3.56</record>
<record>1.01</record>
<result>4.57</result>
</Sample>
Note that the result element is populated with the value of the a Number variable.
align
Summary: The align attribute indicates whether fixed length values that require padding are aligned to the left or the right.