19.2. Multiple menus

Specifying a name attribute for the menu element lets you create an XXE GUI having several menus which are specific to the type of the document being edited.


  1. In XXE_user_preferences_dir/addon/xhtml.xxe, add something like this:

    <menu name="menu2" label="My XHTML Menu">
  2. In XXE_user_preferences_dir/addon/docbook.xxe, add something like this:

    <menu name="menu2" label="My DocBook Menu">

    Notice that the same name menu2 is used in all XML application specific configuration files.

  3. In XXE_user_preferences_dir/addon/customize.xxe_gui (see XMLmind XML Editor - Customizing the User Interface), add something like this:

    <menuItems name="configSpecificMenuItems2">
      <property name="specificationName" type="String" value="menu2" />
    <menu name="configSpecificMenu2" label="_My Menu">
      <menuItems name="configSpecificMenuItems2" />
    <menu name="fileMenu">
      <menu name="configSpecificMenu2" />
      <insert />