Hi,
 
To be more exact you would have to append the file with
getURL(ref,svg)...parseXML and apppendChild()... then just use
#simpleStar.

-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of agoussia
Sent: Montag, 20. Juni 2005 13:02
To: [email protected]
Subject: [svg-developers] Link to external SVG fails. What whould be
correct URI?


Dear All, 

We are trying to make link to external SVG files located at the local 
machine from another SVG and the Adobe SVG viewer 3.02 (IE 6) fails 
to run it. 

For instance, their the  `source.svg' file which has a link 
to `ref.svg' . Both of them in the same directory(example is
taken 
from http://www.svgopen.org/2003/papers/TheNextGenerationOfSVGFiles/)

`source.svg'
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 
1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>
<svg width="100px" height="100px" viewBox="0 0 100 100" version="1.1" 
xmlns="http://www.w3.org/2000/svg"; 
xmlns:xlink="http://www.w3.org/1999/xlink";>
  <use x="0" y="0" width="100" height="100" 
xlink:href="ref.svg#simpleStar" fill="darkgray" stroke="lightgray" 
stroke-width="10"/>
</svg>

'ref.svg'
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 
1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"; 
xmlns:xlink="http://www.w3.org/1999/xlink";>
  <defs>
   <symbol id="simpleStar" viewBox="0 0 250 250">
        <polygon points="124,5 153,91 243,91 171,145 197,231 
124,180 51,231 77,145 5,91 95,91" />
   </symbol>
  </defs>

No star is showing up!!!!!!!.

It looks like it doesn't recognize the URI for the local files like: 
link:href="ref.svg#simpleStar" 

We tried to use file:/// and other variants, no success.
Any suggestions?

Best Regards,

Alex




-----
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]
<mailto:[EMAIL PROTECTED]> 
  

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




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



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