Re: CSS ID, xml:id confusion

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
http://RyanCannon.com

Received on Friday, 1 July 2005 04:12:08 UTC