CSS::SACCSS::SAC Perl module is a SAC CSS parser. | |
Download |
CSS::SAC Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Robin Berjon
- Publisher web site:
- http://search.cpan.org/~rberjon/XML-XPathExt-0.01_01/XPathExt.pm
CSS::SAC Tags
CSS::SAC Description
CSS::SAC Perl module is a SAC CSS parser. CSS::SAC Perl module is a SAC CSS parser.SYNOPSIS use CSS::SAC qw(); use My::SACHandler (); use My::SACErrors (); my $doc_handler = My::SACHandler->new; my $err_handler = My::SACErrors->new; my $sac = CSS::SAC->new({ DocumentHandler => $doc_handler, ErrorHandler => $err_handler, }); # generate a stream of events $sac->parse({ filename => 'foo.css' });SAC (Simple API for CSS) is an event-based API much like SAX for XML. If you are familiar with the latter, you should have little trouble getting used to SAC. More information on SAC can be found online at http://www.w3.org/TR/SAC.CSS having more constructs than XML, core SAC is still more complex than core SAX. However, if you need to parse a CSS style sheet, SAC probably remains the easiest way to get it done.Most of the spec is presently implemented. The following interfaces are not yet there: Locator, CSSException, CSSParseException, ParserFactory. They may or may not be implemented at a later date (the most likely candidates are the exception classes, for which I still have to find an appropriate model).Some places differ slightly from what is in the spec. I have tried to keep those to a justified minimum and to flag them correctly. Requirements: · Perl
CSS::SAC Related Software