Schematron Pretty

Schema for Web Content Accessibility

http://www.ascc.net/xml/resource/schematron/wai.xml

+//IDN sinica.edu.tw/SGML Schema for WAI//EN

     Pattern    g1 +//IDN sinica.edu.tw/SGML Schema for WAI::Guideline 1//EN      

Web Content Accessibility Guidelines 1.0, Guideline 1

For documentation, please refer to http://www.w3.org/TR/WAI-WEBCONTENT/#gl-provide-equivalents

     Rule   
img | IMG
     Assert   
@alt or @ALT or @longdesc or @LONGDESC(1.1) An image element should have some descriptive text: an alt or longdesc attribute.
     Key imgkey  
@alt
     Rule   
input | INPUT
     Assert   
@alt or @ALT(1.1) An input element should have some descriptive text: an alt or longdesc attribute.
     Rule   
applet | APPLET
     Assert   
@alt or @ALT(1.1) An applet element should have some descriptive text: an alt or longdesc attribute.
     Rule   
map | MAP
     Assert   
area/@alt or a or A or AREA/@ALT(1.1) A map element should have some descriptive text: an alt attribute or a link.
     Rule   
object | OBJECT
     Assert   
string-length(text()) > 0(1.1) An object element should contain some descriptive text.
     Rule   
frame | FRAME
     Assert   
@longdesc or @LONGDESC(1.1) A frame element should have some descriptive text: a longdesc attribute.



     Pattern           

Web Content Accessibility Guidelines 1.0, Guideline 2

For documentation, please refer to http://www.w3.org/TR/WAI-WEBCONTENT/#gl-color

     Rule   
body | BODY
     Report samecolor  
string(@bgcolor) = string(@color)(2.2) The background color and the foreground color are the same



     Pattern           

Web Content Accessibility Guidelines 1.0, Guideline 3

For documentation, please refer to http://www.w3.org/TR/WAI-WEBCONTENT/#gl-structure-presentation

     Rule   
b | I | i | B
     Report   
self::*(3.3) Concerning element <name path=""/>: B and I are not recommended. Use strong and em, or stylesheets.
     Rule   
ul | ol | UL | OL
     Assert   
li or LI(3.3) A list should not be used for formatting effects



     Pattern           

Web Content Accessibility Guidelines 1.0, Guideline 4

For documentation, please refer to http://www.w3.org/TR/WAI-WEBCONTENT/#gl-abbreviated-and-foreign

     Rule topdoc  
html | HTML | body | BODY
     Assert   
@lang or @xml:lang or @LANG (4.3) The primary language of a document should be identified.



     Pattern           

Web Content Accessibility Guidelines 1.0, Guideline 5

For documentation, please refer to http://www.w3.org/TR/WAI-WEBCONTENT/i#gl-table-markup

     Rule   
table | TABLE
     Assert   
caption or CAPTION(5.1) A table should have a caption
     Assert   
@summary or @SUMMARY(5.5) A table should have a summary attribute
     Rule   
td | TD
     Assert   
@scope or @headers or @axis or @SCOPE or @HEADERS or @AXIS (5.2) Table data should identify its scope, headers, axis in attributes.
     Rule   
th | TH
     Assert   
@abbr or @ABBR(5.6) A table header should have an abbr attribute to give abbreviation



     Pattern           

Web Content Accessibility Guidelines 1.0, Guideline 6

For documentation, please refer to http://www.w3.org/TR/WAI-WEBCONTENT/#gl-new-technologies

     Rule   
*[@onmouseup]
     Assert   
@onkeyup or @ONKEYUP(6.4) If you specify an "onmouseup" attribute on a <name path=""/> element, you should also specify an "onkeyup" attribute
     Rule   
*[@onmousedown] | *[@ONMOUSEDOWN]
     Assert   
@onkeydown or @ONKEYDOWN(6.4) If you specify an "onmousedown" attribute on a <name path=""/> element, you should also specify an "onkeydown" attribute
     Rule   
*[@onclick] | *[@ONCLICK]
     Assert   
@onkeypress or @ONKEYPRESS(6.4) If you specify an "onclick" event on a <name path=""/> element, you should also specify an "onkeypress"
     Rule   
marquee | MARQUEE
     Assert   
*(6.5) The marquee element is not good HTML
     Rule   
blink | BLINK
     Assert   
*(6.5) The blink element is not good HTML
     Rule   
frame | FRAME
     Report   
contains(@src, '.gif') or contains(string(@src), '.GIF') or contains(string(@src), '.jpg') or contains(string(@src), '.JPG') or contains(string(@src), '.jpeg') or contains(string(@src), '.JPEG') or contains(string(@src), '.png') or contains(string(@src), '.PNG') (6.2) A frame should not be a direct image
     Assert   
../noframes or ../NOFRAMES(6.5) If you specify a frame, also specify a noframes element.



     Pattern           

Web Content Accessibility Guidelines 1.0, Guideline 7

For documentation, please refer to http://www.w3.org/TR/WAI-WEBCONTENT/#gl-movement

     Rule   
meta | META
     Report   
@http-equiv = 'refresh'(7.1) The user should control the refreshing of the page



     Pattern           

Web Content Accessibility Guidelines 1.0, Guideline ?

For documentation, please refer to http://www.w3.org/TR/WAI-WEBCONTENT/

     Rule   
fieldset | FIELDSET
     Assert   
legend or LEGEND(?) A fieldset should have a legend



     Pattern           

Web Content Accessibility Guidelines 1.0, Guideline 12

For documentation, please refer to http://www.w3.org/TR/WAI-WEBCONTENT/#gl-complex-elements

     Rule   
frameset | FRAMESET
     Assert   
@title or @TITLE(12.1) A frameset should have a title




Schematron Pretty by Rick Jelliffe. The Schematron by Rick Jelliffe, Academia Sinica Computing Centre.