A variant of the convert command. The unique difference is that when a single element is selected, the selected element is given a new parent element.
Example:
<simpara id="p1">the <emphasis>little</emphasis> girl.</simpara>
wrapped in a
givesnote
<note>
<simpara id="p1">the <emphasis>little</emphasis> girl.</simpara>
</note>
This is different from command convert which can be used to “morph” selected element to another kind of element. For example, convert cannot wrap the above simpara
in a note
but can morph it to a para
.
Examples:
wrap wrap [implicitElement] div