W3C home > Mailing lists > Public > public-wai-ert@w3.org > August 2005

Re: earl:location again

From: Shadi Abou-Zahra <shadi@w3.org>
Date: Mon, 22 Aug 2005 12:55:49 +0200
Message-ID: <4309AF35.2030907@w3.org>
To: Johannes Koch <johannes.koch@fit.fraunhofer.de>
Cc: "public-wai-ert@w3.org" <public-wai-ert@w3.org>

Hi,

Here is some dummy code to what I think Johannes means:


Johannes Koch wrote:
> Test 1 (missing alt attribute)
> Result is: 3 instances of image missing alt text
> -> 3 earl:location with 1 rdf:li within rdf:Bag (1 locator for img)

 <earl:Location rdf:id="...">
   <rdf:Bag>
     <rdf:li>
       <earl:xpath>path/to/image/1</earl:xpath>
       <earl:line .../>
       ....
     </rdf:li>
   </rdf:Bag>
 </earl:Location>
 <earl:Location rdf:id="...">
   <rdf:Bag>
     <rdf:li>
       <earl:xpath>path/to/image/2</earl:xpath>
       <earl:line .../>
       ....
     </rdf:li>
   </rdf:Bag>
 </earl:Location>
 <earl:Location rdf:id="...">
   <rdf:Bag>
     <rdf:li>
       <earl:xpath>path/to/image/3</earl:xpath>
       <earl:line .../>
       ....
     </rdf:li>
   </rdf:Bag>
 </earl:Location>


> Test 2 (missing separator between links)
> Result is: 1 instance of link combination
> -> 1 earl:location with 2 rdf:li within rdf:Bag (1 locator for a number 
> 1 and 1 locator for a number 2)

 <earl:Location rdf:id="...">
   <rdf:Bag>
     <rdf:li>
       <earl:xpath>path/to/link/1</earl:xpath>
       <earl:line .../>
       ....
     </rdf:li>
     <rdf:li>
       <earl:xpath>path/to/link/2</earl:xpath>
       <earl:line .../>
       ....
     </rdf:li>
   </rdf:Bag>
 </earl:Location>


So the idea is that each "Location" defines one instance of an error. A "Location" may be a composite of several resources that together trigger one instance of an error.

This approach makes good sense to me, what do others think of it?

Regards,
  Shadi


-- 
Shadi Abou-Zahra,     Web Accessibility Specialist for Europe 
Chair and Team Contact for the Evaluation and Repair Tools WG 
World Wide Web Consortium (W3C),           http://www.w3.org/ 
Web Accessibility Initiative (WAI),    http://www.w3.org/WAI/ 
WAI-TIES Project,                 http://www.w3.org/WAI/TIES/ 
Evaluation and Repair Tools WG,     http://www.w3.org/WAI/ER/ 
2004, Route des Lucioles -- 06560, Sophia-Antipolis -- France 
Voice: +33(0)4 92 38 50 64           Fax: +33(0)4 92 38 78 22 
Received on Monday, 22 August 2005 11:01:02 GMT

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