W3C home > Mailing lists > Public > www-style@w3.org > June 2001

CSS3 Selections Based On QNames

From: Sean B. Palmer <sean@mysterylights.com>
Date: Tue, 26 Jun 2001 11:45:24 -0400 (EDT)
Message-ID: <014601c0fe57$49e18460$d1da93c3@z5n9x1>
To: <www-style@w3.org>
I noticed that CSS3 does not allow you to select an element based on a
QName in one of its attributes. For example, there there is no way to
select the two following elements together [1]:-

   <blargh xmlns:abc="http://example.org/#" ref="abc:myterm" />

   <blargh xmlns:xyz="http://example.org/#" ref="xyz:myterm" />

I propose something like:-

   @namespace abc url(http://example.org/#);
   *[ref=qname(abc:myterm)] { color: #000000; }

to match the above. I don't mind about the syntax too much, as long as
it matches.

N.B. QNames in attributes are used, for example, in XML Schema.

[1] Yes, you could do *[ref$="myterm"], but this would match all
QNames that end in "myterm", not just the one for a particular
namespace.

--
Kindest Regards,
Sean B. Palmer
@prefix : <http://webns.net/roughterms/> .
:Sean :hasHomepage <http://purl.org/net/sbp/> .
Received on Wednesday, 27 June 2001 08:38:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:09 GMT