Diff for /modules/damieng/clean_xml/loncapa.xsd between versions 1.5 and 1.9

version 1.5, 2015/04/30 17:45:22 version 1.9, 2015/05/06 19:41:54
Line 1057 Line 1057
   <xs:element name="imageresponse">    <xs:element name="imageresponse">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Query for the selection of an image in a list.          Query for positions on images.
           
           Each foil must contain a reference to an image, at least one rectangle or polygon specifying the correct region, and a text describing what should be selected. Students have to click on the foil image, and their answer is correct if they clicked inside the correct region.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:complexType mixed="true">      <xs:complexType mixed="true">
Line 1347 Line 1349
             3. followed by any number of the following two things, separated by semi-colons:              3. followed by any number of the following two things, separated by semi-colons:
             (a) a comma-separated list of as many numbers as there are variables, which specifies one sampling point, OR              (a) a comma-separated list of as many numbers as there are variables, which specifies one sampling point, OR
             (b) a comma-separated list of as many numbers as there are variables, followed by a colon, followed by another list of as many numbers as there are variables, followed by a #, followed by an integer.              (b) a comma-separated list of as many numbers as there are variables, followed by a colon, followed by another list of as many numbers as there are variables, followed by a #, followed by an integer.
               
               a) specifies one point to sample. b) specifies a range for each variable, and the system will take as many random samples from that range as the number after the #.
           </xs:documentation>            </xs:documentation>
         </xs:annotation>          </xs:annotation>
       </xs:attribute>        </xs:attribute>
Line 1398 Line 1402
         <xs:annotation>          <xs:annotation>
           <xs:documentation>            <xs:documentation>
             This attribute contains what is displayed when the problem is in "Show Answer" mode.              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              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.
             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 '$')              This is usually the name of a Perl string variable (starting with '$') created in a Perl script before the response.
             created in a Perl script before the response.  
           </xs:documentation>            </xs:documentation>
         </xs:annotation>          </xs:annotation>
       </xs:attribute>        </xs:attribute>
Line 2274 Line 2276
     </xs:annotation>      </xs:annotation>
     <xs:complexType mixed="true">      <xs:complexType mixed="true">
       <xs:choice maxOccurs="unbounded" minOccurs="0">        <xs:choice maxOccurs="unbounded" minOccurs="0">
           <xs:element ref="responseparam"/>
         <xs:element ref="textfield"/>          <xs:element ref="textfield"/>
         <xs:element ref="hiddensubmission"/>          <xs:element ref="hiddensubmission"/>
         <xs:element ref="hiddenline"/>          <xs:element ref="hiddenline"/>
Line 2401 Line 2404
       <xs:attribute name="spellcheck">        <xs:attribute name="spellcheck">
         <xs:annotation>          <xs:annotation>
           <xs:documentation>            <xs:documentation>
             Spellcheck for              If this attribute is present, the text the user types is spellchecked when focus leaves the input field.
               The value specifies the language in which the spellcheck is performed.
           </xs:documentation>            </xs:documentation>
         </xs:annotation>          </xs:annotation>
         <xs:simpleType>          <xs:simpleType>
Line 2447 Line 2451
       </xs:attribute>        </xs:attribute>
       <xs:attribute default="no" name="readonly" type="yesno-or-perl"/>        <xs:attribute default="no" name="readonly" type="yesno-or-perl"/>
       <xs:attribute name="spellcheck">        <xs:attribute name="spellcheck">
           <xs:annotation>
             <xs:documentation>
               If this attribute is present, the text the user types is spellchecked when focus leaves the input field.
               The value specifies the language in which the spellcheck is performed.
             </xs:documentation>
           </xs:annotation>
         <xs:simpleType>          <xs:simpleType>
           <xs:union memberTypes="perl">            <xs:union memberTypes="perl">
             <xs:simpleType>              <xs:simpleType>
Line 4796 Line 4806
       </xs:extension>        </xs:extension>
     </xs:complexContent>      </xs:complexContent>
   </xs:complexType>    </xs:complexType>
   <xs:element name="script">  
     <xs:annotation>  
       <xs:documentation>  
         Perl Script Block  
           
         If the attribute type is set to “loncapa/perl” the enclosed data is a Perl script which is evaluated inside the Perl safe space. The return value of the script is ignored.  
       </xs:documentation>  
     </xs:annotation>  
     <xs:complexType mixed="true">  
       <xs:attribute default="text/javascript" name="type" type="xs:string"/>  
       <xs:attribute fixed="preserve" ref="xml:space"/>  
     </xs:complexType>  
   </xs:element>  
   <xs:element name="languageblock">    <xs:element name="languageblock">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
