Diff for /modules/damieng/clean_xml/loncapa.xsd between versions 1.3 and 1.8

version 1.3, 2015/04/27 20:39:01 version 1.8, 2015/05/04 20:59:30
Line 158 Line 158
       <xs:documentation>        <xs:documentation>
         Root for .library documents.          Root for .library documents.
         A LON-CAPA .library file can contain just a script block, or just response items, or both.          A LON-CAPA .library file can contain just a script block, or just response items, or both.
         Library content is loaded into a problem statement by using an &lt;import&gt; tag.          Library content is loaded into a problem statement by using an &lt;import&gt; element.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:complexType mixed="true">      <xs:complexType mixed="true">
Line 430 Line 430
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Query for a string.          Query for a string.
         An internal textline tag is necessary for the student’s response to go in. It can check the string for either case or order.          An internal textline element is necessary for the student’s response to go in. It can check the string for either case or order.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:complexType mixed="true">      <xs:complexType mixed="true">
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 1347 Line 1347
             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 1400
         <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 2315 Line 2315
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Query for text or numbers.          Query for text or numbers.
         Advanced type of response that implements a simple data storage and needs an input tag, such as textline, to work correctly.          Advanced type of response that implements a simple data storage and needs an input element, such as textline, to work correctly.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:complexType mixed="true">      <xs:complexType mixed="true">
Line 2401 Line 2401
       <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 2448
       </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 2525 Line 2532
       <xs:documentation>        <xs:documentation>
         Conditional Hint          Conditional Hint
                   
         When a hint tag named the same as the on attribute evaluates to be correct, the hintpart will show.          When a hint element named the same as the on attribute evaluates to be correct, the hintpart will show.
         If no other hintpart is to show then all hintparts with an on value set to “default” will show.          If no other hintpart is to show then all hintparts with an on value set to “default” will show.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
Line 2593 Line 2600
       <xs:documentation>        <xs:documentation>
         Radiobutton Hint Condition          Radiobutton Hint Condition
                   
         The radiobutton hint tag takes two parameters: answer and name. The name is the name of the hint condition, and the answer is an array. The first element of the array will be 'foil'; the remaining elements are the names of the foils that you require to have been checked by the student for the hint to be displayed. For example, if you create a radiobutton response problem with six foils named: granite, gabbro, gneiss, shale, sandstone and schist, and you want your hint named: igneous to be displayed when either granite or basalt had been checked your radiobutton hint would be as follows:          The radiobutton hint element takes two parameters: answer and name. The name is the name of the hint condition, and the answer is an array. The first element of the array will be 'foil'; the remaining elements are the names of the foils that you require to have been checked by the student for the hint to be displayed. For example, if you create a radiobutton response problem with six foils named: granite, gabbro, gneiss, shale, sandstone and schist, and you want your hint named: igneous to be displayed when either granite or basalt had been checked your radiobutton hint would be as follows:
                   
         &lt;radiobuttonhint answer="('foil','granite','gabbro')" name="igneous"&gt;&lt;/radiobuttonhint&gt;          &lt;radiobuttonhint answer="('foil','granite','gabbro')" name="igneous"&gt;&lt;/radiobuttonhint&gt;
                   
