Actions are parts of the X-script where we can describe what to do in different situations. Each situation in the X-script has a name - for example, "finally", "init", "onAbsence", "onExcess", etc. Situations after a value type has been validated are called "onTrue" and "onFalse", etc. An important action is "forget", which allows to process very large XML source data that is larger than the computer memory - after processing the element, the memory with the processed data is freed.
The list of options is written in the X-script in a section called "options".
<Person xd:script = "finally out('Person was processed'; forget; options trimAttr, trimText);" > firstname = "optional string(2,30); onFalse myError(1);" familyname = "required string(2,30); options setAttrUpperCase;"/>