About Arbortext Styler > Cutting, Copying, and Pasting > Cutting, Copying, and Pasting Contexts
Cutting, Copying, and Pasting Contexts
Arbortext Styler enables you to cut, copy, and paste element contexts through operations on the Edit menu, associated keyboard shortcuts, toolbar buttons, and the shortcut menu. Note that if you cut or copy a context you include all the context's conditions in the cut or copy action. You cannot cut or copy multiple contexts in a single operation.
The following procedure demonstrates how to copy and paste an element context. Cutting and pasting is a similar operation, but the cut context is removed from the Elements list.
Copying and Pasting an Element Context
1. In Arbortext Editor, open your document and use the Styler menu to open a stylesheet.
2. In Arbortext Styler, click on the plus sign ( + ) beside the element with the context you want to copy in the Elements list.
The element's contexts are displayed.
3. Select the element context you want to copy.
4. Select Edit > Copy to copy the context.
You can also use CTRL+C or the Copy toolbar button for this operation.
5. Select the element where you want to paste the context in the Elements list.
You can paste the context in the same element, if desired.
6. Select Edit > Paste to paste the context.
You can also use CTRL+V or the Paste toolbar button for this operation. Note the following:
If you selected a different element in which to paste the context, Arbortext Styler pastes a copy of the context into that element's list of contexts. The context is the same, but the name changes to reflect the new parent element. If desired, you can use the Edit > Edit Context operation or edit the context's properties to modify the pasted context.
If you pasted the context into the same element, the New Context dialog box opens as this is a duplicate context. Change the pasted context as desired and close the dialog box. If desired, you can edit the context's properties to modify the pasted context.
If you have copied a context of a namespaced element from a different module, and that module declares a namespace that also exists in the current module but with a different prefix, you will see that you will see that in some cases the context's namespace prefix will change when the paste action to the current module is completed. As a rule, anywhere the element name is used in the context's selector will be replaced by the destination element. Note, though, that a change of namespace prefix could happen for other namespaced elements in the selector. For example, the selector abc:title in efg:para could become abc1:title in section. Arbortext Styler changed the prefix abc to abc1 but the efg prefix doesn't appear when pasted because it simply gets replaced with the destination element.