Re: earl:location again

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 UTC