W3C home > Mailing lists > Public > public-wai-ert@w3.org > December 2006

Warning class example

From: Carlos Iglesias <carlos.iglesias@fundacionctic.org>
Date: Tue, 12 Dec 2006 16:02:02 +0100
Message-ID: <09700B613C4DD84FA9F2FEA52188281901930DC3@ayalga.fundacionctic.org>
To: <public-wai-ert@w3.org>


Hi group,

As per my action item from the last teleconference here you have more
examples of my Warning proposal.
Following with the example of the CSS validator, a failed validation
with warnings.

AFAIK a RDF property can't have multiple domains/ranges, so note that
"instance" has now been splitted in two new properties: "resultInstance"
(in TestResult class) and "warningInstance" (in Warning class)

<earl:TestResult rdf:ID="result">
  <earl:validity
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#pass"/>
  <dc:title xml:lang="en">W3C CSS Validator Results</dc:title>
  <dc:description rdf:parseType="Literal" xml:lang="en">
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>This document is not valid CSS</p>
    </div>
  </dc:description>
  <earl:resultInstance rdf:resource"#instance1"
  <earl:warning rdf:resource="#warning1"/>
  <earl:warning rdf:resource="#warning2"/>
</earl:TestResult>

<earl:Warning rdf:ID="warning1">
  <dc:title xml:lang="en">Same color and background-color</dc:title>
  <dc:description rdf:parseType="Literal" xml:lang="en">
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>Same colors for color and background-color in two contexts</p>
    </div>
  </dc:description>
  <earl:warningInstance rdf:resource="#instance2"/>
</earl:Warning>

<earl:Warning rdf:ID="warning2">
  <dc:title xml:lang="en">No generic font family found</dc:title>
  <dc:description rdf:parseType="Literal" xml:lang="en">
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>You are encouraged to offer a generic family as a last
alternative</p>
    </div>
  </dc:description>
  <earl:warningInstance rdf:resource="#instance3"/>
  <earl:warningInstance rdf:resource="#instanceN"/>
</earl:Warning>

<earl:PointerCollection rdf:about="#instance1">
  <earl:LineCharLenPointer>
    <earl:line>55</earl:line>
    <earl:char>12</earl:char>
  </earl:LineCharLenPointer>
</earl:PointerCollection>

<earl:PointerCollection rdf:about="#instance2">
  <earl:LineCharLenPointer>
    <earl:line>145</earl:line>
    <earl:char>1</earl:char>
  </earl:LineCharLenPointer>
</earl:PointerCollection>

<earl:PointerCollection rdf:about="#instance3">
  <earl:LineCharLenPointer>
    <earl:line>154</earl:line>
    <earl:char>1</earl:char>
  </earl:LineCharLenPointer>
</earl:PointerCollection>

<earl:PointerCollection rdf:about="#instanceN">
  <earl:LineCharLenPointer>
    <earl:line>193</earl:line>
    <earl:char>1</earl:char>
  </earl:LineCharLenPointer>
</earl:PointerCollection>
Received on Tuesday, 12 December 2006 15:02:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:27 GMT