thomas.hausberger wrote on Sep 08, 2008; 04:07am:

> Batik was formerly know as a sophisticated CSS parser, but the
> homepage doesn't say anything about parsing CSS anymore. I would
> like to use Batik as a HTML CSS engine. Bute the css-packages
> included in the Batik release are only for SVG. So I want to write
> my own engine based on the absract CSSEngine-class.

    This should be possible.

> But the CSS packages seem to be undocumented (at least I wasn't able 
> to find any reference on the homepage).  So what would be the steps to 
> write my own engine? What classes would I have to implement? 

   I would take a look at batik.css.engine.SVGCSSEngine (and
SVG12CSSEngine).  Basically creating a language specific CSS engine
is a matter of creating Value and Shorthand managers.

    There are plenty of examples of such managers (with a decent
functionality hierarchy) in batik.css.engine.value.

> And is there any documentation about the CSS packages?

    There is the source ;)

> I already found something in this mailinglist
> 
(http://markmail.org/message/oamdww2z4x2kqlhg#query:batik%20css%20engine%20-api%20-javadoc+page:1+mid:bn5osrzuvyshjzsj+state:results),
> but that topic is from 2002, so I'm not sure if the answers still apply.

     AFAIK everything in that thread still applies.

Reply via email to