W3C home > Mailing lists > Public > www-style@w3.org > July 2005

Re: CSS ID, xml:id confusion

From: Ryan Cannon <ryan@ryancannon.com>
Date: Fri, 1 Jul 2005 00:11:58 -0400
Message-Id: <EB7DEA94-2E2F-449C-8E44-9D41E357DB42@ryancannon.com>
To: WWW-Style List <www-style@w3.org>

On Jun 30, 2005, at 10:44 PM, Orion Adrian wrote:

> where is "of type ID" defined?

 From <http://www.w3.org/TR/CSS21/selector.html#id-selectors>:

"Document languages may contain attributes that are declared to be of  
type ID. What makes attributes of type ID special is that no two such  
attributes can have the same value; whatever the document language,  
an ID attribute can be used to uniquely identify its element. In HTML  
all ID attributes are named "id"; XML applications may name ID  
attributes differently, but the same restriction applies."

The spec defines that "of type ID" means one value that can be used  
as a unique identifier. It then states that the specifics depend on  
the document language. Depending on whether one is using SGML, RELAX  
NG or something else as yet uncreated, there may be different ways of  
specifying "of type ID," but it must adhere to the above principle.

Ryan Cannon
Instructional Technology
Web Design
Received on Friday, 1 July 2005 04:12:08 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:19 UTC