- From: Colin Bell <colinb@gatewest.co.uk>
- Date: Tue, 9 Dec 2003 08:31:28 -0500 (EST)
- To: www-style@w3.org
Received on Tuesday, 9 December 2003 13:30:26 UTC
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