<?xml-stylesheet href="../forms/xsltforms/xsltforms.xsl" type="text/xsl"?>
<?xsltforms-options debug="no"?>
<html xmlns="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>Select language</title>
   <style type="text/css">
      body { font-family: sans-serif}
      .block {display: block}
      .h {font-weight: bold}
   </style> 
   <model xmlns="http://www.w3.org/2002/xforms">
      <instance>
	 <data xmlns="">
	    <lang/>
	 </data>
      </instance>
      <instance id="languages" src="languages.xml"/>
   </model>
</head>
<body>
   <group xmlns="http://www.w3.org/2002/xforms">
      <select1 class="block" ref="lang">
	 <label>Language:</label>
	 <itemset nodeset="instance('languages')/language">
	    <label ref="name"/>
	    <value ref="code"/>
	 </itemset>
      </select1>
      <output ref="lang"><label>Selected:</label></output>
   </group>
</body>
</html>
