Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 39085 invoked from network); 27 Dec 2009 20:38:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Dec 2009 20:38:57 -0000 Received: (qmail 19075 invoked by uid 500); 27 Dec 2009 20:38:56 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 18999 invoked by uid 500); 27 Dec 2009 20:38:56 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 18990 invoked by uid 99); 27 Dec 2009 20:38:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Dec 2009 20:38:56 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [192.18.6.21] (HELO gmp-eb-inf-1.sun.com) (192.18.6.21) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Dec 2009 20:38:46 +0000 Received: from fe-emea-10.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id nBRKcPZB015918 for ; Sun, 27 Dec 2009 20:38:25 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KVB00F00VNQGR00@fe-emea-10.sun.com> for dev@httpd.apache.org; Sun, 27 Dec 2009 20:38:10 +0000 (GMT) Received: from [192.168.0.101] ([unknown] [80.229.52.226]) by fe-emea-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KVB0043YVZLU450@fe-emea-10.sun.com> for dev@httpd.apache.org; Sun, 27 Dec 2009 20:38:10 +0000 (GMT) Date: Sun, 27 Dec 2009 20:38:14 +0000 From: Nick Kew Subject: Re: Autoindex patch In-reply-to: <9DD0BD46-292B-461C-8BC9-A16A14CB6E33@rcbowen.com> Sender: Nicholas.Kew@Sun.COM To: dev@httpd.apache.org Message-id: <4B37C5B6.7020204@webthing.com> References: <9DD0BD46-292B-461C-8BC9-A16A14CB6E33@rcbowen.com> User-Agent: Thunderbird 2.0.0.21 (X11/20090323) X-Virus-Checked: Checked by ClamAV on apache.org Rich Bowen wrote: > A couple years back, the IndexStyleSheet directive was introduced, but > was of limited usefulness for some of the stuff folks wanted to use it > for, simply because the HTML didn't contain any CSS classes. Nothing wrong with that. You hook to the elements, including as much hierarchy as you need. In fact, you can address pretty much everything individually that way, by virtue of knowing the structure of the page. > The > attached patch is a simple proof-of concept, introducing the CSS classes > ai_table, ai_th, ai_tr, ai_tr_odd and ai_tr_even that you can then style > in an IndexStyleSheet. This allows you to do things such as alternating > rows in the directory listing. Any classes you attach are by definition arbitrary. A class for adds absolutely nothing. Neither does classes support trendy striped tables (for whatever that's worth), but IMHO if we're going down that road, we'd be better taking the HTML out of the code altogether and turning it into a template the webmaster can hack at leisure. That'll teach you to post here for review: if you'd just gone ahead and committed, I'd probably have shut up :-) -- Nick Kew
unless you use different classes for different instances of it. Alternating