Thomas,

Thanks for your quick response. 
CSSEngine is an abstract class, and SVGCSSEngine is for SVG. Is there an CSS
Engine for CSS1/CSS2 HTML stylesheet?

Thanks again.
Sam


-----Original Message-----
From: Thomas E Deweese [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 1:45 PM
To: Batik Users
Subject: RE: Using Batik as CSS parser


>>>>> "Y" == YingLCS  <[EMAIL PROTECTED]> writes:

Y> Vincent,

Y> That's good. I only need it to parse a CSS1/2 stylesheet from an
Y> inputstream and then use it to lookup style rule for a particular
Y> element.

Y> I look at the code in the CSS parser, all the parseXXX() function
Y> is a void function. How can I get the parsed Stylesheet? And How
Y> can I use it to look up rules for elements?

   Take a look at org.apache.batik.css.engine.CSSEngine (has lookup
methods etc) and org.apache.batik.css.engine.SVGCSSEngine (customizes
CSSEngine for SVG).

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to