Alexey "[Die]Ash" Shakin wrote:
> Suppose, I want to create two XXE-plugins - cfg1 & cfg2.
> Each plugin will made small modification in standard menu
> and toolbar. Any end-user should be able install both plugins
> simultaneously or separately from each other.
> 
> I think that when both plugin will loaded I can see the
> following state of menu:
> 
> \DocBook
>    ... some items
>    --- separator
>    \Convert Document ->
>    ---
>    Group 1... -> menu of first plugin cfg1
>    ---
>    Group 2... -> menu of first plugin cfg2
> 
> But I can see only "Group 1". The same thing with toolbar.
> 
> My customization config available in attached archive.
> What's wrong?

Nothing is wrong. XXE has just not been designed to allow this.

In cfg1/cfg1.xxe and cfg2/cfg2.xxe, I've replaced <configuration
name="cfg1"...> and <configuration name="cfg2"...> by <configuration
name="DocBook"...>. (File names and directory names cfg1, cfg1.xxe,
cfg2, cfg2.xxe are fine. What's important is the name attribute.)

This is really important because both your configurations are in fact
customizations of the stock "DocBook" configuration.

After doing this, here's what happens:
* Both cfg1.xxe and cfg2.xxe are loaded and *each* *one* is considered
to be a configuration for DocBook documents.
* XXE just needs and keeps one configuration named "DocBook": cfg1.xxe.

The workaround is simple: create 3 add-ons: cfg1, cfg2, cfg1+cfg2. And
because configuration files are modular, you don't need to duplicate
things in order to create cfg1+cfg2.



Reply via email to