Ralf Siegel wrote:

Is it possible to define different image sources in CSS (does Batik support it)?

No, and it won't be possible (at least for any current SVG implementation) as xlink:href is an XML attribute not a CSS property (the two are handled quite differently).

Here is an example of what I'm trying accomplish: Instead of writing

<image xlink:href="imageA.png" width="100" height="100" />

for a background image, I would like to write

<image xlink:href="" width="100" height="100" />

and have the image's name externalized in a CSS-file:

If you are just looking to externalize the image ref you could use the 'use' element:

   <use xlink:href="custom.svg#background"
        width="100%" height="100%"/>

custom.svg:
   <symbol id="background" viewBox="0 0 100 100">
      <image xlink:href="imageA.png" .../>
   </symbol>

image.Background {
        href:"imageA.png"
}

This doesn't work obviously and CSS 3 namespace definitions are not supported yet, right?

http://www.w3.org/TR/css3-namespace/

Any hints?

ralf ...


------------------------------------------------------------- Ralf Siegel - Freelance Developer Recommended Listening: Blonde Redhead - Misery Is A Butterfly http://www.blonde-redhead.com -------------------------------------------------------------


--------------------------------------------------------------------- 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