public void startDocument(InputSource source) throws CSSException { if (_nodeStack.empty()) { CSSStyleSheetImpl ss = new CSSStyleSheetImpl(); _parentStyleSheet = ss; // Create the rule list CSSRuleListImpl rules = new CSSRuleListImpl(); ss.setRuleList(rules); _nodeStack.push(ss); _nodeStack.push(rules); } else { // Error } }