- From: Werner Donné <werner.donne@re.be>
- Date: Sun, 10 Apr 2005 12:11:43 +0200
- To: Pascal Schmitt <pascal@cebra.nu>
- Cc: www-style@w3.org
Pascal, I would welcome XPath in CSS, but then the XPath specification should introduce the notion of specificity, otherwise the cascading mechanism can't work. Look at how XSLT works around that problem to see how valuable cascading is. Werner. Pascal Schmitt wrote: > > > > > 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 > > -- Werner Donné -- Re BVBA Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: werner.donne@re.be
Received on Sunday, 10 April 2005 10:11:58 UTC