Re: [widgets] test-suite, default xml:lang

2009-11-30 Thread Robin Berjon
Hi Cyril,

On Nov 27, 2009, at 11:29 , Cyril Concolato wrote:
 As a clarification can you tell me what would be the name value for the 
 following config documents assuming the user locale is en only (no *)

Note that if the user locale (by which I assume you mean what the user agent 
starts with, e.g. what the user can configure, and which the specification 
calls the unprocessed locales list) contains just {en}, the user agent 
locales will be {en, *}. See 
http://dev.w3.org/2006/waf/widgets/#algorithm-to-derive-the-user-agent-local. 
It's a nitpick, but it's the reason why your results are correct below when 
Step 7 is run.

-- 
Robin Berjon - http://berjon.com/






Re: [widgets] test-suite, default xml:lang

2009-11-27 Thread Cyril Concolato

Cyril Concolato a écrit :

Hi all,

I'm trying to understand the difference between two tests:
[1] 
http://dev.w3.org/2006/waf/widgets/test-suite/test-cases/ta-UEMbyHERkI/000/config.xml 

[2] 
http://dev.w3.org/2006/waf/widgets/test-suite/test-cases/ta-UEMbyHERkI/003/config.xml 



In [1], the first description element is supposed to be the valid one 
(it does not have an xml:lang attribute).
In [2], the first description element as a dummy xml:lang that's not 
supposed to match anything. The second description element does not 
have the xml:lang attribute, but according to the expected result, it 
should not be the selected one. I don't understand why? Can you explain 
what the user locale should be in both cases?
The test suite document indicates that it should be en. If this is the 
case, in [1] no description element shall match. Otherwise you probably 
want to indicate that some tests assumes * like [1] and others en 
like [2]. Am I wrong?

Actually, I found a sentence that I missed in previous readings, which explains 
the difference between [1] and [2]:
In the case whereby the author does not use an xml:lang attribute, and no element 
of a particular type with xml:lang matches the user agent locales, the user agent will 
use the first element that is unlocalized content, in document order, that matches the 
element type being sought.

As a clarification can you tell me what would be the name value for the following config documents 
assuming the user locale is en only (no *)

widget xmlns=http://www.w3.org/ns/widgets;
name xml:lang=frA/name
name xml:lang=krB/name
name xml:lang=itC/name
/widget

My guess would be: 

widget xmlns=http://www.w3.org/ns/widgets;
name xml:lang=frA/name
name xml:lang=krB/name
nameD/name
name xml:lang=itC/name
/widget

My guess would be: D

Am I correct?

Cyril

--
Cyril Concolato
Maître de Conférences/Associate Professor
Groupe Mutimedia/Multimedia Group
Département Traitement du Signal et Images
/Dept. Signal and Image Processing
Ecole Nationale Supérieure des Télécommunications
46 rue Barrault
75 013 Paris, France
http://tsi.enst.fr/~concolat 



[widgets] test-suite, default xml:lang

2009-11-26 Thread Cyril Concolato

Hi all,

I'm trying to understand the difference between two tests:
[1] 
http://dev.w3.org/2006/waf/widgets/test-suite/test-cases/ta-UEMbyHERkI/000/config.xml
[2] 
http://dev.w3.org/2006/waf/widgets/test-suite/test-cases/ta-UEMbyHERkI/003/config.xml

In [1], the first description element is supposed to be the valid one (it does not have an xml:lang attribute). 

In [2], the first description element as a dummy xml:lang that's not supposed to match anything. The second description element does not have the xml:lang attribute, but according to the expected result, it should not be the selected one. I don't understand why? Can you explain what the user locale should be in both cases? 


The test suite document indicates that it should be en. If this is the case, in [1] no 
description element shall match. Otherwise you probably want to indicate that some tests assumes 
* like [1] and others en like [2]. Am I wrong?

Cyril
--
Cyril Concolato
Maître de Conférences/Associate Professor
Groupe Mutimedia/Multimedia Group
Département Traitement du Signal et Images
/Dept. Signal and Image Processing
Ecole Nationale Supérieure des Télécommunications
46 rue Barrault
75 013 Paris, France
http://tsi.enst.fr/~concolat