<?xml-stylesheet type="text/xsl" href="/xforms-tests/xsltforms/xsltforms.xsl"?>
<html xmlns:my="http://commerce.example.com/payment" xmlns:txs="http://sourceforge.net/projects/txs" xmlns="http://www.w3.org/1999/xhtml" xmlns:req="http://www.agencexml.com/requests" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <head>
    <title>8.1.6.c filename and mediatype elements for upload element</title>
    <link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
    <xforms:model>
       <xforms:instance xmlns="">       
          <mail>
          	<picture>
          		<attach xsi:type="xsd:base64Binary"/>
          		<name xsi:type="xsd:anyURI"/>
          		<type/>
          	</picture>
          </mail>
       </xforms:instance>
    </xforms:model>
  </head>
  <body>
    <xforms:group>
  	    <xforms:label class="title">8.1.6.c filename and mediatype elements for upload element</xforms:label>
  	</xforms:group>
  	<xforms:group>
  		<xforms:label>
  		  After activating the Upload control and selecting a file you must see the Filename and Media Type 
  		  output controls display the name and type of the file you selected. 
  		</xforms:label>
  	</xforms:group>
  	<xforms:group>	
       	<xforms:upload ref="/mail/picture/attach">
       		<xforms:label>Upload</xforms:label>
       		<xforms:filename ref="/mail/picture/name"/>
       		<xforms:mediatype ref="/mail/picture/type"/>
       	</xforms:upload>
  	</xforms:group>
  	<xforms:group>
  		<xforms:output ref="/mail/picture/name">
  			<xforms:label>Filename : </xforms:label>
  		</xforms:output>
	</xforms:group>
	<xforms:group>
		<xforms:output ref="/mail/picture/type">
			<xforms:label>Media type : </xforms:label>
		</xforms:output>
    </xforms:group>
  </body>
</html>