Diff for /modules/damieng/clean_xml/loncapa.xsd between versions 1.17 and 1.18

version 1.17, 2015/08/12 14:58:57 version 1.18, 2015/12/23 19:38:13
Line 1 Line 1
 <?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">  <?xml version="1.0" encoding="UTF-8"?>
   <!--
     This schema was created for LON-CAPA.
     Element documentation often comes from the Mozilla Developer Network.
     MDN wiki documents are created by Mozilla Contributors and licensed under CC-BY-SA 2.5.
     Links:
         https://developer.mozilla.org/en-US/docs/Web/HTML/Element
         https://developer.mozilla.org/en-US/docs/MDN/About$history
         http://creativecommons.org/licenses/by-sa/2.5/
   -->
   <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
   <xs:annotation>    <xs:annotation>
     <xs:documentation>      <xs:documentation>
       XML schema for LON-CAPA 2 documents.        XML schema for LON-CAPA documents.
     </xs:documentation>      </xs:documentation>
   </xs:annotation>    </xs:annotation>
       
Line 229 Line 239
       <xs:element ref="standalone"/>        <xs:element ref="standalone"/>
       <xs:element ref="script"/>        <xs:element ref="script"/>
       <xs:element ref="languageblock"/>        <xs:element ref="languageblock"/>
       <xs:element ref="translated"/>  
       <xs:element ref="window"/>        <xs:element ref="window"/>
       <xs:element ref="windowlink"/>        <xs:element ref="windowlink"/>
       <xs:element ref="togglebox"/>        <xs:element ref="togglebox"/>
Line 326 Line 335
       <xs:element ref="textline"/>        <xs:element ref="textline"/>
       <xs:element ref="displayweight"/>        <xs:element ref="displayweight"/>
       <xs:element ref="displaystudentphoto"/>        <xs:element ref="displaystudentphoto"/>
         <xs:element ref="translated"/>
               
       <xs:element ref="span"/>        <xs:element ref="span"/>
       <xs:element ref="a"/>        <xs:element ref="a"/>
Line 5485 Line 5495
       <xs:choice maxOccurs="unbounded" minOccurs="0">        <xs:choice maxOccurs="unbounded" minOccurs="0">
         <xs:element ref="script"/>          <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:documentation>  
               generic metainformation  
             </xs:documentation>  
           </xs:annotation>  
         </xs:element>  
         <xs:element ref="link"/>          <xs:element ref="link"/>
         <xs:element ref="import"/>          <xs:element ref="import"/>
       </xs:choice>        </xs:choice>
Line 5552 Line 5556
   <xs:element name="base">    <xs:element name="base">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Document base URI          The HTML Base Element (&lt;base&gt;) specifies the base URL to use for all relative URLs contained within a document. There can be only one &lt;base&gt; element in a document.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:complexType>      <xs:complexType>
Line 5561 Line 5565
     </xs:complexType>      </xs:complexType>
   </xs:element>    </xs:element>
   <xs:complexType name="htmlMeta">    <xs:complexType name="htmlMeta">
       <xs:annotation>
         <xs:documentation>
           The HTML Meta Element (&lt;meta&gt;) represents any metadata information that cannot be represented by one of the other HTML meta-related elements (&lt;base&gt;, &lt;link&gt;, &lt;script&gt;, &lt;style&gt; or &lt;title&gt;).
   
           Depending on the attributes set, the kind of metadata can be one of the following:
           - If name is set, it is document-level metadata, applying to the whole page.
           - If http-equiv is set, it is a pragma directive, i.e. information normally given by the web server about how the - web page should be served.
           - If charset is set, it is a charset declaration, i.e. the charset used for the serialized form of the webpage. HTML5
           - if the itemprop is set, a user-defined metadata, transparent for the user-agent as the semantics of the metadata is user-specific.
         </xs:documentation>
       </xs:annotation>
     <xs:attributeGroup ref="i18n"/>      <xs:attributeGroup ref="i18n"/>
     <xs:attribute name="id" type="xs:ID"/>      <xs:attribute name="id" type="xs:ID"/>
     <xs:attribute name="http-equiv">      <xs:attribute name="http-equiv">
