<root>

<menu>
<template path="/actions/*">
<submenu dir-for="label">
<attr-connect name="label" function="last-dir" />
<template path="*">
<item dir-for="label,event">
<icon dir-for="icon" width="8" height="8" />
<attr-connect name="label" function="last-dir" />
</item>
</template>
</submenu>
</template>
</menu>

<tabbed>
  <template path="/target/*">
    <tab dir-for="label">
      <attr-connect name="label" function="last-dir" />
      <label dir-for="description" />
      <template path="text/*">
        <text-area dir-for="output,input" />
      </template>
    </tab>
  </template>
</tabbed>

</root>