Line 2626 Line 2633
       <xs:documentation>        <xs:documentation>
         Option Response Hint Condition          Option Response Hint Condition
                   
         There are two types of option response hint conditions: one for standalone foils and one for concept groups. In both cases the option hint tag includes two parameters: answer and name for standalone foils, and concept and name for foils grouped together in a concept group. For the answer parameter, the names and submitted values for each of the foils that are being included in the hint condition are provided in a hash, i.e., in the format: ('Foil1'= &gt; 'True','Foil2'= &gt; 'False'). In the case of a conditional hint for a concept group, the format of the concept parameter is also a hash that links the name of each concept group included in the hint condition to either 'correct' or 'incorrect' - e.g., &lt; optionhint concept="('buoyancy'= &gt; 'correct','density'= &gt; 'correct')" name="fluids" / &gt; If 'correct' is specified for a named concept then when the conditional hint is evaluated answers for each of the foils selected by a student must be correct for the hint action to be triggered. If anything other than 'correct' is provided in the concept hash in the optionhint tag then then students answers will be compared with the set answers for the foils in the concept group and as long as at least one answer is incorrect (i.e., the concept group was not correctly answered) then the corresponding hint action will be triggered.           There are two types of option response hint conditions: one for standalone foils and one for concept groups. In both cases the option hint element includes two parameters: answer and name for standalone foils, and concept and name for foils grouped together in a concept group. For the answer parameter, the names and submitted values for each of the foils that are being included in the hint condition are provided in a hash, i.e., in the format: ('Foil1'= &gt; 'True','Foil2'= &gt; 'False'). In the case of a conditional hint for a concept group, the format of the concept parameter is also a hash that links the name of each concept group included in the hint condition to either 'correct' or 'incorrect' - e.g., &lt; optionhint concept="('buoyancy'= &gt; 'correct','density'= &gt; 'correct')" name="fluids" / &gt; If 'correct' is specified for a named concept then when the conditional hint is evaluated answers for each of the foils selected by a student must be correct for the hint action to be triggered. If anything other than 'correct' is provided in the concept hash in the optionhint element then then students answers will be compared with the set answers for the foils in the concept group and as long as at least one answer is incorrect (i.e., the concept group was not correctly answered) then the corresponding hint action will be triggered. 
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:complexType>      <xs:complexType>
Line 2989 Line 2996
   <xs:element name="gnuplot">    <xs:element name="gnuplot">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         The gnuplot LON-CAPA tag allows an author to design a plot which will be created programatically at the time when it is requested for display by a student. This is intended for use in homework problems where a distinct plot should be rendered for each student. It can be used in conjunction with a script to generate curve data for random plots.          The gnuplot LON-CAPA element allows an author to design a plot which will be created programatically at the time when it is requested for display by a student. This is intended for use in homework problems where a distinct plot should be rendered for each student. It can be used in conjunction with a script to generate curve data for random plots.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:complexType>      <xs:complexType>
Line 3000 Line 3007
         <xs:annotation>          <xs:annotation>
           <xs:documentation>            <xs:documentation>
             Brief description of the plot.              Brief description of the plot.
             This text is used as the alt value of the img tag used to display the plot on a web page.              This text is used as the alt value of the img element used to display the plot on a web page.
           </xs:documentation>            </xs:documentation>
         </xs:annotation>          </xs:annotation>
       </xs:attribute>        </xs:attribute>
Line 3375 Line 3382
       <xs:element name="axis" type="lonplot--axis">        <xs:element name="axis" type="lonplot--axis">
         <xs:annotation>          <xs:annotation>
           <xs:documentation>            <xs:documentation>
             The Plot Axes tag allows you to specify the domain and range of the data to display. It is closely tied with the Plot Ticks tags, which specify where the gridlines are drawn on the plot.              The Plot Axes element allows you to specify the domain and range of the data to display. It is closely tied with the Plot Ticks elements, which specify where the gridlines are drawn on the plot.
           </xs:documentation>            </xs:documentation>
         </xs:annotation>          </xs:annotation>
       </xs:element>        </xs:element>
       <xs:element name="curve" type="lonplot--curve">        <xs:element name="curve" type="lonplot--curve">
         <xs:annotation>          <xs:annotation>
           <xs:documentation>            <xs:documentation>
             The curve tag is where you set the data to be plotted by gnuplot.              The curve element is where you set the data to be plotted by gnuplot.
           </xs:documentation>            </xs:documentation>
         </xs:annotation>          </xs:annotation>
       </xs:element>        </xs:element>
       <xs:element name="key" type="lonplot--key">        <xs:element name="key" type="lonplot--key">
         <xs:annotation>          <xs:annotation>
           <xs:documentation>            <xs:documentation>
             The key tag causes a key to be drawn on the plot when it is generated. The key will contain an entry for each curve which has a name.              The key element causes a key to be drawn on the plot when it is generated. The key will contain an entry for each curve which has a name.
             The key is the color of the foreground of the plot, specified in the gnuplot tag.              The key is the color of the foreground of the plot, specified in the gnuplot element.
           </xs:documentation>            </xs:documentation>
         </xs:annotation>          </xs:annotation>
       </xs:element>        </xs:element>
       <xs:element name="label" type="lonplot--label">        <xs:element name="label" type="lonplot--label">
         <xs:annotation>          <xs:annotation>
           <xs:documentation>            <xs:documentation>
             The label tag allows the author to place text at any position on the plot. There may be many label tags on one plot and all the labels which fall within the plot will show. The color used will be to foreground color of the plot and the font will be the size specified for the plot, both of which are set in the gnuplot tag.              The label element allows the author to place text at any position on the plot. There may be many label elements on one plot and all the labels which fall within the plot will show. The color used will be to foreground color of the plot and the font will be the size specified for the plot, both of which are set in the gnuplot element.
           </xs:documentation>            </xs:documentation>
         </xs:annotation>          </xs:annotation>
       </xs:element>        </xs:element>
