- From: Simon Sapin <simon.sapin@kozea.fr>
- Date: Mon, 02 Jul 2012 17:10:34 +0200
- To: www-style@w3.org
Le 01/07/2012 22:57, Dominic Chambers a écrit : > I wonder if anyone can help. I need a streaming CSS parser for Java that > is capable of performing an identity transform on any valid CSS document > -- a canonical identity transform is fine. > Hi, What are you trying to do? I was not satisfied with SAC so I made tinycss[1]. It’s not Java, but it should run on Jython (though I haven’t tried). It’s not streaming, but it shouldn’t be too hard to keep the tokenizer, rip the parser apart, and keep the parts you’re interested in. [1] http://packages.python.org/tinycss/ But again, it all depends on what you really want to do and under what constraints. tinycss is only missing small parts to be usable for eg. a minifier. I will add these eventually but haven’t bothered yet because nobody asked for it. Regards, -- Simon Sapin
Received on Monday, 2 July 2012 15:11:05 UTC