Selecting xml: attributes using CSS attr()

"John P. McCaskey" <[email protected]>
Newsgroups gmane.text.tei.general
Message-ID <[email protected]>
Does anyone know how to get CSS’s attr()function to work with namespaced 
attributes such as xml:baseand xml:id?

note:before {content: attr(xml:id)}

produces nothing. I tried defining the namespace in CSS (using

@namespace xml "http://www.w3.org/XML/1998/namespace/

) and in the <html> element (using

xmlns:xml  ="http://www.w3.org/XML/1998/namespace/"

) and get told

xml namespace prefix mapped to wrong URI.

But I don’t think that’s the main problem, because it doesn’t work if I 
use a different prefix. I tried

attr(xml\\:id)

but that didn’t work either.

Can it be done? Does anyone know the magic formula?

John
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.