Cascading Style Sheets SAC: The Simple API for CSS
SAC 1.0 is a standard interface for CSS parser and supposed to
work with CSS1, CSS2, CSS3 (currently under
development) and other CSS derived languages.
Comments on SAC are invited and are to be sent to the public
mailing list email@example.com. An archive is
The API is a beta version which may be updated, replaced or
obsoleted by other versions at any time. It is therefore
inappropriate to use it as reference material or to cite it as
other than "work in progress". This is work in progress and does
not imply endorsement by, or the consensus of, either W3C or
members of the Style Activity.
This API has been produced as part of the W3C Style Activity.
SAC 1.3: Java Implementation
- SAC 1.3 (Download)
- SAC 1.3 Online javadoc documentation (Download)
- Some SAC implementation in Java:
- Flute 1.2 (download)
(W3C). This implementation is using JavaCC.
Batik SAC 1.2 CSS Parser (Apache). Smaller and faster than
flute! Only available on the Apache CVS server.
- CSS Parser
(David Schweinsberg). The CSS Parser, very soon to be updated to
SAC 1.3, is implemented as a package of Java classes, that
inputs Cascading Style Sheets Level 2 source text and outputs a
Document Object Model Level 2 Style tree. Alternatively,
applications can use SAC: The Simple API for CSS. Its purpose is
to allow developers working with Java to incorporate Cascading
Style Sheet information, primarily in conjunction with XML
SAC 1.3: C Implementation
SAC 1.3: Ruby Implementation
- Aaron Patterson made a partial implementation of SAC. See the
SAC 1.0: Perl Implementation
- Robin Berjon made a Perl version of SAC. See his