Line 5773 Line 5788
   <xs:element name="body">    <xs:element name="body">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         The HTML &lt;body&gt; element represents the content of an HTML document. There is only one &lt;body&gt; element in a document.          The HTML Body Element (&lt;body&gt;) represents the content of an HTML document. There can be only one &lt;body&gt; element in a document.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:complexType>      <xs:complexType>
Line 5833 Line 5848
       <xs:choice maxOccurs="unbounded" minOccurs="0">        <xs:choice maxOccurs="unbounded" minOccurs="0">
         <xs:group ref="text-only"/>          <xs:group ref="text-only"/>
       </xs:choice>        </xs:choice>
         <xs:attributeGroup ref="coreattrs"/>
     </xs:complexType>      </xs:complexType>
   </xs:element>    </xs:element>
   <xs:element name="footer">    <xs:element name="footer">
Line 5847 Line 5863
       <xs:choice maxOccurs="unbounded" minOccurs="0">        <xs:choice maxOccurs="unbounded" minOccurs="0">
         <xs:group ref="text-only"/>          <xs:group ref="text-only"/>
       </xs:choice>        </xs:choice>
         <xs:attributeGroup ref="coreattrs"/>
     </xs:complexType>      </xs:complexType>
   </xs:element>    </xs:element>
   <xs:element name="aside">    <xs:element name="aside">
Line 5859 Line 5876
       <xs:choice maxOccurs="unbounded" minOccurs="0">        <xs:choice maxOccurs="unbounded" minOccurs="0">
         <xs:group ref="text-only"/>          <xs:group ref="text-only"/>
       </xs:choice>        </xs:choice>
         <xs:attributeGroup ref="coreattrs"/>
     </xs:complexType>      </xs:complexType>
   </xs:element>    </xs:element>
   <xs:element name="h1" type="headerContent">    <xs:element name="h1" type="headerContent">
Line 6013 Line 6031
   <xs:complexType name="ul-base">    <xs:complexType name="ul-base">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Unordered list          The HTML unordered list element (&lt;ul&gt;) represents an unordered list of items, namely a collection of items that do not have a numerical ordering, and their order in the list is meaningless. Typically, unordered-list items are displayed with a bullet, which can be of several forms, like a dot, a circle or a squared. The bullet style is not defined in the HTML description of the page, but in its associated CSS, using the list-style-type property.
           
           There is no limitation to the depth and imbrication of lists defined with the &lt;ol&gt; and &lt;ul&gt; elements.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:attributeGroup ref="coreattrs"/>      <xs:attributeGroup ref="coreattrs"/>
Line 6063 Line 6083
   <xs:complexType name="ol-base">    <xs:complexType name="ol-base">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Ordered list          The HTML &lt;ol&gt; Element (or HTML Ordered List Element) represents an ordered list of items. Typically, ordered-list items are displayed with a preceding numbering, which can be of any form, like numerals, letters or Romans numerals or even simple bullets. This numbered style is not defined in the HTML description of the page, but in its associated CSS, using the list-style-type property.
           
           There is no limitation to the depth and overlap of lists defined with the &lt;ol&gt; and &lt;ul&gt; elements.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:attributeGroup ref="coreattrs"/>      <xs:attributeGroup ref="coreattrs"/>
Line 6114 Line 6136
   <xs:complexType mixed="true" name="li-base">    <xs:complexType mixed="true" name="li-base">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         List item          The HTML List Item Element (&lt;li&gt;) is used to represent an item in a list. It must be contained in a parent element: an ordered list (&lt;ol&gt;), an unordered list (&lt;ul&gt;), or a menu (&lt;menu&gt;). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:attributeGroup ref="coreattrs"/>      <xs:attributeGroup ref="coreattrs"/>
Line 6649 Line 6671
   <xs:element name="span">    <xs:element name="span">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Inline style          The HTML &lt;span&gt; element is a generic inline container for phrasing content, which does not inherently represent anything. It can be used to group elements for styling purposes (using the class or id attributes), or because they share attribute values, such as lang. It should be used only when no other semantic element is appropriate. &lt;span&gt; is very much like a &lt;div&gt; element, but &lt;div&gt; is a block-level element whereas a &lt;span&gt; is an inline element.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:complexType mixed="true">      <xs:complexType mixed="true">
