Download "user manual"

Transcript
Oxygen XML Author plugin | Author Mode Customization | 398
a) Set XPath expression field to true().
true() is equivalent with leaving this field empty.
b) Set Invoke operation to use InvokeFragmentOperation built-in operation that inserts an XML fragment to the
cursor position.
c) Configure operation's arguments as follows:
fragment - set it to:
<table xmlns=
"http://www.oxygenxml.com/sample/documentation">
<header><td/><td/><td/></header>
<tr><td/><td/><td/></tr>
<tr><td/><td/><td/></tr>
</table>
insertLocation - to add tables at the end of the section use the following code:
ancestor::section/*[last()]
insertPosition - Select After.
Configure the Main Menu for a Framework
Defined actions can be grouped into customized menus in the Oxygen XML Author plugin menu bar.
1. Open the Document Type configuration dialog box for the SDF framework and go to the Author tab.
2. Go to the Menu subtab. In the left side you have the list of actions and some special entries:
•
•
Submenu - Creates a submenu. You can nest an unlimited number of menus.
Separator - Creates a separator into a menu. This way you can logically separate the menu entries.
3. The right side of the panel displays the menu tree with Menu entry as root. To change its name, click this label to
select it, then press the
Edit button. Enter SD Framework as name, and D as menu access key.
4. Select the Submenu label in the left panel section and the SD Framework label in the right panel section, then press
the
Add as child button. Change the submenu name to Table, using the
Edit button.
5. Select the Insert section action in the left panel section and the Table label in the right panel section, then press the
Add as sibling button.
6. Now select the Insert table action in the left panel section and the Table in the right panel section. Press the
as child button.
Figure 165: Configuring the Menu
Add