CSS2 Parser README

What's New

Release 0.9.4.fs

Modification of cssparser 0.9.4 to allow vendor-specific extensions, for purposes of the Flying Saucer xhtmlrenderer

Original cssparser may be obtained from http://cssparser.sourceforge.net/

See also the W3C recommendation and the SAC (Simple API for CSS) version 1.2

What's Included

changes.html - A record of significant changes between releases
license.html - LGPL document
readme.html  - This file

classes in org and com folders

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