Re: Multiple display text/icons (treat as LC comment)

Hi, David.

> [snip]
> 
> Following on from this example - it seems reasonable to me that if more 
> than 1 icon is acceptable then more than 1 displaytext is also 
> acceptable. i.e. you should be able to have a displaytext for each icon 
> you want to display. However, i can only see this working if we can 
> associate displaytext with displayicons. This would be particularly 
> useful in a powder application as it would allow the app to display a 
> list of icons with some text beside each.
> 
> e.g.
> MOK.png - everything on example.com <http://example.com/> is MOK compliant
> WCAG.png - everything on example.com <http://example.com/> is WCAG AA 
> compliant
> ICRA.png - everything on example.com <http://example.com/> has nakedness

Good point. In such a case, we might use one of the following options:


(1) <text> and <icon> as child elements of <display>

Different text for each icon:

<descriptorset>
    <ex:wcag>AA</ex:wcag>
    <ex:mok>true</ex:mok>
    <display>
      <text>Everything on example.com is wcag aa compliant</text>
      <icon src="http://authority.example.org/wcag.png" />
    <display>
    <display>
      <text>Everything on example.com is mok compliant</text>
      <icon src="http://authority.example.org/mok.png" />
    <display>
</descriptorset>

Same text for all icons:

<descriptorset>
    <ex:wcag>AA</ex:wcag>
    <ex:mok>true</ex:mok>
    <display>
      <text>Everything on example.com is wcag aa and mok compliant</text>
      <icon src="http://authority.example.org/wcag.png" />
      <icon src="http://authority.example.org/mok.png" />
    <display>
</descriptorset>

or

<descriptorset>
    <ex:wcag>AA</ex:wcag>
    <ex:mok>true</ex:mok>
    <display>
      <text>Everything on example.com is wcag aa and mok compliant</text>
      <icon src="http://authority.example.org/wcag.png 
http://authority.example.org/mok.png" />
    <display>
</descriptorset>


(2) <displaytext> along with an @icon attribute:

Different text for each icon:

<descriptorset>
    <ex:wcag>AA</ex:wcag>
    <ex:mok>true</ex:mok>
    <displaytext icon="http://authority.example.org/wcag.png">Everything 
on example.com is wcag aa compliant</displaytext>
    <displaytext icon="http://authority.example.org/mok.png">Everything 
on example.com is mok compliant</displaytext>
</descriptorset>

Same text for all icons:

<descriptorset>
    <ex:wcag>AA</ex:wcag>
    <ex:mok>true</ex:mok>
    <displaytext icon="http://authority.example.org/wcag.png 
http://authority.example.org/mok.png">Everything on example.com is wcag 
aa and mok compliant</displaytext>
</descriptorset>


(3) <displayicon> along with its @src attribute and text:

Different text for each icon:

<descriptorset>
    <ex:wcag>AA</ex:wcag>
    <ex:mok>true</ex:mok>
    <displayicon src="http://authority.example.org/wcag.png">Everything 
on example.com is wcag aa compliant</displayicon>
    <displayicon src="http://authority.example.org/mok.png">Everything 
on example.com is mok compliant</displayicon>
</descriptorset>

Same text for all icons:

<descriptorset>
    <ex:wcag>AA</ex:wcag>
    <ex:mok>true</ex:mok>
    <displayicon src="http://authority.example.org/wcag.png 
http://authority.example.org/mok.png">Everything on example.com is wcag 
aa and mok compliant</displayicon>
</descriptorset>


Andrea

Received on Tuesday, 2 September 2008 20:58:21 UTC