RE: Unable to render image from child svg file in parent svg

"'David Dailey' [email protected] [svg-developers]" <[email protected]> Mon, 21 Dec 2015 21:07:27 -0500
Newsgroups gmane.text.xml.svg.devel
Message-ID <001d01d13c5d$81d1cb10$85756130$@net>
I think, Akhila, that you=E2=80=99d be a lot more likely to get a response =
from the SVG forum at stack exchange. It is 70 times more likely to insult =
you for asking the wrong question, but 20 times more likely to result in an=
 appropriate answer. This group has grown rather quiet in recent years, com=
pared to stack exchange.  At stack exchange people get points for providing=
 good answers and sometimes the people there love an answer that is also re=
plete with prideful barbs.

=20

Respectfully (and not knowing the answer to your question)

David

=20

=20

From: [email protected] [mailto:[email protected]=
]=20
Sent: Monday, December 21, 2015 1:13 AM
To: [email protected]
Subject: [svg-developers] Unable to render image from child svg file in par=
ent svg

=20

=20=20

Hi. Currently I am facing issue with rendering images from svg file referen=
ced in a parent svg.

I have an svg file named "renderChild2.svg" that has an image tag to refer =
to a jpg image. When I run this svg file independently it renders the image=
 on IE9.

=20

Now I have a parent svg file "Main.svg" that refers two svg's files.

One of which has inline rect and line tags named "renderChild1.svg" and the=
 other being "renderChild2.svg"

The "Main.svg" renders only from renderChild1.svg while renderChild2.svg im=
age is not seen. Please share your views on it.

=20

Below is the code snippet:

=20

renderChild1.svg:

<?xml version=3D"1.0" encoding=3D"UTF-8" standalone=3D"no"?>

<svg xmlns=3D"http://www.w3.org/2000/svg" xmlns:xlink=3D"http://www.w3.org/=
1999/xlink" width=3D"400.000000" height=3D"277.000">

            <image x=3D"0.000" y=3D"3" width=3D"100%" height=3D"100%" xlink=
:href=3D"d:/skyspace.jpg" />

</svg>

=20

=20

renderChild2.svg:

<?xml version=3D"1.0" encoding=3D"UTF-8" standalone=3D"no"?>

<svg xmlns=3D"http://www.w3.org/2000/svg" xmlns:xlink=3D"http://www.w3.org/=
1999/xlink" width=3D"320.000000" height=3D"328.000" >

            <rect x=3D"45" y=3D"-1213.600" width=3D"30" height=3D"20417.229=
" style=3D"stroke:white; fill:white;"/>

            <line x1=3D"45" y1=3D"-1213.600" x2=3D"45" y2=3D"19203.629" sty=
le=3D"stroke:blue;stroke-width:1;"/>

            <line x1=3D"75" y1=3D"-1213.600" x2=3D"75" y2=3D"19203.629" sty=
le=3D"stroke:blue;stroke-width:1;"/>

            <line x1=3D"45" y1=3D"-1213.600" x2=3D"34" y2=3D"-1213.600" sty=
le=3D"stroke:blue;stroke-width:1;"/>

            <line x1=3D"75" y1=3D"-1213.600" x2=3D"86" y2=3D"-1213.600" sty=
le=3D"stroke:blue;stroke-width:1;"/>

</svg>

=20

=20

=20

Main.svg:

<?xml version=3D"1.0" standalone=3D"no"?>

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/=
SVG/1.1/DTD/svg11.dtd">

<svg version=3D"1.1" xmlns=3D"http://www.w3.org/2000/svg" xmlns:xlink=3D "h=
ttp://www.w3.org/1999/xlink">

            <image xlink:href=3D"C:/Users/e208640/Desktop/renderChild1.svg"=
 x=3D"0" y=3D"0" width=3D'320.000' height=3D'277'/>

            <object viewBox=3D"0 0 1024 768" data=3D"C:/Users/e208640/Deskt=
op/renderChild2.svg" type=3D"image/svg+xml">=20=20=20=20=20=20=20=20=20

</svg>

=20

=20





[Non-text portions of this message have been removed]



------------------------------------
Posted by: "David Dailey" <[email protected]>
------------------------------------

-----
To unsubscribe send a message to: [email protected]=
m
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my membe=
rship"
----