CSS3 Selections Based On QNames

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 UTC