embed SVG within aonther SVG

Discuss SVG code, accessible via the XML Editor.
Abdulla

embed SVG within aonther SVG

Postby Abdulla » Tue Dec 21, 2010 3:10 pm

Hi,
I am trying to embed an SVG file within another SVG file?

can I do that? How ?

Thank you

User avatar
tomh
Posts: 218
Joined: Sat Feb 14, 2009 10:14 pm

Re: embed SVG within aonther SVG

Postby tomh » Mon Dec 27, 2010 9:49 am

Sorry for taking so long to reply.

Stuff I know off the top of my head:
1) Inkscape cannot link to external svg files, so you cannot use svg files as library files where if you update one file the reference to it in another will update to match. See viewtopic.php?f=5&t=6961&p=27859#p27859
2) You can copy and past the contents of one file into another

If you are interested in the technical ability to embed one svg file into another, eg:

Code: Select all

<svg>Image 1...
<svg>Image2</svg>
...
</svg>

Then it does work(ish):It treats image 2 as a group. Slightly buggy behaviour when you move stuff around/edit image 2; possibly due to multiple transformations.(also does not give you much more than a copy+paste would have done)


Return to “SVG / XML Code”