[openbox] how to integrate other menu files into menu.xml/rc.xml/root-menu?

Dana Jansens danakj at orodu.net
Wed Sep 4 14:06:25 EDT 2013


On Wed, Sep 4, 2013 at 4:52 AM, R. Mattes <rm at mh-freiburg.de> wrote:

> @developers: (ab)using  one tag for both definition and inclusion
> of a menu seems like a major design flaw. Something like
> <include-menu id=".."/>  would have been much clearer ...
>

This is a really good point, I wish I'd thought that through originally.
I'd support adding a new xml tag to replace the old one, as you suggest.
The old one could continue to work, but we could use the new one in
documentation and examples going forward.


>   Sidenote: of course, this is all reinvent-the-wheel-this-time-square.
>   XML does have an in-build mechanism to do the same - it's called
> XInclude.
>
>   <xi:include href="b.xml/menu[@id='my-menu']"/>
>
>
> Ok, the one part that's missing: if you put you menu into a separate
> file, you need to tell OB to read this file - that's what the
>
>      <file>/path/to/my/menu.xml</file>
>
> in rc.xml is for.
>
> HTH Ralf Mattes
>
> --
> R. Mattes -
> Hochschule fuer Musik Freiburg
> rm at inm.mh-freiburg.de
>
> _______________________________________________
> openbox mailing list
> openbox at icculus.org
> http://icculus.org/mailman/listinfo/openbox
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20130904/bc405be5/attachment.html>


More information about the openbox mailing list