CARVIEW |
Select Language
HTTP/2 200
date: Wed, 08 Oct 2025 21:49:04 GMT
content-type: text/html
content-encoding: gzip
last-modified: Thu, 13 Jul 2023 18:23:49 GMT
cache-control: max-age=2592000, public
expires: Fri, 07 Nov 2025 14:09:17 GMT
vary: Accept-Encoding
access-control-allow-origin: *
x-request-id: 98b63713b900c6c8
strict-transport-security: max-age=15552015; preload
x-frame-options: deny
x-xss-protection: 1; mode=block
cf-cache-status: HIT
set-cookie: __cf_bm=w9WCAggPGfYCa3.2jYtOPX142TohNJmBHcGC6PWByN4-1759960144-1.0.1.1-rKAbUuXMopnwy_8P3RysPxZHs_yioqlHam3V.y3N7L_ILWT2aOLblPBTYIAJRI7uNeb6fFvuG9vLOkO.poM1IgvAGHI4.hAVa7pLw.96ndI; path=/; expires=Wed, 08-Oct-25 22:19:04 GMT; domain=.w3.org; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 98b8d890ab06a403-BLR
alt-svc: h3=":443"; ma=86400
Re: Comment on ITS 2.0 specification WD - Uniquness of id value from Norbert Lindenberg on 2013-01-23 (public-multilingualweb-lt-comments@w3.org from January 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
- To: Yves Savourel <ysavourel@enlaso.com>
- 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>
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="https://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="https://www.w3.org/2005/11/its" > xmlns:h="https://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 (https://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: > https://www.w3.org/TR/xml-id/ > > > cheers, > -yves > > > >
Received on Wednesday, 23 January 2013 08:38:38 UTC