<?xml-stylesheet href="../forms/xsltforms/xsltforms.xsl" type="text/xsl"?>
<?xsltforms-options debug="no"?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://www.w3.org/1999/xhtml"
      xmlns:xf="http://www.w3.org/2002/xforms"
      xmlns:ev="http://www.w3.org/2001/xml-events"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
<head>
   <title>Master/detail 1</title>

   <style type="text/css">
      body { font-family: sans-serif}
   </style> 

   <model xmlns="http://www.w3.org/2002/xforms">
      <instance id="todo" src="todo-list.xml"/>
      <instance id="admin">
	 <data xmlns="">
	    <selected/>
	 </data>
      </instance>
   </model>
</head>
<body>
   <group xmlns="http://www.w3.org/2002/xforms">
      <select1 ref="instance('admin')/selected">
	 <label>What</label>
	 <itemset nodeset="instance('todo')/todo">
	    <label ref="task"/>
	    <value ref="task"/>
	 </itemset>
      </select1>
      <repeat nodeset="todo[task=instance('admin')/selected]">
	 <output ref="status"/>&#160;
	 <output ref="date"/><h:br/>
      </repeat>
   </group>
</body>
</html>
