W3C home > Mailing lists > Public > www-style@w3.org > December 2003

Sac Parser -style name

From: Colin Bell <colinb@gatewest.co.uk>
Date: Tue, 9 Dec 2003 08:31:28 -0500 (EST)
Message-Id: <FBAC8922-2A4B-11D8-8DFF-000A95928364@gatewest.co.uk>
To: www-style@w3.org
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) {
			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

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:10 UTC