Line 3763 Line 3770
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Causes a key to be drawn on the plot when it is generated. The key will contain an entry for each curve which has a name.          Causes a key to be drawn on the plot when it is generated. The key will contain an entry for each curve which has a name.
         The key is the color of the foreground of the plot, specified in the gnuplot tag.          The key is the color of the foreground of the plot, specified in the gnuplot element.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:attribute name="title" type="xs:string">      <xs:attribute name="title" type="xs:string">
Line 3854 Line 3861
       <xs:element name="tic">        <xs:element name="tic">
         <xs:annotation>          <xs:annotation>
           <xs:documentation>            <xs:documentation>
             The &lt;tic&gt; tag allows users to specify exact Tic positions and labels for each axis.              The &lt;tic&gt; element allows users to specify exact Tic positions and labels for each axis.
             In this version we only support level 0 tics (major tic).              In this version we only support level 0 tics (major tic).
             Each tic has associated with it a position and a label $current_tics is a reference to the current tick description hash.              Each tic has associated with it a position and a label $current_tics is a reference to the current tick description hash.
             We add elements to an array in that has: ticspecs whose elements are 'pos' - the tick position and 'label' - the tic label.              We add elements to an array in that has: ticspecs whose elements are 'pos' - the tick position and 'label' - the tic label.
Line 3922 Line 3929
     <xs:attribute default="off" name="rotate" type="onoff-or-perl">      <xs:attribute default="off" name="rotate" type="onoff-or-perl">
       <xs:annotation>        <xs:annotation>
         <xs:documentation>          <xs:documentation>
           For output devices that support it, this rotates the tic label by 90 degrees. This is most useful with large lables defined by the tic tag described below.            For output devices that support it, this rotates the tic label by 90 degrees. This is most useful with large lables defined by the tic element described below.
         </xs:documentation>          </xs:documentation>
       </xs:annotation>        </xs:annotation>
     </xs:attribute>      </xs:attribute>
Line 3960 Line 3967
       <xs:documentation>        <xs:documentation>
         Conditional Block          Conditional Block
                   
         This has a required argument condition that is evaluated. If the condition is true, everything inside the tag is evaluated; otherwise, everything inside the block tag is skipped.          This has a required argument condition that is evaluated. If the condition is true, everything inside the element is evaluated; otherwise, everything inside the block element is skipped.
                   
         When found inside the gnuplot element, a block can only have gnuplot children inside, with no text.          When found inside the gnuplot element, a block can only have gnuplot children inside, with no text.
       </xs:documentation>        </xs:documentation>
Line 4268 Line 4275
       <xs:documentation>        <xs:documentation>
         Parameter for a part          Parameter for a part
                   
         parameter is exactly the same as responseparam, but should appear outside of a response tag.          parameter is exactly the same as responseparam, but should appear outside of a response element.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:complexType>      <xs:complexType>
Line 4443 Line 4450
       <xs:documentation>        <xs:documentation>
         Import a File          Import a File
                   
         This causes the parse to read in the file named in the body of the tag and parse it as if the entire text of the file had existed at the location of the tag.          This causes the parse to read in the file named in the body of the element and parse it as if the entire text of the file had existed at the location of the element.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:complexType>      <xs:complexType>
Line 4476 Line 4483
       <xs:documentation>        <xs:documentation>
         Conditional Block          Conditional Block
                   
         This has a required argument condition that is evaluated. If the condition is true, everything inside the tag is evaluated; otherwise, everything inside the block tag is skipped.          This has a required argument condition that is evaluated. If the condition is true, everything inside the element is evaluated; otherwise, everything inside the block element is skipped.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:attribute name="condition" type="xs:string">      <xs:attribute name="condition" type="xs:string">