Line 6778 Line 6800
   <xs:element name="em" type="inlineBaseType">    <xs:element name="em" type="inlineBaseType">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Emphasis          The HTML Emphasis Element (&lt;em&gt;) marks text that has stress emphasis. The &lt;em&gt; element can be nested, with each level of nesting indicating a greater degree of emphasis.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
   </xs:element>    </xs:element>
   <xs:element name="strong" type="inlineBaseType">    <xs:element name="strong" type="inlineBaseType">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         Strong emphasis          The HTML Strong Element (&lt;strong&gt;) gives text strong importance, and is typically displayed in bold.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
   </xs:element>    </xs:element>
Line 7123 Line 7145
           </xs:union>            </xs:union>
         </xs:simpleType>          </xs:simpleType>
       </xs:attribute>        </xs:attribute>
       <xs:attribute default="no" name="encrypturl" type="yesno-or-perl">        <xs:attribute default="no" name="encrypturl" type="yesno-or-perl"/>
         <xs:annotation>  
           <xs:documentation>  
             LON-CAPA specific attribute. If set to yes, the file URL will be hidden.  
           </xs:documentation>  
         </xs:annotation>  
       </xs:attribute>  
     </xs:complexType>      </xs:complexType>
   </xs:element>    </xs:element>
   <xs:element name="figure">    <xs:element name="figure">
Line 7155 Line 7171
           <xs:element minOccurs="0" ref="figcaption"/>            <xs:element minOccurs="0" ref="figcaption"/>
         </xs:sequence>          </xs:sequence>
       </xs:choice>        </xs:choice>
         <xs:attributeGroup ref="coreattrs"/>
     </xs:complexType>      </xs:complexType>
   </xs:element>    </xs:element>
   <xs:element name="figcaption">    <xs:element name="figcaption">
Line 7271 Line 7288
   <xs:element name="param">    <xs:element name="param">
     <xs:annotation>      <xs:annotation>
       <xs:documentation>        <xs:documentation>
         param is used to supply a named property value          The HTML &lt;param&gt; element is used to supply a named property value.
       </xs:documentation>        </xs:documentation>
     </xs:annotation>      </xs:annotation>
     <xs:complexType>      <xs:complexType>
Line 7680 Line 7697
     <xs:complexType mixed="true">      <xs:complexType mixed="true">
       <xs:complexContent>        <xs:complexContent>
         <xs:extension base="inlineBaseType">          <xs:extension base="inlineBaseType">
           <xs:attribute name="for" type="xs:IDREF"/>            <xs:attribute name="for" type="xs:IDREF">
               <xs:annotation>
                 <xs:documentation>
                   The ID of a labelable form-related element in the same document as the label element. The first such element in the document with an ID matching the value of the for attribute is the labeled control for this label element. 
                 </xs:documentation>
               </xs:annotation>
             </xs:attribute>
           <xs:attribute name="accesskey">            <xs:attribute name="accesskey">
               <xs:annotation>
                 <xs:documentation>
                   A shortcut key to access this element from the keyboard.
                 </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"/>
               </xs:restriction>                </xs:restriction>
             </xs:simpleType>              </xs:simpleType>
           </xs:attribute>            </xs:attribute>
             <xs:attribute name="form" type="xs:IDREF">
               <xs:annotation>
                 <xs:documentation>
                   The form element that the label element is associated with (its form owner). If specified, the value of the attribute must be the ID of a &lt;form&gt; element in the same document. This attribute enables you to place label elements anywhere within a document, not just as descendants of their form elements.
                 </xs:documentation>
               </xs:annotation>
             </xs:attribute>
           <xs:attribute name="onfocus" type="xs:string"/>            <xs:attribute name="onfocus" type="xs:string"/>
           <xs:attribute name="onblur" type="xs:string"/>            <xs:attribute name="onblur" type="xs:string"/>
         </xs:extension>          </xs:extension>

Removed from v.1.17  
changed lines
  Added in v.1.18


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