Steady State CSS2 Parser README
Description: Steady State CSS2 Parser readme document

# CSS2 Parser README

## What's New

### Release 0.9.1

- Updated the CSSOM to comply with the W3C recommendation
- Converted the CSSOM to be implemented on top of the SAC
- Implemented the SAC (Simple API for CSS) version 1.2
- The CSSOM is now Serializable

## 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:

- The Java Compiler Compiler (JavaCC) from Webgain

## 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

- The `media` attribute of interface `StyleSheet` is not implemented
- The `parentRule` attribute of interface `CSSRule` is not implemented
- `ImportRule` doesn't import a style sheet
- Conversion between units of `CSSPrimitiveValue` is not implemented

Copyright © 1999, 2002 Steady State Software Limited
Trademarks