[docbook-css] CSS Reference
David Holroyd
dave at badgers-in-foil.co.uk
Fri, 29 Oct 2004 11:06:33 +0000
On Thu, Oct 28, 2004 at 12:42:37PM +0000, David Holroyd wrote:
> [...] I'm
> currently in the process of writing a CSS parser (partly as a
> validation/documentation tool for this project) [...]
As evidence of the 'documentation' aspect, I've got the CSS grammar
mostly done, and hacked up a quick syntax-highlighter script based on
it last night. Output looks like this at the moment:
http://www.badgers-in-foil.co.uk/projects/docbook-css/cssref/styles.html
It links to DB:TDG and the W3 CSS2.1 spec, which may aid people trying to
understand the stylesheets.
I know there are two bugs in the output:
- '(' incorrectly inserted after colours, like "#ffffff("
- '*' is missing from selectors
The script still needs work to have it make cross-references for
@import, etc.
The other thing I want to do with the parser is compare a list of all
docbook elements with the list of elements that docbook-css actually has
styling for. We can use this to help compile a 'todo list' for the
stylesheet.
dave