Sac Parser -style name

Hi all

Thanks to Bjoern for helping with the example. I'm now able to parse in 
a style sheet.

I only have to things to overcome. In this routine I am able to 
retrieve all the properties of a style, how do I get that styles name?:

public void property(String name, LexicalUnit value, boolean important)
	throws CSSException {
		String theValue = "";
		if (inStyleRule) {
			propertyCounter++;
			test = test + name + ":" + value.toString() + "\n";
		}
	}

also, if a LexicalUnit has attributes ie: font-family:attr(tahoma) , 
attr(arial) , attr(sans-serif), how do I loop through the attrs to 
build a string of the values.

Many thanks

Colin

Received on Tuesday, 9 December 2003 13:30:26 UTC