<?xml version="1.0"?>
<yep:description
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:yep="http://www.entrouvert.org/namespaces/expression/0.0"
    xmlns:xforms="http://www.w3.org/2002/xforms">
 <xforms:model id="directoryModel"
               schema="http://www.entrouvert.org/expression/schemas/Directory.xsd">
<!--  <xforms:bind nodeset="yep:item" relevant="@visible != 'false'"/> -->
  <xforms:submission action="file://tmp/abracadabra-put.xml" method="put" id="submit"/>
 </xforms:model>

 <yep:page name="new" type="form">
  <yep:body>
   <xforms:group model="directoryModel">
    <xforms:label yep:translatable="true">Directory</xforms:label>
    <xforms:input ref="@publicName">
     <xforms:label yep:translatable="true">Public Name</xforms:label>
    </xforms:input>
   </xforms:group>
  </yep:body>
  <yep:actionButtonsBar>
   <yep:actionButton>
    <xforms:label yep:translatable="true">Create</xforms:label>
    <yep:action>submit</yep:action>
   </yep:actionButton>
  </yep:actionButtonsBar>
 </yep:page>

 <yep:page name="edit" type="form">
  <yep:body>
   <xforms:group model="directoryModel">
    <xforms:label yep:translatable="true">Directory</xforms:label>
    <xforms:input ref="@publicName">
     <xforms:label yep:translatable="true">Public Name</xforms:label>
    </xforms:input>
   </xforms:group>
  </yep:body>
  <yep:actionButtonsBar>
   <yep:actionButton>
    <xforms:label yep:translatable="true">Modify</xforms:label>
    <yep:action>submit</yep:action>
   </yep:actionButton>
  </yep:actionButtonsBar>
 </yep:page>

 <yep:body>
  <xforms:group model="directoryModel">
   <xforms:label yep:translatable="true">Directory</xforms:label>
   <xforms:group ref="yep:items">
    <xforms:label yep:translatable="true">Items</xforms:label>
    <xforms:repeat ref="yep:item">
     <xforms:trigger>
      <xforms:label ref="@name"/>
      <xforms:load ev:event="DOMActivate" ref="@name" show="replace"/>
     </xforms:trigger>
    </xforms:repeat>
   </xforms:group>
  </xforms:group>
 </yep:body>
 <yep:actionButtonsBar>
  <yep:actionButton>
   <xforms:label yep:translatable="true">Edit</xforms:label>
   <yep:action>edit</yep:action>
  </yep:actionButton>
 </yep:actionButtonsBar>

</yep:description>
