<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="../xhtml2.css"?>
<!DOCTYPE html [
	<!ATTLIST section id ID #IMPLIED>
	<!ATTLIST h       id ID #IMPLIED>
	<!ATTLIST div     id ID #IMPLIED>
	<!ATTLIST nl      id ID #IMPLIED>
]>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:html2="http://www.w3.org/2002/06/xhtml2"
      xmlns:xforms="http://www.w3.org/2002/xforms"
      xmlns:ev="http://www.w3.org/2001/xml-events"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      lang="en">
  <head>
    <title>Test that MAILTO multipart/related is supported</title>

    <xforms:model id="form1">
      <!-- TBD: Put in correct action  -->
      <xforms:submission id="submit01" method="multipart-post" action="mailto:no-one@example.com" indent="1"/>
      <xforms:instance id="instance1">
	<uploadDocument xmlns="">
	  <title>My Proposal</title>
	  <author>E. X. Ample</author>
	  <summary>A proposal for a new project.</summary>
	  <notes image="">(see handwritten region)</notes>
	  <keywords>project proposal funding</keywords>
	  <readonly>false</readonly>
	  <filename/>
	  <content/>
	</uploadDocument>
      </xforms:instance>
      <xforms:bind nodeset="notes/@image" type="xsd:anyURI" />
      <xforms:bind nodeset="readonly" type="xsd:boolean" />
      <xforms:bind nodeset="content" type="xsd:anyURI" />
    </xforms:model>

  </head>
  <body>
    <group xmlns="http://www.w3.org/2002/xforms">
      <label>Test that multipart/related MAILTO is supported</label>
      <group>
        <label>Select the button and the client should mail the data using MAILTO multipart/related to the no-one@example.com.</label>
      </group>
      <group>
	<input ref="title"><label>Title</label></input>
	<input ref="summary"><label>Summary</label></input>
	<upload ref="notes/@image" mediatype="image/*"><label>Upload Handwritten Image</label></upload>
	<input ref="keywords"><label>Keywords</label></input>
	<input ref="readonly"><label>Readonly</label></input>
	<upload ref="content">
	  <label>Upload Document</label>
	  <filename ref="../filename" />
	</upload>
      </group>
      <submit submission="submit01">
        <label>Mail Data With Attachments</label>
        <hint>Click to mail</hint>
      </submit>
    </group>
  </body>
<!-- xml-stylesheet  type="text/css" href="http://webaccess.mozquito.com/data/demo/xform.css" -->
</html>
