While XML-Dev discusses creating an API for XPath, Robin Berjon has released an alpha version of the Simple API for CSS in Perl.
This module, CSS::SAC, replaces Berjon's earlier CSS::Parser module. This alpha has not yet been released to CPAN, though later versions will be available there.
In addition to the core parsing module, Berjon has included:
"CSS::SACPrinter, which demonstrates a simple
SAC handler that prints SAC events back as CSS to STDOUT to conduct some tests."
The CSS::SACPrinter module also "exposes the interface expected from SAC handlers," giving developers a model on which to base applications reading SAC events.
Related stories: