Diff for /modules/damieng/clean_xml/loncapa.xsd between versions 1.1 and 1.4

version 1.1, 2015/04/17 15:35:01 version 1.4, 2015/04/29 15:31:27
Line 734 Line 734
     <xs:attribute name="checkboxvalue" type="xs:string">      <xs:attribute name="checkboxvalue" type="xs:string">
       <xs:annotation>        <xs:annotation>
         <xs:documentation>          <xs:documentation>
           Two-option checkboxes for            When there are only 2 option values, set this attribute to one of them in order to display checkboxes. A foil checkbox will have to be checked when the foil has the chosen option value.
         </xs:documentation>          </xs:documentation>
       </xs:annotation>        </xs:annotation>
     </xs:attribute>      </xs:attribute>
     <xs:attribute name="checkboxoptions">      <xs:attribute name="checkboxoptions">
       <xs:annotation>        <xs:annotation>
         <xs:documentation>          <xs:documentation>
           Checkbox options            Set to "nochoice" to avoid the display of the list of option values.
         </xs:documentation>          </xs:documentation>
       </xs:annotation>        </xs:annotation>
       <xs:simpleType>        <xs:simpleType>
Line 791 Line 791
   </xs:complexType>    </xs:complexType>
   <xs:complexType name="optionresponse--drawoptionlist">    <xs:complexType name="optionresponse--drawoptionlist">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>Draw Option List</xs:documentation>        <xs:documentation>
           Draw Option List
           
           By default, the list of options is presented in front of the foils. Using the optional &lt;drawoptionlist&gt; element, the list of options can be embedded into a foil.
         </xs:documentation>
     </xs:annotation>      </xs:annotation>
   </xs:complexType>    </xs:complexType>
       
Line 804 Line 808
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Query for matches betweens items from two lists.          Query for matches betweens items from two lists.
           It is also possible to query for matches with optionresponse, but optionresponse only accepts simple text for the matches. With matchresponse, it is possible to use anything as a match, such as equations, images, plots, or long styled texts.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:complexType mixed="true">      <xs:complexType mixed="true">
Line 1230 Line 1235
   </xs:element>    </xs:element>
   <xs:complexType name="caparesponse--answergroup">    <xs:complexType name="caparesponse--answergroup">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>Collection of Answers</xs:documentation>        <xs:documentation>
           Collection of Answers.
           This element can be used instead of the answer attribute on the response element when several answers are correct, or when the correct answer has several components.
         </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:choice maxOccurs="unbounded">      <xs:choice maxOccurs="unbounded">
       <xs:element name="answer" type="caparesponse--answer"/>        <xs:element name="answer" type="caparesponse--answer"/>
Line 1251 Line 1259
   <xs:complexType name="caparesponse--answer">    <xs:complexType name="caparesponse--answer">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Correct list of values or vectors.          A correct list of values or vectors.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:choice maxOccurs="unbounded" minOccurs="0">      <xs:choice maxOccurs="unbounded" minOccurs="0">
       <xs:element name="vector" type="caparesponse--vector"/>        <xs:element name="vector" type="caparesponse--vector">
       <xs:element name="value" type="caparesponse--value"/>          <xs:annotation>
             <xs:documentation>
               A vector, part of a correct answer.
             </xs:documentation>
           </xs:annotation>
         </xs:element>
         <xs:element name="value" type="caparesponse--value">
           <xs:annotation>
             <xs:documentation>
               A value, part of a correct answer.
             </xs:documentation>
           </xs:annotation>
         </xs:element>
     </xs:choice>      </xs:choice>
     <xs:attribute name="name" type="xs:string"/>      <xs:attribute name="name" type="xs:string"/>
     <xs:attribute default="ordered" name="type">      <xs:attribute default="ordered" name="type">
Line 1291 Line 1311
   </xs:annotation>    </xs:annotation>
   <xs:element name="formularesponse">    <xs:element name="formularesponse">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>Query for a formula.</xs:documentation>        <xs:documentation>
           Formula Response asks the student to type in a formula as an answer.
           
           If the answer is 2x² + 4, the student is allowed to type “2*x*x+4”, “x*x + x*x + 4”, “2*xˆ2 + 14 - 10”, or any other equivalent expression.
           Formula Response problems have many of the same characteristics of Numerical Response problems, including the ability to run scripts, dynamically generate answers, etc.
         </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:complexType mixed="true">      <xs:complexType mixed="true">
       <xs:choice maxOccurs="unbounded" minOccurs="0">        <xs:choice maxOccurs="unbounded" minOccurs="0">