Line 5216 Line 5213
     </xs:annotation>      </xs:annotation>
     <xs:complexType mixed="true">      <xs:complexType mixed="true">
       <xs:attribute name="style" type="xs:string"/>        <xs:attribute name="style" type="xs:string"/>
       <xs:attribute name="display" type="xs:string"/>        <xs:attribute name="display" type="xs:string">
           <xs:annotation>
             <xs:documentation>
               Option to force the math rendering for this element.
             </xs:documentation>
           </xs:annotation>
         </xs:attribute>
     </xs:complexType>      </xs:complexType>
   </xs:element>    </xs:element>
   <xs:element name="chem" type="xs:string">    <xs:element name="chem" type="xs:string">
Line 5373 Line 5376
   <xs:group name="head.misc">    <xs:group name="head.misc">
     <xs:sequence>      <xs:sequence>
       <xs:choice maxOccurs="unbounded" minOccurs="0">        <xs:choice maxOccurs="unbounded" minOccurs="0">
         <xs:element name="script" type="htmlScript"/>          <xs:element ref="script"/>
         <xs:element ref="style"/>          <xs:element ref="style"/>
         <xs:element name="meta" type="htmlMeta">          <xs:element name="meta" type="htmlMeta">
           <xs:annotation>            <xs:annotation>
