c:set

<c:set
  ref = unary_expression
  value? = expression
  as? = type_name >
  <!-- Content: sequence-constructor -->
</c:set>

Assigns a value to a variable or object member.

Category
instruction
Permitted parent elements
Any XCST element whose content model is sequence-constructor
Any literal result element

Attributes

as The type of the value.
ref The reference to set.
value The value to assign.

In addition to the attributes in the preceding table, there are a number of standard attributes that may appear on any XCST element.

Error Conditions

It is a compilation error if the value attribute is present when the content of the element is non-empty.

See Also