<?xml version="1.0" encoding="UTF-8"?>

<dm:page xmlns:dm="http://datamixer.org/config"
	 xmlns:dmf="http://datamixer.org/config/functions">

  <!-- office hours -->
  <dm:values id="hours">
    <dmf:forEach>
      <dmf:concat>
	<dm:counter>
	  <dm:strings>Mon, Tues, Weds, Thurs, Fri</dm:strings>
	  <dm:strings>" "</dm:strings>
	  <dm:strings>9AM-12PM, 1PM-3PM</dm:strings>
	</dm:counter>
      </dmf:concat>
    </dmf:forEach>
  </dm:values>

  <dm:values id="teachers" scope="application">
    <dmf:forEach begin="1" end="5">
      <dm:list name="teacher">

	<!-- primary key -->
	<dm:ints range="[1]" name="pk"/>

	<!-- name -->
	<dm:iterator reference="names"/>

	<!-- office location -->
	<dm:iterator collection="offices" repeat="true" random="true" replace="false"/>

	<!-- office hours -->
	<dm:iterator collection="hours"
		     repeat="true"
		     random="true"
		     replace="false"
		     name="office_hours"/>

	<!-- listeners -->
	<dm:listener listener="csvTeachers" event="next" action="setValueWrite"/>
	<dm:listener listener="xmlTeachers" event="next" action="setValueWrite"/>
      </dm:list>
    </dmf:forEach>
  </dm:values>

</dm:page>
