469,271 Members | 1,743 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Validating CSS in python

Hi,

I want to validate CSS in python. I could take the grammar from w3.org
[1] and throw it against one of the many python parsing libraries, but
I still hope there's a ready-to-use solution somewhere around. The big
point is that I don't want to *understand* CSS, I just need to validate
it (and report errors back to whoever wrote the CSS). Therefore a parser
that doesn't complain on W3C-approved errors [2] won't help.

I'm looking for a not too non-standard solution. Anything pure-python is
OK, anything that uses C libraries, should be OK, too, interfacing to
the W3C-Validator [3] would be too java...

Any ideas?

Cheers,
--Jan Niklas
[1] http://www.w3.org/TR/CSS21/grammar.html
[2] http://www.w3.org/TR/CSS21/syndata.html#parsing-errors
[3] http://jigsaw.w3.org/css-validator/DOWNLOAD.html
Sep 12 '06 #1
0 972

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Benjamin Niemann | last post: by
2 posts views Thread by Dale Strickland-Clark | last post: by
2 posts views Thread by Chris Dunaway | last post: by
reply views Thread by Gary Shell | last post: by
2 posts views Thread by PapaRandy | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.