Trying to make the <insert/> element more readable

https://www.w3.org/community/xformsusers/wiki/XForms_2.0#The_insert_Element

The text for the insert element is two pages of fairly opaque text, which I have recently thought about a lot trying to make it more digestible.

=====

The target-sequence is obtained from the element evaluation context.

An origin sequence is obtained by evaluating the origin attribute in the in-scope evaluation context, and removing any root nodes (parents of document elements) from the resulting sequence. An implementation may choose not to include namespace nodes in the origin-sequence, in particular if the namespace axis is not supported or if inserting the namespace node would make the data model inconsistent.

An element is added to a sequence: