<?xml version="1.0" encoding="UTF-8"?>
<n:dispatch xmlns:n="http://www.oxygenxml.com/nvdl">
   <n:validate schema="../schemas/xhtml/xhtml.rng">
      <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
            xmlns:ev="http://www.w3.org/2001/xml-events"
            xmlns:my="test"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      
  
         <head>
            <link rel="stylesheet" type="text/css" href="xforms.css"/>
            <title>Sample</title>
         
         </head>
         <body>
            <div>
               <h1>All XForms form controls</h1>
               <p class="headline">&lt;textarea&gt;</p>
            
            
      
               <p class="headline">&lt;input&gt;</p>
               <p>
               
            </p>
               <p class="headline">&lt;output&gt;</p>
            
               <p class="headline">&lt;secret&gt;</p>
            
               <p class="headline">&lt;upload&gt;</p>
            
               <p class="headline">&lt;select1&gt;</p>
               <p>
               
               
        
               
        
               
            </p>
               <p class="headline">&lt;select&gt;</p>
               <p>
               
            </p>
               <p class="headline">&lt;button&gt;</p>
            
               <p class="headline">&lt;submit&gt;</p>
            
               <p class="headline">&lt;reset&gt;</p>
            
            </div>
         </body>
      </html>
   </n:validate>
   <n:allow xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
            xmlns:ev="http://www.w3.org/2001/xml-events"
            xmlns:my="test"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <meta:meta xmlns:meta="http://www.xsmiles.org/2002/metadata" name="XForms Controls"
                 description="Tests all XForms controls in single document"/>
      </n:allow>
   <n:validate xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
               xmlns:ev="http://www.w3.org/2001/xml-events"
               xmlns:my="test"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               schema="../schemas/xforms/XForms-Schema.xsd">
            <xforms:model id="form1">
               <xforms:submission id="submit1" method="post" action="http://sinex.tml.hut.fi:8080/xforms/request"/>
               <xforms:instance id="instance1">
                  
               </xforms:instance>
            </xforms:model>
         </n:validate>
   <n:allow xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
            xmlns:ev="http://www.w3.org/2001/xml-events"
            xmlns:my="test"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                     <my xmlns="">
                        <input>Initial input</input>
                        <secret>Initial secret</secret>
                        <output>Initial output</output>
                        <textarea>Initial textarea</textarea>
                        <range>5</range>
                        <select1>1</select1>
                        <select>1</select>
                        <message>Message read from the instance</message>
                        <upload xsi:type="xsd:base64Binary"/>
                     </my>
                  </n:allow>
   <n:validate xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
               xmlns:ev="http://www.w3.org/2001/xml-events"
               xmlns:my="test"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               schema="../schemas/xforms/XForms-Schema.xsd">
               <xforms:textarea ref="/my/textarea">
                  <xforms:label>Textarea Form Control</xforms:label>
               </xforms:textarea>
            </n:validate>
   <n:validate xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
               xmlns:ev="http://www.w3.org/2001/xml-events"
               xmlns:my="test"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               schema="../schemas/xforms/XForms-Schema.xsd">
               <xforms:textarea ref="/my/textarea">
                  <xforms:label>Textarea Form Control</xforms:label>
               </xforms:textarea>
            </n:validate>
   <n:validate xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
               xmlns:ev="http://www.w3.org/2001/xml-events"
               xmlns:my="test"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               schema="../schemas/xforms/XForms-Schema.xsd">
                  <xforms:input ref="/my/input">
                     <xforms:label>Input Form Control</xforms:label>
                  </xforms:input>
               </n:validate>
   <n:validate xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
               xmlns:ev="http://www.w3.org/2001/xml-events"
               xmlns:my="test"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               schema="../schemas/xforms/XForms-Schema.xsd">
               <xforms:output ref="/my/output">
                  <xforms:label>Input Form Control</xforms:label>
               </xforms:output>
            </n:validate>
   <n:validate xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
               xmlns:ev="http://www.w3.org/2001/xml-events"
               xmlns:my="test"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               schema="../schemas/xforms/XForms-Schema.xsd">
               <xforms:secret ref="/my/secret">
                  <xforms:label>Secret Form Control</xforms:label>
               </xforms:secret>
            </n:validate>
   <n:validate xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
               xmlns:ev="http://www.w3.org/2001/xml-events"
               xmlns:my="test"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               schema="../schemas/xforms/XForms-Schema.xsd">
               <xforms:upload ref="/my/upload">
                  <xforms:label>Select File</xforms:label>
               </xforms:upload>
            </n:validate>
   <n:validate xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
               xmlns:ev="http://www.w3.org/2001/xml-events"
               xmlns:my="test"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               schema="../schemas/xforms/XForms-Schema.xsd">
                  <xforms:select1 ref="/my/select1" appearance="full">
                     <xforms:label>appearance="full"</xforms:label>
                     <xforms:item>
                        <xforms:label>1</xforms:label>
                        <xforms:value>1</xforms:value>
                     </xforms:item>
                     <xforms:item>
                        <xforms:label>2nd</xforms:label>
                        <xforms:value>2</xforms:value>
                     </xforms:item>
                     <xforms:item>
                        <xforms:label>3rd</xforms:label>
                        <xforms:value>3</xforms:value>
                     </xforms:item>
                  </xforms:select1>
               </n:validate>
   <n:validate xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
               xmlns:ev="http://www.w3.org/2001/xml-events"
               xmlns:my="test"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               schema="../schemas/xforms/XForms-Schema.xsd">
                  <xforms:select1 ref="/my/select1" appearance="compact">
                     <xforms:label>appearance="compact"</xforms:label>
                     <xforms:item>
                        <xforms:label>1st</xforms:label>
                        <xforms:value>1</xforms:value>
                     </xforms:item>
                     <xforms:item>
                        <xforms:label>2nd</xforms:label>
                        <xforms:value>2</xforms:value>
                     </xforms:item>
                     <xforms:item>
                        <xforms:label>3rd</xforms:label>
                        <xforms:value>3</xforms:value>
                     </xforms:item>
                  </xforms:select1>
               </n:validate>
   <n:validate xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
               xmlns:ev="http://www.w3.org/2001/xml-events"
               xmlns:my="test"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               schema="../schemas/xforms/XForms-Schema.xsd">
                  <xforms:select1 ref="/my/select1" appearance="full">
                     <xforms:label>appearance="full"</xforms:label>
                     <xforms:item>
                        <xforms:label>1st</xforms:label>
                        <xforms:value>1</xforms:value>
                     </xforms:item>
                     <xforms:item>
                        <xforms:label>2nd</xforms:label>
                        <xforms:value>2</xforms:value>
                     </xforms:item>
                     <xforms:item>
                        <xforms:label>3rd</xforms:label>
                        <xforms:value>3</xforms:value>
                     </xforms:item>
                  </xforms:select1>
               </n:validate>
   <n:validate xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
               xmlns:ev="http://www.w3.org/2001/xml-events"
               xmlns:my="test"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               schema="../schemas/xforms/XForms-Schema.xsd">
                  <xforms:select1 ref="/my/select1" appearance="minimal">
                     <xforms:label>appearance="minimal"</xforms:label>
                     <xforms:item>
                        <xforms:label>1st</xforms:label>
                        <xforms:value>1</xforms:value>
                     </xforms:item>
                     <xforms:item>
                        <xforms:label>2nd</xforms:label>
                        <xforms:value>2</xforms:value>
                     </xforms:item>
                     <xforms:item>
                        <xforms:label>3rd</xforms:label>
                        <xforms:value>3</xforms:value>
                     </xforms:item>
                  </xforms:select1>
               </n:validate>
   <n:validate xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
               xmlns:ev="http://www.w3.org/2001/xml-events"
               xmlns:my="test"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               schema="../schemas/xforms/XForms-Schema.xsd">
                  <xforms:select ref="/my/select">
                     <xforms:label>select Form Control</xforms:label>
                     <xforms:item>
                        <xforms:label>1st</xforms:label>
                        <xforms:value>1</xforms:value>
                     </xforms:item>
                     <xforms:item>
                        <xforms:label>2nd</xforms:label>
                        <xforms:value>2</xforms:value>
                     </xforms:item>
                     <xforms:item>
                        <xforms:label>3rd</xforms:label>
                        <xforms:value>3</xforms:value>
                     </xforms:item>
                  </xforms:select>
               </n:validate>
   <n:validate xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
               xmlns:ev="http://www.w3.org/2001/xml-events"
               xmlns:my="test"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               schema="../schemas/xforms/XForms-Schema.xsd">
               <xforms:trigger>
                  <xforms:label>Click Me</xforms:label>
                  <xforms:message level="ephemeral" ev:event="click" ref="/my/message"/>
               </xforms:trigger>
            </n:validate>
   <n:validate xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
               xmlns:ev="http://www.w3.org/2001/xml-events"
               xmlns:my="test"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               schema="../schemas/xforms/XForms-Schema.xsd">
               <xforms:submit submission="my">
                  <xforms:label>Submit Me</xforms:label>
               </xforms:submit>
            </n:validate>
   <n:validate xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
               xmlns:ev="http://www.w3.org/2001/xml-events"
               xmlns:my="test"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               schema="../schemas/xforms/XForms-Schema.xsd">
               <xforms:trigger>
                  <xforms:label>Reset</xforms:label>
                  <xforms:reset ev:event="DOMActivate"/>
               </xforms:trigger>
            </n:validate>
</n:dispatch>