XPath & CSS, again

Hello!

The Question was mentioned here, I saw it in the archive, but I want to
ask it again in a modified form:

What about using XPath with CSS?
It could be integrated easily, using the XPointer-Fragment:

#xpointer(//element[child/@attr = 'foo']) {
   color: red;
}


Or for content, with a new xpath-Pseudomethod:

p::after {
   content: xpath(img[0]/@alt);
}
table::after {
   content: "Total " xpath(count(tbody/tr)) " lines";
}


As said in the archived posts: it is no problem for todays user-agents
to use XPath, they often build a DOM-Tree anyway�

--
Pascal Schmitt

Received on Thursday, 7 April 2005 21:30:35 UTC