Hi Leo, Leo Lim <[EMAIL PROTECTED]> wrote on 03/13/2007 01:46:13 PM:
> Is there a way to change the stylesheet of an svg file that is already > fully rendered in a JSVGCanvas. Sure you can add or remove the stylesheet elements from the Document in memory. This is expensive as we have to rerun the entire cascade for the document when this happens. > I heard about placing extra stylesheet tags in an svg file: > > E.g. > > <?xml-stylesheet href="styles_austria_2.css" type="text/css" > title="Night" alternate="yes" ?> > > I?m just looking for a way to programmatically activate the > alternate stylesheet. We do this in the Batik viewer, so you can see the code in batik.apps.svgbrowser.JSVGViewerFrame.UseStyleSheetAction --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]