Description
View of xdom:element that treats xdom:elements directly within the body as a record. The tag of those elements becomes the record element name.
View bodyrec
@x:view bodyrec
@x:view | @x:func sys:Is(v~boolean)~boolean |
@x:self | @x:func sys:Dot[name~string] |
View Function sys:Is
@x:func sys:Is(v~boolean)~boolean | ||
|
Semantics
The result is v?xdom:element.LHS/RHS Self Function sys:Dot[ ]
@x:func sys:Dot[name~string] | ||
|
Semantics
The result is the body component with the specified tag. On the rhs, if the body component does not exist the result is null. On the lhs, if value being assigned is null, any element with tag name is removed from the record. On the lhs, if the named element does not exist, it is added.