W3C home > Mailing lists > Public > www-style@w3.org > May 1997

Re: auto-numbering in CSS (was: content property)

From: Douglas Rand <drand@sgi.com>
Date: Thu, 08 May 1997 17:17:52 -0400
Message-ID: <33724300.59E2@sgi.com>
To: David Perrell <davidp@earthlink.net>
CC: www-style@w3.org
I hope this isn't too negative...

David Perrell wrote:
> 
> I suggested counter properties in CSS such that every element has an
> associated counter. By default, the counter has a value of 1 decimal,
> but can be explicitly declared with any initial value and type.

I think this would be a waste,  and also not sufficient.  It's a good
solution for specifying how list items work.

> ....
> The DSSSL method strikes me as a more elegant solution than my last
> insofar as my solution could require elements to be declared for the
> sole purpose of counting other elements. A few questions, though:

I don't like that either.  It doesn't allow me to have a set of things
which are numbered which don't relate to a flat section of the document
tree.  I'm sure I could do it by writing LISP code,  but that doesn't
seem elegant at all to me.

What I'd like is a set of named counters and some sort of formatting
language for combining these into output patterns.  Something where
I could type something human readable like:  %chapter.%section

Comments?

Doug

-- 
Doug Rand				drand@sgi.com
Silicon Graphics/Silicon Desktop	http://reality.sgi.com/drand
Disclaimer: These are my views,  SGI's views are in 3D
Received on Thursday, 8 May 1997 17:24:32 GMT

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