- From: Carlos Iglesias <carlos.iglesias@fundacionctic.org>
- Date: Tue, 12 Dec 2006 16:59:33 +0100
- To: "Johannes Koch" <johannes.koch@fit.fraunhofer.de>, <public-wai-ert@w3.org>
Hi again Johannes, > >> Carlos Iglesias schrieb: > >>> <earl:validity > >>> rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#pass"/> > >> ^^^^ > >>> <div xmlns="http://www.w3.org/1999/xhtml"> > >>> <p>This document is not valid CSS</p> > >> ^^^ > >> ??? > > > > Sorry, it should be: > > > > <earl:validity > > rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#fail"/> > > There is no text message for the error. How does it look > like, if there are some errors (fail test results) and some warnings? Your're right, I'm having problems with my homework ;o) let's try again! CSS validation is a high level Test that is composed of several minor tests AFAIR we took the decision that we can only express individual TestResults at the detail level we choose (we don't have any mechanism to establish relationships between results), so the only way (with or without warnings) we have today to express the example you're proposing could be something like: <earl:TestResult rdf:ID="result1"> <earl:validity rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#fail"/> <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:warning rdf:resource="#warning1"/> <earl:warning rdf:resource="#warning2"/> </earl:TestResult> <earl:TestResult rdf:ID="result2"> <earl:validity rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#fail"/> <dc:title xml:lang="en">Property doesn't exist</dc:title> <dc:description rdf:parseType="Literal" xml:lang="en"> <div xmlns="http://www.w3.org/1999/xhtml"> <p>Property <strong>dispaly</strong> doesn't exist</p> </div> </dc:description> <earl:resultInstance rdf:resource="#instance1"/> <earl:resultInstance rdf:resource="#instance2"/> </earl:TestResult> <earl:TestResult rdf:ID="resultN"> <earl:validity rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#fail"/> <dc:title xml:lang="en">Invalid number</dc:title> <dc:description rdf:parseType="Literal" xml:lang="en"> <div xmlns="http://www.w3.org/1999/xhtml"> <p>font-size Parse Error - <strong>font-size::1em</strong></p> </div> </dc:description> <earl:resultInstance rdf:resource="#instance3"/> </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="#instance5"/> </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="#instance6"/> <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="#instanceN"> <earl:LineCharLenPointer> <earl:line>193</earl:line> <earl:char>1</earl:char> </earl:LineCharLenPointer> </earl:PointerCollection> Note that in this case I've choosen to associate the warnings with the high level test (because they're more related to it) but you could also associate warnings with lower level tests. More comments? Regards, CI.
Received on Tuesday, 12 December 2006 16:00:20 UTC