Hi Christof, Höke, Christof wrote:
You are the main developer for lxml, right?
Yep, but not the only one. :)
I was trying the CSSSelect facility for a Python CSS library I am developing (http://code.google.com/p/cssutils/)
Cool. I knew about cssutils, felt that its field of application was related to cssselect (and lxml in general) but not with too much of an overlap - and always thought it would be nice to have it working with lxml in some way.
and I think there are some minor problems with "*" or "*|*" (I need to check again and I'll put them on the bug tracker then) but a question regarding support for pseudo selectors: Would it be possible to support stuff like :first-letter (currently not working is it not?) with Python XPath extension functions which should be able to do what XPath cannot? Are you maybe even working on it? I guess things like :first-line are problematic but other should be ok.
I'm not the primary person to ask here. cssselect was developed by Ian Bicking, he knows best what works, what doesn't, and how to fix it. :)
If I get the time I would try some things out and report back, this was just an idea that I had while playing with CSSSelector...
Go ahead, this is open source. Any help, testing and ideas are always appreciated.
Lxml is really great stuff BTW, it was actually quite simple using lxml and a CSSStyleSheet on a given HTML. (Not released yet but an example is in the SVN).
Great. In case there's anything we can do on lxml's side, please ask on the list.
Also the XPath extension facility is really great, I used Pyana until some time ago but now use lxml for most projects.
Competition is best when you win. :) Stefan