Re: Linking 'location' and 'technique': models and examples

Hi,

Quoting Shadi Abou-Zahra <shadi@w3.org>:
> > I assume this actually refers to option C ("techniques" element
> > inside the "location" element). The repetition of the technique 
> > for each location is a clear downside. On the other hand, as
> > Carlos Velasco pointed out, we could require that test samples
> > are "atomic" in the sense that each sample contains only one
> > occurrence of the failure or technique, 
> > hence avoiding repetition of the technique.
> 
> So if we would adopt option B, each test sample would have exactly
> one 
> occurrence of the location element and the metadata would look
> something 
> like this:
> 
> <locations>
>    <location>
>      <technique ... />
>      <earl:xPointer ... />
>      <earl:htmlPointer ... />
>      <!-- more earl pointers -->
>      ...
>    </location>
> </locations>
> 
> Is that what you mean?

That would be model C ("techniques" inside "location") ;-)
If we adopt this, I'd rather see this:
<locations>
   <location>
     <techniques>
      <technique ... />
     <techniques>
     <earl:xPointer ... />
     <earl:htmlPointer ... />
     <!-- more earl pointers -->
     ...
   </location>
</locations>

(Why wrap <technique .../> in <techniques>? To support linking more 
than one technique/failure to the same location, e.g. sufficient 
contrast and no flash in an image.)

> > Any other thoughts on this?
> 
> Can you give an example of option A just to compare?

Model A: (ID and IDREFS)

<locations expectedResult="fail">
  <location techrefs="WCAG20-TECHS-20060427-H57">
    <earl:xPath>
      <earl:expression>/:html[@lang]</earl:expression>
    </earl:xPath>
    <earl:lineCharLen>
      <earl:line>4</earl:line>
      <earl:char>25</earl:char>
    </earl:lineCharLen>
  </location>
</locations>
<techniques>
  <technique xlink:href="http://...#H57" id="WCAG20-TECHS-20060427-H57" 
/>
</techniques>


Model B: "locations" inside "technique":

<techniques>
  <technique xlink:href="http://...#H57">
    <locations expectedResult="fail">
      <location>
        <earl:xPath>
          <earl:expression>/:html[@lang]</earl:expression>
        </earl:xPath>
        <earl:lineCharLen>
          <earl:line>4</earl:line>
          <earl:char>25</earl:char>
        </earl:lineCharLen>
      </location>
    </locations>
  </technique>
</techniques>


Best regards,

Christophe

-- 
Christophe Strobbe
K.U.Leuven - Departement of Electrical Engineering - Research Group on 
Document Architectures
Kasteelpark Arenberg 10 - 3001 Leuven-Heverlee - BELGIUM
tel: +32 16 32 85 51
http://www.docarch.be/ 

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

Received on Tuesday, 5 December 2006 13:29:52 UTC