Component /dat/lib/filter/sumation
Sumation will sum a specified element or attribute over a number of non control input documents received on its input port since being cleared. The sum is output as a
value of a root tag. The element or attribute to be summed is specified by a property using an XPath/XSL expression. The resulting XML document is sent to the output port upon receipt of a signal on the send or bod pins, or
receipt of a <cx:send> or <cx:end> control document on the input port. A sumation is reset to zero upon reciept
of a signal on the clear or bod pins, or on the receipt of a <cx:clear> or <cx:begin> documents on the input port
For further information on XPath/XSL expressions, see XSL references.
Pins
- send a signal received on this pin will send the resulting document containing the current sum to the output port.
- clear the sumation will be reset to zero upon receipt of a signal on this pin.
- bod a signal received on this pin will send the resulting document containing the current sum to the output port and reset the
sumation to zero.
Ports
- input the sumation in incremented by the value of the specified element or attribute upon reciept of a non control document on this port. A
<cx:send> or <cx:end> control document will send the result document to the output port. A <cx:clear> or <cx:begin> control document will reset the sumation
to zero.
- output resulting XML document is sent to this port.
Properties
- expr an XPath/XSL expression referencing the element or attribute to be summed.
- type the root tag to be used in the result document. If blank, "sum" will be used.
Copyright 2000,2001 Data Access Technologies