Line 5582 Line 5585
       <xs:attribute fixed="preserve" ref="xml:space"/>        <xs:attribute fixed="preserve" ref="xml:space"/>
     </xs:complexType>      </xs:complexType>
   </xs:element>    </xs:element>
   <xs:complexType mixed="true" name="htmlScript">    <xs:element name="script">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
           Perl Script Block or Javascript
           
           If the attribute type is set to “loncapa/perl” the enclosed data is a Perl script which is evaluated inside the Perl safe space. The return value of the script is ignored.
           
         The HTML &lt;script&gt; element is used to embed or reference an executable script within an HTML or XHTML document.          The HTML &lt;script&gt; element is used to embed or reference an executable script within an HTML or XHTML document.
                   
         Scripts without async or defer attributes, as well as inline scripts, are fetched and executed immediately, before the browser continues to parse the page.          Scripts without async or defer attributes, as well as inline scripts, are fetched and executed immediately, before the browser continues to parse the page.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:attribute name="id" type="xs:ID"/>      <xs:complexType mixed="true">
     <xs:attribute name="charset" type="xs:string"/>        <xs:attribute name="id" type="xs:ID"/>
     <xs:attribute name="src" type="xs:anyURI">        <xs:attribute name="charset" type="xs:string"/>
       <xs:annotation>        <xs:attribute name="src" type="xs:anyURI">
         <xs:documentation>          <xs:annotation>
           This attribute specifies the URI of an external script; this can be used as an alternative to embedding a script directly within a document. script elements with an src attribute specified should not have a script embedded within its tags.            <xs:documentation>
         </xs:documentation>              This attribute specifies the URI of an external script; this can be used as an alternative to embedding a script directly within a document. script elements with an src attribute specified should not have a script embedded within its tags.
       </xs:annotation>            </xs:documentation>
     </xs:attribute>          </xs:annotation>
     <xs:attribute default="text/javascript" name="type" type="xs:string">        </xs:attribute>
       <xs:annotation>        <xs:attribute default="text/javascript" name="type" type="xs:string">
         <xs:documentation>          <xs:annotation>
           This attribute identifies the scripting language of code embedded within a script element or referenced via the element’s src attribute. This is specified as a MIME type; examples of supported MIME types include text/javascript, text/ecmascript, application/javascript, and application/ecmascript.            <xs:documentation>
         </xs:documentation>              This attribute identifies the scripting language of code embedded within a script element or referenced via the element’s src attribute. This is specified as a MIME type; examples of supported MIME types include text/javascript, text/ecmascript, application/javascript, and application/ecmascript.
       </xs:annotation>              
     </xs:attribute>              If the attribute type is set to “loncapa/perl” the enclosed data is a Perl script which is evaluated inside the Perl safe space. The return value of the script is ignored.
     <xs:attribute name="language" type="xs:string">            </xs:documentation>
       <xs:annotation>          </xs:annotation>
         <xs:documentation>        </xs:attribute>
           Like the type attribute, this attribute identifies the scripting language in use. Unlike the type attribute, however, this attribute’s possible values were never standardized. The type attribute should be used instead.        <xs:attribute name="language" type="xs:string">
         </xs:documentation>          <xs:annotation>
       </xs:annotation>            <xs:documentation>
     </xs:attribute>              Like the type attribute, this attribute identifies the scripting language in use. Unlike the type attribute, however, this attribute’s possible values were never standardized. The type attribute should be used instead.
     <xs:attribute name="defer">            </xs:documentation>
       <xs:annotation>          </xs:annotation>
         <xs:documentation>        </xs:attribute>
           This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed. Since this feature hasn't yet been implemented by all other major browsers, authors should not assume that the script’s execution will actually be deferred. The defer attribute shouldn't be used on scripts that don't have the src attribute. Since Gecko 1.9.2, the defer attribute is ignored on scripts that don't have the src attribute. However, in Gecko 1.9.1 even inline scripts are deferred if the defer attribute is set.        <xs:attribute name="defer">
         </xs:documentation>          <xs:annotation>
       </xs:annotation>            <xs:documentation>
       <xs:simpleType>              This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed. Since this feature hasn't yet been implemented by all other major browsers, authors should not assume that the script’s execution will actually be deferred. The defer attribute shouldn't be used on scripts that don't have the src attribute. Since Gecko 1.9.2, the defer attribute is ignored on scripts that don't have the src attribute. However, in Gecko 1.9.1 even inline scripts are deferred if the defer attribute is set.
         <xs:restriction base="xs:token">            </xs:documentation>
           <xs:enumeration value="defer"/>          </xs:annotation>
         </xs:restriction>          <xs:simpleType>
       </xs:simpleType>            <xs:restriction base="xs:token">
     </xs:attribute>              <xs:enumeration value="defer"/>
     <xs:attribute name="async">            </xs:restriction>
       <xs:annotation>          </xs:simpleType>
         <xs:documentation>        </xs:attribute>
           HTML5 only.        <xs:attribute name="async">
           Set this Boolean attribute to indicate that the browser should, if possible, execute the script asynchronously. It has no effect on inline scripts (i.e., scripts that don't have the src attribute).          <xs:annotation>
         </xs:documentation>            <xs:documentation>
       </xs:annotation>              HTML5 only.
       <xs:simpleType>              Set this Boolean attribute to indicate that the browser should, if possible, execute the script asynchronously. It has no effect on inline scripts (i.e., scripts that don't have the src attribute).
         <xs:restriction base="xs:token">            </xs:documentation>
           <xs:enumeration value="async"/>          </xs:annotation>
         </xs:restriction>          <xs:simpleType>
       </xs:simpleType>            <xs:restriction base="xs:token">
     </xs:attribute>              <xs:enumeration value="async"/>
     <xs:attribute fixed="preserve" ref="xml:space"/>            </xs:restriction>
   </xs:complexType>          </xs:simpleType>
         </xs:attribute>
         <xs:attribute fixed="preserve" ref="xml:space"/>
       </xs:complexType>
     </xs:element>
   <xs:element name="noscript">    <xs:element name="noscript">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
Line 6552 Line 6563
         <xs:group ref="inlines"/>          <xs:group ref="inlines"/>
       </xs:choice>        </xs:choice>
       <xs:attributeGroup ref="coreattrs"/>        <xs:attributeGroup ref="coreattrs"/>
       <xs:attribute name="name" type="xs:string"/>        <xs:attribute name="name" type="xs:string">
       <xs:attribute name="href" type="xs:anyURI"/>          <xs:annotation>
       <xs:attribute name="target" type="xs:string"/>            <xs:documentation>
       <xs:attribute name="title" type="xs:string"/>              HTML 4 only, Obsolete since HTML5.
       <xs:attribute name="uriprint" type="xs:string"/>              
       <xs:attribute name="anchorprint" type="xs:string"/>              This attribute is required in an anchor defining a target location within a page. A value for name is similar to a value for the id core attribute and should be an alphanumeric identifier unique to the document. Under the HTML 4.01 specification, id and name both can be used with the &lt;a&gt; element as long as they have identical values.
       <xs:attribute name="rel" type="xs:NMTOKENS"/>              
               Usage note: This attribute is obsolete in HTML5, use global attribute id instead.
             </xs:documentation>
           </xs:annotation>
         </xs:attribute>
         <xs:attribute name="href" type="xs:anyURI">
           <xs:annotation>
             <xs:documentation>
               This was the single required attribute for anchors defining a hypertext source link, but is no longer required in HTML5. Omitting this attribute creates a placeholder link. The href attribute indicates the link target, either a URL or a URL fragment. A URL fragment is a name preceded by a hash mark (#), which specifies an internal target location (an ID) within the current document. URLs are not restricted to Web (HTTP)-based documents. URLs might use any protocol supported by the browser. For example, file, ftp, and mailto work in most user agents.
               
               Note: You can use the special fragment "top" to create a link back to the top of the page; for example &lt;a href="#top"&gt;Return to top&lt;/a&gt;. This behavior is specified by HTML5.
             </xs:documentation>
           </xs:annotation>
         </xs:attribute>
         <xs:attribute name="target" type="xs:string">
           <xs:annotation>
             <xs:documentation>
               This attribute specifies where to display the linked resource. In HTML4, this is the name of, or a keyword for, a frame. In HTML5, it is a name of, or keyword for, a browsing context (for example, tab, window, or inline frame). The following keywords have special meanings:
               
               * _self: Load the response into the same HTML4 frame (or HTML5 browsing context) as the current one. This value is the default if the attribute is not specified.
               * _blank: Load the response into a new unnamed HTML4 window or HTML5 browsing context.
               * _parent: Load the response into the HTML4 frameset parent of the current frame or HTML5 parent browsing context of the current one. If there is no parent, this option behaves the same way as _self.
               * _top: In HTML4: Load the response into the full, original window, canceling all other frames. In HTML5: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as _self.
               
               Use this attribute only if the href attribute is present.
             </xs:documentation>
           </xs:annotation>
         </xs:attribute>
         <xs:attribute name="title" type="xs:string">
           <xs:annotation>
             <xs:documentation>
               Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip.
             </xs:documentation>
           </xs:annotation>
         </xs:attribute>
         <xs:attribute name="rel" type="xs:NMTOKENS">
           <xs:annotation>
             <xs:documentation>
               For anchors containing the href attribute, this attribute specifies the relationship of the target object to the link object. The value is a comma-separated list of link types values. The values and their semantics will be registered by some authority that might have meaning to the document author. The default relationship, if no other is given, is void. Use this attribute only if the href attribute is present.
             </xs:documentation>
           </xs:annotation>
         </xs:attribute>
       <xs:attribute name="accesskey">        <xs:attribute name="accesskey">
           <xs:annotation>
             <xs:documentation>
               Provides a hint for generating a keyboard shortcut for the current element. This attribute consists of a space-separated list of characters. The browser should use the first one that exists on the computer keyboard layout.
             </xs:documentation>
           </xs:annotation>
         <xs:simpleType>          <xs:simpleType>
           <xs:restriction base="xs:string">            <xs:restriction base="xs:string">
             <xs:length fixed="true" value="1"/>              <xs:length fixed="true" value="1"/>
Line 6577 Line 6634
           </xs:documentation>            </xs:documentation>
         </xs:annotation>          </xs:annotation>
       </xs:attribute>        </xs:attribute>
         <xs:attribute name="uriprint" type="xs:string">
           <xs:annotation>
             <xs:documentation>
               Attribute specific to LON-CAPA.
               Display the href attribute when printing.
             </xs:documentation>
           </xs:annotation>
           <xs:simpleType>
             <xs:restriction base="xs:string">
               <xs:enumeration value="on"/>
               <xs:enumeration value="uriprint"/>
               <xs:enumeration value="yes"/>
               <xs:enumeration value="1"/>
             </xs:restriction>
           </xs:simpleType>
         </xs:attribute>
         <xs:attribute name="anchorprint" type="xs:string">
           <xs:annotation>
             <xs:documentation>
               Attribute specific to LON-CAPA.
               Display the name attribute when printing.
             </xs:documentation>
           </xs:annotation>
           <xs:simpleType>
             <xs:restriction base="xs:string">
               <xs:enumeration value="on"/>
               <xs:enumeration value="anchorprint"/>
               <xs:enumeration value="yes"/>
               <xs:enumeration value="1"/>
             </xs:restriction>
           </xs:simpleType>
         </xs:attribute>
     </xs:complexType>      </xs:complexType>
   </xs:element>    </xs:element>
   <xs:element name="em" type="inlineBaseType">    <xs:element name="em" type="inlineBaseType">
Line 6596 Line 6685
   <xs:element name="b" type="inlineBaseType">    <xs:element name="b" type="inlineBaseType">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Bold          The HTML &lt;b&gt; Element represents a span of text stylistically different from normal text, without conveying any special importance or relevance. It is typically used for keywords in a summary, product names in a review, or other spans of text whose typical presentation would be boldfaced. Another example of its use is to mark the lead sentence of each paragraph of an article.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
   </xs:element>    </xs:element>
   <xs:element name="i" type="inlineBaseType">    <xs:element name="i" type="inlineBaseType">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Italic          The HTML &lt;i&gt; Element represents a range of text that is set off from the normal text for some reason, for example, technical terms, foreign language phrases, or fictional character thoughts. It is typically displayed in italic type.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
   </xs:element>    </xs:element>
   <xs:element name="sup" type="inlineBaseType">    <xs:element name="sup" type="inlineBaseType">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Superscript          The HTML Superscript Element (&lt;sup&gt;) defines a span of text that should be displayed, for typographic reasons, higher, and often smaller, than the main span of text.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
   </xs:element>    </xs:element>
   <xs:element name="sub" type="inlineBaseType">    <xs:element name="sub" type="inlineBaseType">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Subscript          The HTML Subscript Element (&lt;sub&gt;) defines a span of text that should be displayed, for typographic reasons, lower, and often smaller, than the main span of text.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
   </xs:element>    </xs:element>

Removed from v.1.5  
changed lines
  Added in v.1.9


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