 <root>
 <variable name="displayed_path" action="change" value="" />
 <hbox>
 <vbox>
 <template path="/category/*">
   <variable name="blank_path" action="change" value="" />
   <if type="equal" variable1="blank_path" variable2="displayed_path">
      <variable name="displayed_path" action="change" function="path" />
      <variable name="active" action="change" function="path" />
      <variable name="active_directory" action="change" value="/" /> 
       <variable name="active" action="append" variable="active_directory" />
   </if>
   <button dir-for="label">
     <handler>
        <hide variable="active"  />
        <variable name="active" action="change" function="path" />
        <variable name="active_directory" action="change" value="/" /> 
        <variable name="active" action="append" variable="active_directory" />
        <show variable="active" />
     </handler>
   </button>
 </template>
 </vbox>
 <vbox>
 <template path="/category/*/*/text">
 <variable name="current_path" action="change" function="path" />
 <hide />
 <if type="is_children" variable1="displayed_path" variable2="current_path">
   <show />
 </if>
 <hbox>
 <label dir-for="label" />
 <edit dir-for="event,input,output" />
 <label dir-for="description" />
<vbox>
 <template path="options/*">
   <button dir-for="event,label,icon">
     <attr-connect name="label" function="last-dir" />
   </button>
 </template>
 </vbox>
 </hbox>
 </template>
 </vbox>
 </hbox>
 <hbox>
 <button label="Ok" dir-for="label,event" path="/actions/ok" />
 <button label="Cancel" dir-for="label,event" path="/actions/cancel" />
 <button label="Save" dir-for="label,event" path="/actions/save" />
 </hbox>
 </root>