Line 4533 Line 4540
       <xs:documentation>        <xs:documentation>
         While Loop Block          While Loop Block
                   
         This implements a while loop. The required attribute condition is a Perl scriptlet that when evaluated results in a true or false value. If true, the entirety of the text between the whiles is parsed. The condition is tested again, etc. If false, it goes to the next tag.          This implements a while loop. The required attribute condition is a Perl scriptlet that when evaluated results in a true or false value. If true, the entirety of the text between the whiles is parsed. The condition is tested again, etc. If false, it goes to the next element.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:complexType mixed="true">      <xs:complexType mixed="true">
Line 4677 Line 4684
       <xs:documentation>        <xs:documentation>
         Randomly Parsed Block          Randomly Parsed Block
                   
         The enclosed tags are parsed in a stable random order. The optional attribute show=“N” restricts the number of tags inside that are actually parsed to no more than N. N can equal the total tags inside. The randomlist tag can be used to randomize problem parts by wrapping the &lt;part&gt; tags with a randomlist tag. Note that when randomlist wraps &lt;part&gt; tags, that all students will work all parts only if show=“N” where N is the total number of parts wrapped. When N is less than the total number of parts wrapped, there will be gaps in the assessment chart, and also in the table of submissions for each student, corresponding to those parts which are never available to that particular student.          The enclosed elements are parsed in a stable random order. The optional attribute show=“N” restricts the number of elements inside that are actually parsed to no more than N. N can equal the total elements inside. The randomlist element can be used to randomize problem parts by wrapping the &lt;part&gt; elements with a randomlist element. Note that when randomlist wraps &lt;part&gt; elements, that all students will work all parts only if show=“N” where N is the total number of parts wrapped. When N is less than the total number of parts wrapped, there will be gaps in the assessment chart, and also in the table of submissions for each student, corresponding to those parts which are never available to that particular student.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:attribute name="show" type="int-or-perl">      <xs:attribute name="show" type="int-or-perl">
Line 4796 Line 4803
       </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 4827 Line 4821
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         &lt;translated&gt; starts a block of a resource that has multiple translations.          &lt;translated&gt; starts a block of a resource that has multiple translations.
         See the &lt;lang&gt; tag as well.          See the &lt;lang&gt; element as well.
         When &lt;/translated&gt; is encountered if there is a translation for the currently preferred language, that is rendered inthe web/tex/webgrade targets. Otherwise, the default text is rendered.          When &lt;/translated&gt; is encountered if there is a translation for the currently preferred language, that is rendered inthe web/tex/webgrade targets. Otherwise, the default text is rendered.
         Note that &lt;lang&gt; is only registered for the duration of the &lt;translated&gt;...&lt;/translated&gt; block.          Note that &lt;lang&gt; is only registered for the duration of the &lt;translated&gt;...&lt;/translated&gt; block.
       </xs:documentation>        </xs:documentation>
Line 4842 Line 4836
   <xs:element name="lang">    <xs:element name="lang">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Specifies that the block contained within it is a translation for a specific language specified by the 'which' attribute. The 'other' attribute can be used by itself or in conjunction with which to specify this tag _may_ be used as a translation for some list of languages. e.g.:          Specifies that the block contained within it is a translation for a specific language specified by the 'which' attribute. The 'other' attribute can be used by itself or in conjunction with which to specify this element _may_ be used as a translation for some list of languages. e.g.:
         &lt;lang which='senisoUS' other='senisoCA,senisoAU,seniso'&gt;          &lt;lang which='senisoUS' other='senisoCA,senisoAU,seniso'&gt;
         specifying that the block provides a translation for US (primary) Canadian, Australian and UK English.          specifying that the block provides a translation for US (primary) Canadian, Australian and UK English.
       </xs:documentation>        </xs:documentation>
Line 5131 Line 5125
       <xs:documentation>        <xs:documentation>
         Display Script Result Block          Display Script Result Block
                   
         The intervening Perl script is evaluated in the safe space and the return value of the script replaces the entire tag.          The intervening Perl script is evaluated in the safe space and the return value of the script replaces the entire element.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
   </xs:element>    </xs:element>
Line 5216 Line 5210
     </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 5373
   <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 5582
       <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 6596 Line 6604
   <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.3  
changed lines
  Added in v.1.8


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