<?xml version="1.0" encoding="UTF-8"?>

<?xml-stylesheet href="earl-xform.css" type="text/css"?>

<html:html xmlns="http://www.w3.org/2002/xforms/cr" 
	xmlns:ev="http://www.w3.org/2001/xml-events" 
	xmlns:html="http://www.w3.org/1999/xhtml" 
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:earl="http://www.w3.org/WAI/ER/EARL/nmg-strawman#">

  <html:head>
    <html:title>Earl evaluation in XForms - Anntoea test version</html:title>
    <model id="foaf">
      <instance src="./earlinst.rdf" id="default"/>
      <bind nodeset="earl:WebContent/earl:date" calculate="now()"/>
      <submission action="http://earl.w3.org:80/earl" id="submit1" method="post"/> 
    </model>
  </html:head>
  <html:body>
  <html:h1>EARL evaluation for Annotea services</html:h1>
  <html:p>This tool was developed by <html:a html:href="http://www.w3.org/People/Charles">Charles McCathieNevile</html:a> as part of the SWAD-Europe project. It helps you to record an evaluation of a document's accessibility according to WCAG 1.0 and record the results in EARL</html:p>
  <html:p>Still to do:</html:p>
  <html:ul>
    <html:li>User Interface - suggestions welcome</html:li>
    <html:li><html:ul>
      <html:li>Modularise the input requirements so they can be swapped in and out. <html:a html:href="makeEarlBase.xml">Working on this</html:a></html:li>
      <html:li>link to further information / instructions</html:li>
      <html:li>a nicer style sheet</html:li>
    </html:ul></html:li>
    <html:li>Factor out the guidelines so different guidelines can be used - <html:a html:href="makeEarlBase.xml">Working on this</html:a></html:li>
    <html:li>Post to annotea interface (W3C EARL server) - this form is a test for that</html:li>
  </html:ul>

<html:h2>About you.</html:h2>
<html:p>Because different people and tools might make different judgements, EARL requires some way of identifying who makes a particular claim.</html:p>

    <group class="section">
      <input ref="instance('default')/earl:Assertor/earl:name" class="uri">
        <label>Your name</label>
      </input>
      <input ref="earl:Assertor/earl:email/@rdf:resource" class="uri">
        <label>Your email address</label>
      </input>
    </group>

<html:h2>The document you are evaluating</html:h2>
<html:p>Please give the URI for the document being evaluated, and the date that you tested it (as a simple way of being able to check if the document changed since then).</html:p>

    <group class="section">
      <input ref="earl:WebContent/earl:reprOf/@rdf:resource" class="uri">
        <label>The document URI</label>
      </input>
      <input ref="earl:WebContent/earl:date" class="uri">
        <label>The date ot the evaluation</label>
      </input>
    </group>

<html:h2>The results</html:h2>
<html:p>This is pretty basic at the moment - you can select different values or leave it as not tested...</html:p>

    <repeat nodeset="earl:Assertion" id="results">
      <group class="section">
          <output ref="earl:testcase/earl:TestCase/dc:title"/>
       <select1 appearance="minimal" ref="earl:result/@rdf:type">
            <item>
              <value>http://www.w3.org/WAI/ER/EARL/nmg-strawman#notTested</value>
              <label>Not tested</label>
           </item>
            <item>
              <value>http://www.w3.org/WAI/ER/EARL/nmg-strawman#pass</value>
              <label>Passes the requirement</label >
           </item>
            <item>
              <value>http://www.w3.org/WAI/ER/EARL/nmg-strawman#fail</value>
              <label>Fails the requirement</label >
           </item>
            <item>
              <value>http://www.w3.org/WAI/ER/EARL/nmg-strawman#notApplicable</value>
              <label>The requirement is not applicable</label >
           </item>
            <item>
              <value>http://www.w3.org/WAI/ER/EARL/nmg-strawman#cannotTell</value>
              <label>I cannot tell</label >
           </item>
         </select1>
       </group>
      <group class="uri">
        <textarea ref="earl:message" class="messageBody">
          <label>Comments</label>
          <hint>Enter any additional comments here</hint>
        </textarea>
      </group>
     </repeat>
      <group>
        <submit submission="submit1">
          <label>Generate the RDF</label> 
        </submit>
      </group>			
  </html:body>
</html:html>

