- From: Robin Berjon <robin.berjon@expway.fr>
- Date: Thu, 22 Aug 2002 14:57:03 +0200
- To: Sam Cheung <sy_cheung2@yahoo.com>
- CC: www-style@w3.org
Sam Cheung wrote: > Thanks for your quick response. I actually meant SAC > (The Simple API for CSS) example in Java. I went to > the website http://www.w3.org/Style/CSS/SAC/ looking > for examples in Java (how to parse a CSS and lookup > rules), but I could not find one there. So I am > wondering where I can find any examples in that area. I don't have usage examples for Java SAC handy, but if you've used SAX it ought to be very similar. You create a parser, set handlers on it, and then receive events according to the interfaces defined in the JavaDoc. There's nothing special to it, the main difference is that the events don't carry the same names (naturally) and that the objects that describe the tokens are more complex than in SAX because that's the way CSS is. -- Robin Berjon <robin.berjon@expway.fr> Research Engineer, Expway 7FC0 6F5F D864 EFB8 08CE 8E74 58E6 D5DB 4889 2488
Received on Thursday, 22 August 2002 08:57:36 UTC