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

version 1.1, 2015/04/17 15:35:01 version 1.2, 2015/04/27 18:05:31
Line 1230 Line 1230
   </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 1254
   <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 1306
   </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 1324
         <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 1363
   <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 1375
         <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 1392
       <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 1421
       <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 1430
     </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.2


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