Name

calculate

Synopsis

Allowed values:any XPath expression; the result is interpreted as a string.
Default value:none

This property defines a calculation used to determine the value of the node.

It’s important that interrelated calculations run in the proper order, and XForms takes care of this by analyzing the dependencies and correctly ordering the individual computations.

Warning

It’s not wise to attach an editable form control to a calculated node, since the XForms specification gives recalculation engines the freedom to recalculate at nearly any given time. As part of the recalculation processing, any new information entered into the form control will get wiped out.

Get XForms Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.