couling
01-24-2009, 03:34 AM
Hi.
I'm curently exploring the possibilities of drawing graphs inline in xhtml with svgs. I would like to seperate some of the code into seperate files so that I can re-use it in different SVGs.
The basic aim is to have all my lineargradients in one file which I can link to.
The way that linear gradients are used (style="stroke:url(#border-gradient)") makes this seem tantilisingly close. But when I try to give an url to a different file (style="stroke:url(somefile.svg#border-gradient)") it just comes out black.
Is what I'm trying possible? If so what am I doing wrong?
Thanks for your time.
I'm curently exploring the possibilities of drawing graphs inline in xhtml with svgs. I would like to seperate some of the code into seperate files so that I can re-use it in different SVGs.
The basic aim is to have all my lineargradients in one file which I can link to.
The way that linear gradients are used (style="stroke:url(#border-gradient)") makes this seem tantilisingly close. But when I try to give an url to a different file (style="stroke:url(somefile.svg#border-gradient)") it just comes out black.
Is what I'm trying possible? If so what am I doing wrong?
Thanks for your time.