<?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 test schema creation - XForms</html:title>
    <model id="foaf">
      <instance src="./earlBase.rdf" id="default"/>
      <submission action="./earlResult.rdf" id="submit1" method="put"/> 
<!-- can I put  the submission into an instance, so I can modify it in this form? -->
    </model>
   <html:link html:href="style/swad-europe.css" html:rel="stylesheet" html:type="text/css"/>
  <html:style html:type="text/css">
div.item { color: #005a9c;
           font-size: 80%; }
span.title { font-style: bold }
span.date { font-style: italics }
.status {background-color: #FFFF00; color: #000000}</html:style>
</html:head>

<html:body>
<html:h1><html:a html:href="/" html:accesskey="W"><html:img
html:src="../../images/w3c_home.png" html:width="72" html:height="48" html:alt="W3C"
html:align="right"/></html:a> <html:a html:href="../../Overview.html"><html:img html:alt="SWAD-Europe"
html:src="../../images/Image9.png" html:width="100" html:height="100" html:align="right"
html:style="width:100px;height:100px"/></html:a> <html:a
html:href="http://www.cordis.lu/ist/"><html:img html:src="../../images/istlogo-thumb.gif"
html:align="right" html:alt="EU IST logo"/></html:a>
  EARL in Xforms - schema generation</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 <html:a html:href="../../Overview.html">SWAD-Europe project</html:a>. It helps you to record an evaluation of a document's accessibility according to WCAG 1.0 and record the results in EARL, using Xforms.</html:p>
  <html:p>This is a testing version to allow the user a choice of the Testcases to be included in a schema used for an evaluation form.</html:p>
  <html:p>There is <html:a html:href="readme.html#these">help information</html:a> and <html:a html:href="readme.html#Developer">developers' information</html:a> available as part of the <html:a html:href="readme.html">EARL in Xforms documentation</html:a>.</html:p>
  <html:p>Still to do:</html:p>
  <html:ul>
    <html:li>User Interface - suggestions welcome<html:ul>
      <html:li>a nicer style sheet</html:li>
    </html:ul></html:li>
    <html:li>Post the schema to an annotea interface?? This would imply a new annotation type I suspect.</html:li>
  </html:ul>
  
    <group>
      <trigger>
        <label>Add a test case</label>
        <insert at="index('results')" ev:event="xforms-activate" ref="instance('default')/earl:Assertion" position="after"/>
      </trigger>
      <trigger>
        <label>Delete a test case</label>
        <delete at="index('results')" ev:event="xforms-activate" nodeset="instance('default')/earl:Assertion"/>
      </trigger>
    </group>

    <repeat nodeset="instance('default')/earl:Assertion" id="results">
      <group class="section">
        <input ref="earl:testcase/earl:TestCase/dc:title">
          <label>Title of the test case</label>
        </input>
        <input ref="earl:testcase/earl:TestCase/@rdf:about">
          <label>URI of the test case</label>
        </input>
        <input ref="./@rdf:about">
          <label>an ID (URI-ref fragment) for this test case</label>
        </input>
      </group>
      <select1 ref="earl:mode/@rdf:resource" id="modeset"><label>test mode (normally manual)</label>
         <item><label>Manually tested</label>
            <value>http://www.w3.org/WAI/ER/EARL/nmg-strawman#manual</value></item>
         <item><label>Heuristically determined</label>
            <value>http://www.w3.org/WAI/ER/EARL/nmg-strawman#heuristic</value></item>
         <item><label>Automatically tested</label>
            <value>http://www.w3.org/WAI/ER/EARL/nmg-strawman#auto</value></item>
      </select1>
      <group class="uri">
        <textarea ref="earl:message" class="messageBody">
          <label>Default comments</label>
          <hint>Enter text for default comments here</hint>
        </textarea>
      </group>
     </repeat>
      <group>
        <submit submission="submit1">
          <label>Generate the RDF</label> 
        </submit>
      </group>			
  </html:body>
</html:html>

