CSS2 Parser README

What's New

Release 0.9.1

What's Included

primary.css  - Steady State Web style sheet
changes.html - A record of significant changes between releases
license.html - LGPL document
readme.html  - This file
ss_css2.jar  - JAR containing the CSS2 Parser

docs/        - Comceptual documentation for CSS2 Parser (currently empty)
javadoc/     - Javadoc documentation for CSS2 Parser classes
samples/     - Some demonstration applications
src/         - Source code for Parser, W3C DOM, and W3C SAC interfaces
stylesheets/ - Collection of test style sheets

What's Required

To compile the source, you'll need:

Documentation

The Javadoc documentation for the CSS2 Parser can be found in the javadoc directory.

Refer to the Document Object Model Level 2 Style Recommendation for details of the DOM interfaces.

Refer to the SAC: The Simple API for CSS home page for details of the SAC interfaces.

How to Use

Constructors

public CSS2Parser(
	java.io.InputStream stream,
	org.w3c.dom.Node ownerNode,
	String href,
	String title,
	String media )

public CSS2Parser(
	java.io.Reader stream,
	org.w3c.dom.Node ownerNode,
	String href,
	String title,
	String media )

public CSS2Parser( java.io.InputStream stream )

public CSS2Parser( java.io.Reader stream )

Example of usage

com.steadystate.css.CSS2Parser parser = new com.steadystate.css.CSS2Parser(
	new java.io.FileInputStream( href ),
	node,
	href,
	title,
	media );

org.w3c.dom.css.CSSStyleSheet styleSheet = parser.styleSheet();

Some Current Limitations



David Schweinsberg
17th February 2002