html5/markup/schema warnings.sch,NONE,1.1

Update of /sources/public/html5/markup/schema
In directory hutz:/tmp/cvs-serv12636/schema

Added Files:
	warnings.sch 
Log Message:
convenience

--- NEW FILE: warnings.sch ---
<?xml version="1.0"?>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- RELAX NG Schema for HTML 5: Warnings                          -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<schema xmlns='http://www.ascc.net/xml/schematron'>
  <ns prefix='h' uri='http://www.w3.org/1999/xhtml'/>
  <pattern name="Warnings for HTML5 attributes that are obsolete but conforming">
    <rule context='h:meta'>
      <report test='translate(@http-equiv,"CONTELAGUA", "contelagua")="content-language"' role='warning'>
        Using the &#x201C;meta&#x201D; element to specify the document-wide default language is obsolete.
        Consider specifying the language on the root element instead.
      </report>
    </rule>
    <rule context='h:img'>
      <report test='@border' role='warning'>
        The &#x201C;border&#x201D; attribute on the &#x201C;img&#x201D; element is obsolete.
        Consider specifying &#x201C;img { border: 0; }&#x201C; in CSS instead.
      </report>
    </rule>
    <rule context='h:script[translate(@language, "JAVSCRIPT", "javscript")="javascript"]'>
      <report test='not(@type) or translate(@type, "EXJAVSCRIPT", "exjavscript")="text/javascript"' role='warning'>
        The &#x201C;language&#x201D; attribute on the &#x201C;script&#x201D; element is obsolete. You can safely omit it.
      </report>
    </rule>
    <rule context='h:a'>
      <report test='@name' role='warning'>
        The &#x201C;name&#x201D; attribute on the &#x201C;a&#x201D; element is obsolete. Consider putting an
        &#x201C;id&#x201D; attribute on the nearest container instead.
      </report>
    </rule>
    <rule context='h:table'>
      <report test='@summary' role='warning'>
        The &#x201C;summary&#x201D; attribute on the &#x201C;a&#x201D; element is obsolete.
        Consider describing the structure of complex tables in a &#x201C;caption&#x201D; element
        or in a paragraph, and pointing to the paragraph using the &#x201C;aria-describedby&#x201D; attribute.
      </report>
    </rule>
  </pattern>
</schema>

Received on Friday, 5 February 2010 09:24:54 UTC