Hi.

jmarshmallow:
> I apologize in advance if this is off topic.

You could post on the batik-users list, where this question would be on
topic.

> I notice there is a package in Batik that parses CSS.
> 
> I would like to add CSS to my XML files, which have nothing to do with
> SVG. Would it be possible to use Batik or is it hard-coded for SVG? 
> 
> Is there any documentation besides the API, are there usage examples?

I don’t think there are any examples of the use of Batik’s CSS engine
with non-SVG documents.

If you want to use it with DOM classes that are not Batik’s DOM
implementation (org.apache.batik.dom.*), then you’ll have to make your
DOM’s Element class implement CSSStylableElement, as the CSS engine uses
that to be able to store computed properties on the element.  Also, the
element class that can contain script (if your language has one, for
example HTMLStyleElement or whatever) will have to implement
CSSStyleSheetNode.

Take a look at the SVGCSSEngine class to see how it extends the abstract
CSSEngine class to set up the “manager” classes for each CSS property,
too.

Cameron

-- 
Cameron McCormack, http://mcc.id.au/
        xmpp:[EMAIL PROTECTED]  ▪  ICQ 26955922  ▪  MSN [EMAIL PROTECTED]


-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to