--- In svg-developers@yahoogroups.com, "Doug Schepers" <[EMAIL PROTECTED]> 
wrote:
>
> Hi, Nikolya-
> 
> | I mean how can I include SVG Image into another svg documents in 
IE.
> 
> Without seeing both the source file and the host file, I can't 
diagnose why
> your example isn't working. It could be that the included image is 
simply
> outside the viewBox of one or the other. You'll just have to be 
methodical
> about debugging it. Here is an example that definitely works in IE
> 
> 
> host.svg:
> -----
> <svg xmlns='http://www.w3.org/2000/svg'
> xmlns:xlink='http://www.w3.org/1999/xlink'>
>    <rect x='5' y='5' width='40' height='40' rx='5' ry='5' 
fill='red'/>
>    <circle cx='25' cy='25' r='20' fill='orange'/>
>    <image x='50' y='50' width='50' height='50' 
xlink:href='source.svg'/>
> </svg>
> -----
> 
> source.svg:
> -----
> <svg xmlns='http://www.w3.org/2000/svg'
> xmlns:xlink='http://www.w3.org/1999/xlink'>
>    <rect x='5' y='5' width='40' height='40' rx='5' ry='5' 
fill='green'/>
>    <circle cx='25' cy='25' r='20' fill='lime'/>
> </svg>
> -----
> 
> 
> | <svg onload="init(evt)" viewBox="888 444 999 888">
> |     <script type="text/ecmascript"><![CDATA[
> |         function init(evt)
> |         { 
> |             var node = parseXML('<rect x=\'50\' y=\'50\' 
width=\'100
> | \' height=\'100\' fill=\'green\'/>', document);
> | 
> |             document.getElementById("base").appendChild(node);
> |         }
> |     ]]></script>
> | <rect id="base" x="0" y="0" width="100%" height="100%" 
fill="none"/>
> | </svg>
> 
> Well, you shouldn't expect this to work... you can't append 
a 'rect' as a
> child of another 'rect'. You could do:
>   document.getElementById("base").parentNode.appendChild(node);
> or:
>   document.appendChild(node);
> 
> 
> Regards-
> Doug
> 
> [EMAIL PROTECTED]
> www.vectoreal.com ...for scalable solutions.
>

Thank you very much. You really helped me. I'm trying to add SVG file 
created in Adobe Illustrator to another SVG file but I can't see this 
file. 
Nikolya







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to