<?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}
      .xforms-repeat-item-selected { background: yellow}
   </style> 

   <model xmlns="http://www.w3.org/2002/xforms">
      <instance id="todo" src="todo-list.xml"/>
      <instance id="admin">
	 <data xmlns="">
	    <index>1</index>
	 </data>
      </instance>
   </model>
</head>
<body>
   <group ref="todo[position() = instance('admin')/index]" xmlns="http://www.w3.org/2002/xforms">
      <trigger>
	 <label>&lt;</label>
	 <setvalue ev:event="DOMActivate"
		   ref="instance('admin')/index" value=". - 1"/>
      </trigger>
      [<output ref="instance('admin')/index"/>]
      <output ref="date"/>&#160;<!--nbsp--> 
      <output ref="status"/>&#160; 
      <output ref="task"/>
      <trigger>
	 <label>&gt;</label>
	 <setvalue ev:event="DOMActivate"
		   ref="instance('admin')/index" value=". + 1"/>
      </trigger>
   </group>
</body>
</html>
