W3C home > Mailing lists > Public > www-international@w3.org > January to March 2013

Re: Comment on ITS 2.0 specification WD - Uniquness of id value

From: Norbert Lindenberg <w3@norbertlindenberg.com>
Date: Wed, 23 Jan 2013 00:38:08 -0800
Cc: Norbert Lindenberg <w3@norbertlindenberg.com>, <public-multilingualweb-lt-comments@w3.org>, "'www-international'" <www-international@w3.org>
Message-Id: <ACB301AF-8654-434A-9E4B-34B85E78D138@norbertlindenberg.com>
To: Yves Savourel <ysavourel@enlaso.com>
I didn't understand the usage of this data category well enough. I withdraw my comment.

Norbert


On Jan 21, 2013, at 4:35 , Yves Savourel wrote:

> Hi Norbert,
> 
>> <body>
>>   <p id=p1 class=class1>text...</p>
>>   <p id=p2 class=class2>text...</p>
>>   <p id=p3 class=class1>text...</p>
>> </body>
>> 
>> and ITS rule
>> 
>> <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0">
>>   <its:idValueRule selector="//p[@class='class1']" idValue="its1"/> 
>> </its:rules>
>> 
>> If I understand correctly, this gives me an identifier "its1"
> 
> As Felix already pointed out, this example doesn't really attach ID values to the selected elements.
> 
> The rule:
> 
> <its:rules xmlns:its="http://www.w3.org/2005/11/its"
> xmlns:h="http://www.w3.org/1999/xhtml" version="2.0">
>   <its:idValueRule selector="//h:p[@class='class1']" idValue="@id"/> 
> </its:rules>
> 
> would be more in line with the expected usage of the data category. It associates the ID value 'p1' with the first element selected and 'p3' with the last one.
> 
> But in any case, In HTML, the attribute id is the one which does take precedence anyway, so the rule would be overridden for all three of the paragraphs in the example. This is defined in the second bullet of the GLOBAL section (http://www.w3.org/TR/2012/WD-its20-20121206/#idvalue-implementation).
> 
> 
>> (and possibly xml:id, whose spec I couldn't find).
> 
> The specification for xml:id are here:
> http://www.w3.org/TR/xml-id/
> 
> 
> cheers,
> -yves
> 
> 
> 
> 
Received on Wednesday, 23 January 2013 08:38:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 23 January 2013 08:38:36 GMT