Line 1304 Line 1329
         <xs:group ref="text-only"/>          <xs:group ref="text-only"/>
       </xs:choice>        </xs:choice>
       <xs:attributeGroup ref="response-identification"/>        <xs:attributeGroup ref="response-identification"/>
       <xs:attribute name="answer" type="xs:string"/>        <xs:attribute name="answer" type="xs:string">
           <xs:annotation>
             <xs:documentation>
               The correct answer. It can use variables calculated/defined in the problem’s Perl script block, allowing the answer to be determined dynamically.
             </xs:documentation>
           </xs:annotation>
         </xs:attribute>
       <xs:attribute name="samples" type="xs:string">        <xs:attribute name="samples" type="xs:string">
         <xs:annotation>          <xs:annotation>
           <xs:documentation>            <xs:documentation>
Line 1337 Line 1368
   <xs:element name="mathresponse">    <xs:element name="mathresponse">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Query for text that is evaluated with a script written in a computer algebra system language by the problem author.          Query for text that is evaluated with a script written in a Computer Algebra System (CAS) language.
           The CAS script must be included in the response with an &lt;answer&gt; element.
                   
         MathResponse is extremely powerful, as it tests answers for conditions rather than agreement with a particular correct answer. An unfortunate byproduct, however, is that it cannot be analyzed by several of the LON-CAPA statistics tools.          MathResponse is extremely powerful, as it tests answers for conditions rather than agreement with a particular correct answer. An unfortunate byproduct, however, is that it cannot be analyzed by several of the LON-CAPA statistics tools.
       </xs:documentation>        </xs:documentation>
Line 1348 Line 1380
         <xs:element name="answer" type="mathresponse--answer">          <xs:element name="answer" type="mathresponse--answer">
           <xs:annotation>            <xs:annotation>
             <xs:documentation>              <xs:documentation>
               Maxima or R script using the arrays RESPONSE and LONCAPALIST.                Maxima or R script using the arrays RESPONSE (the student response) and LONCAPALIST (from the args attribute).
                 Returns a boolean in the last statement that will be true if the answer is correct.
             </xs:documentation>              </xs:documentation>
           </xs:annotation>            </xs:annotation>
         </xs:element>          </xs:element>
Line 1364 Line 1397
       <xs:attribute name="answerdisplay" type="xs:string">        <xs:attribute name="answerdisplay" type="xs:string">
         <xs:annotation>          <xs:annotation>
           <xs:documentation>            <xs:documentation>
             String to display for answer              This attribute contains what is displayed when the problem is in "Show Answer" mode.
               You will want to use it so that the students can see the correct answer after
               the "Show Answer Date" configured when the problem is assigned in the course space.
               
               This is usually the name of a Perl string variable (starting with '$')
               created in a Perl script before the response.
           </xs:documentation>            </xs:documentation>
         </xs:annotation>          </xs:annotation>
       </xs:attribute>        </xs:attribute>
Line 1388 Line 1426
       <xs:attribute name="args" type="xs:string">        <xs:attribute name="args" type="xs:string">
         <xs:annotation>          <xs:annotation>
           <xs:documentation>            <xs:documentation>
             Argument Array              Perl array that will be passed to the CAS script as the LONCAPALIST variable.
               This is usually the name of a Perl array variable (starting with '@') created in a Perl script before the response.
           </xs:documentation>            </xs:documentation>
         </xs:annotation>          </xs:annotation>
       </xs:attribute>        </xs:attribute>
Line 1396 Line 1435
     </xs:complexType>      </xs:complexType>
   </xs:element>    </xs:element>
   <xs:complexType mixed="true" name="mathresponse--answer">    <xs:complexType mixed="true" name="mathresponse--answer">
     <xs:annotation>  
       <xs:documentation>Answer algorithm</xs:documentation>  
     </xs:annotation>  
     <xs:attribute name="type" type="xs:string"/>      <xs:attribute name="type" type="xs:string"/>
     <xs:attribute fixed="preserve" ref="xml:space"/>      <xs:attribute fixed="preserve" ref="xml:space"/>
   </xs:complexType>    </xs:complexType>

Removed from v.1.1  
changed lines
  Added in v.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>