Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    CSS::SAC 0.06

    Download button

    No screenshots available
    Downloads: 459  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Robin Berjon | More programs
    Perl Artistic License / FREE
    April 2nd, 2007, 23:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    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.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    SAC parser | CSS parser | Perl module | CSS::SAC | SAC | CSS

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM