The CSS Parser 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 application developments.
Starting with version 0.9.9 a CSS3 parser is also available.
The parser is freely available and without charge and is licenced under the terms of the GNU Lesser General Public License.
To use the pre-packaged JAR file:
To compile the source:
Users are invited to ask questions and post feedback via the project's Tracker and Public Forums on the SourceForge Project Page.
Obtain the Document Object Model Level 2 Style Recommendation for details of the DOM interfaces provided. For more information on using the SAC interface, go to the SAC: The Simple API for CSS Home Page.