How to use SAC Parser to parse style attribute

Hi, 

Could someone please tell me how to use SAC to
parse style attribute (e.g. <table
style="MARGIN-BOTTOM: 0px">).

I try parseStyleDeclaration() of the Parser, but I got
a NullPointerException (I use SteadyState as my CSS
Parser):

CSSStyleDeclaration style3 =
			parser.parseStyleDeclaration(
					new InputSource("MARGIN-BOTTOM: 0px"));

CSSStyleRule styleRule = (CSSStyleRule) rule;
		

ava.lang.NullPointerException
	at
com.steadystate.css.parser.SACParserTokenManager.getNextToken(SACParserTokenManager.java:3417)
	at
com.steadystate.css.parser.SACParser.jj_consume_token(SACParser.java:2450)
	at
com.steadystate.css.parser.SACParser.styleDeclaration(SACParser.java:1557)
	at
com.steadystate.css.parser.SACParser.parseStyleDeclaration(SACParser.java:72)
	at
com.steadystate.css.parser.CSSOMParser.parseStyleDeclaration(CSSOMParser.java:84)
	at
com.steadystate.css.parser.CSSOMParser.parseStyleDeclaration(CSSOMParser.java:74)
	at pir.css.TestDOM_1.main(TestDOM_1.java:140)


Thanks a lot for any suggestion.

Sam


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

Received on Wednesday, 4 September 2002 08:39:13 UTC