Re: Compound Locations

Hi Nick,

Nick Kew wrote:
> There are a couple of simple cases we can perhaps express:
> * Range (Start-point + End-point)
> * Main+subsidiary locations

Good point. It seems to me that we also need to decide if a single earl:Location instance can describe more than one occurrence of the assertion within the test subject, or if we want to have a 1:1 mapping (1 earl:Location instance corresponds to exactly 1 occurrence). Here is what this proposal could look like in pointy brackets:


* "Simple" location (e.g. IMG missing ALT attribute)

<earl:Location>
  <!--// everything we have to describe the location //-->
  <earl:XPointer>value</earl:XPointer>
  <earl:Line>value</earl:Line>
  ...
</earl:Location>


* "Range" location (e.g. group of unseparated links)

<earl:Location>
  <earl:LocationRangeStart>
    <!--// this is itself another instance of location //-->
    <earl:XPointer>value</earl:XPointer>
    <earl:Line>value</earl:Line>
    ...
  </earl:LocationRangeStart>
  <earl:LocationRangeEnd>
    <!--// this is itself another instance of location //-->
    <earl:XPointer>value</earl:XPointer>
    <earl:Line>value</earl:Line>
    ...
  </earl:LocationRangeEnd>
</earl:Location>


* "Shadow" location (e.g. omitted closing tag)

<earl:Location>
  <earl:primaryLocation>
    <!--// this is itself another instance of location //-->
    <earl:XPointer>value</earl:XPointer>
    <earl:Line>value</earl:Line>
    ...
  </earl:primaryLocation>
  <earl:secondaryLocation>
    <!--// this is itself another instance of location //-->
    <earl:XPointer>value</earl:XPointer>
    <earl:Line>value</earl:Line>
    ...
  </earl:secondaryLocation>
  <!--// there could be several secondary locations //-->
  ...
</earl:Location>


Are there any other type of relationships that we are forgetting?

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 Wednesday, 21 September 2005 08:32:53 UTC