<?xml version="1.0" encoding="ISO-8859-1"?>
<html xmlns="http://www.w3.org/1999/xhtml"
         xmlns:xforms="http://www.w3.org/2002/xforms"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:ev="http://www.w3.org/2001/xml-events"
         xmlns:my="http://localhost/my.xml">

         <object width="0" height="0" id="FormsPlayer" classid="CLSID:4D0ABA11-C5F0-4478-991A-375C4B648F58">
	 		<b>FormsPlayer has failed to load! Please check your installation.</b>
	 		<br />
	 		<br />
	 	</object>
	 	<?import namespace="xforms" implementation="#FormsPlayer"?>


<head>
      <title> Question</title>
     <xforms:model  id="MDLquestion">

            <xforms:submission   id="submit1"  action="http://www.example.com" method="post" replace="all" />

            <xforms:instance xmlns="">
                <Question  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                      xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                      <Semester/>
                      <Commen_question>
                                                       <Times/>
                                                       <Type/>
                                                       <Suggest/>
                      </Commen_question>
                </Question>

           </xforms:instance>

      <xforms:bind nodeset="/Question/Semester" required="true()"  type="xsd:integer"  />

      <xforms:bind nodeset="/Question/Commen_question/Times" required="true()" />

      <xforms:bind nodeset="/Question/Commen_question/Type" required="true()" />

       <xforms:bind nodeset="/Question/Commen_question/Suggest"   type="my:data"/>


                 <xsd:simpleType     name="my:data">
	                        <xsd:restriction  base="xsd:string">
			                         <xsd:pattern value="^$|^(([^\t-]+[\t-]+)$"/>
                            </xsd:restriction>
		       </xsd:simpleType>



</xforms:model>

 </head>

 <body>



 <h3 align=center> This is one Xforms  </h3>

<p/>
<xforms:input ref="/Question/Semester" >
						        <xforms:label>1.Semester: </xforms:label>
						        <xforms:hint>please give your semester</xforms:hint>
</xforms:input>

<p/>

<h2>2.Commen Question</h2>

<xforms:select1 ref="/Question/Commen_question/Times"  appearance="full">

						  <xforms:label>2.1How many times do your to the lessen</xforms:label>

                            <xforms:hint>please select  onlyone </xforms:hint>

						  <xforms:item>
						                                                      <xforms:label>usually</xforms:label>
						                                                      <xforms:value>1</xforms:value>
						   </xforms:item>
						    <xforms:item>
						   						     <xforms:label>""</xforms:label>
						   						     <xforms:value>2</xforms:value>
						   </xforms:item>
						    <xforms:item>
						   						     <xforms:label>""</xforms:label>
						   						     <xforms:value>3</xforms:value>
						   </xforms:item>
						    <xforms:item>
						   						     <xforms:label>""</xforms:label>
						   						     <xforms:value>4</xforms:value>
						   </xforms:item>
						    <xforms:item>
						   						     <xforms:label>no</xforms:label>
						   						     <xforms:value>5</xforms:value>
						   </xforms:item>
						    <xforms:item>
						   						     <xforms:label>I do not know </xforms:label>
						   						     <xforms:value>6</xforms:value>
						   </xforms:item>

</xforms:select1>

<p/>
<xforms:select ref="/Question/Commen_question/Type"  appearance="full">

					         <xforms:label>2.2 which Systime</xforms:label>

                                <xforms:hint>please select one or two</xforms:hint>

						   <xforms:item>
						   						 						           <xforms:label>Windows</xforms:label>
						   						 						            <xforms:value>1</xforms:value>
						   </xforms:item>
						   <xforms:item>
						   						 						           <xforms:label>Unix</xforms:label>
						   						 						            <xforms:value>2</xforms:value>
						   </xforms:item>
						   <xforms:item>
						   						 						           <xforms:label>Linux</xforms:label>
						   						 						            <xforms:value>3</xforms:value>
						   </xforms:item>
						   <xforms:item>
						   						 						           <xforms:label>Macintosh</xforms:label>
						   						 						            <xforms:value>4</xforms:value>
						   </xforms:item>

</xforms:select>

 <p/>
 <h4>2.3 Have you some suggest?</h4>
 <xforms:textarea ref="/Question/Commen_question/Suggest"  style="height:100px; width:300px">
 <xforms:hint>please writer at last three word</xforms:hint>
 </xforms:textarea>
<p/>

 <div>
<xforms:submit id="submit1">
      <xforms:label>Submit</xforms:label>
 </xforms:submit>

<xforms:trigger >
   <xforms:label>clear</xforms:label>
   <xforms:reset ev:event="DOMActivate" model="MDLquestion"/>
</xforms:trigger>

 </body>


