W3C home > Mailing lists > Public > www-style@w3.org > April 2005

Re: XPath & CSS, again

From: Lauri Raittila <laurirai@mail.student.oulu.fi>
Date: Thu, 14 Apr 2005 16:08:14 +0200
To: "Pascal Schmitt" <pascal@cebra.nu>
Cc: www-style@w3.org
Message-ID: <op.so76v0og9jjfa2@zwak3>

On Tue, 12 Apr 2005 11:03:13 +0200, Pascal Schmitt <pascal@cebra.nu> wrote:

> Oh, I meant using XPath-Expressions for the "content" property, like  
> this:
>
> table::after {
>    content: xpath("count(tbody/tr)") " lines";
> }

table {counter-reset: rows;}
tbody tr {counter-increment: rows;}
table:after {content: counter(rows) "lines"}

(works in Opera)

Unless I missed something (I don't know XPath much)

-- 
Lauri Raittila <http://www.iki.fi/lr>
@Utrecht, NL
Received on Friday, 15 April 2005 06:25:28 GMT

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