Hi Andi,
jimself <[EMAIL PROTECTED]> wrote on 07/12/2006 09:42:32 AM:
> I have a JSVGCanvas showing an svg file which references a css file. I'd
> like to switch this css file on runtime to change between different
color
> modes of the shown svg file.
> Is that somehow possible?
There are a couple of ways this might be done.
One would be to replace element that references the stylesheet.
Also CSS has the concept of alternate stylesheets which Batik
supports so you can do something like:
<!-- Always loaded -->
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
<!-- Loaded if user selects 'Hot' from alternate stylsheets menu
-->
<?xml-stylesheet type="text/css" title="Hot"
href="../../resources/style/hot.css" alternate="yes" ?>
<!-- Loaded if user selects 'Cold' from alternate stylsheets menu
-->
<?xml-stylesheet type="text/css" title="Cold"
href="../../resources/style/cold.css" alternate="yes" ?>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]