tags:

views:

308

answers:

3

I have fairly large script within an .svg file and I'd like to get it out of the CDATA section into an external file. How to achieve this?

The HTML regular does not work:

<script type="text/javascript" src="Track_animation.js" />

The documentation I have been able to find only concerns with JS embedded within the SVG itself. Is use of external scripts even possible?

Using OS X and Safari 4.0.4 for rendering.

+1  A: 

Seems xlink:href works (keeping the entry here, since it might help others):

<script xlink:href="Track_animation.js" />
akauppi
+3  A: 

Try this

<script xlink:href="file_name" />
vsr
A: 

Maybe you will need to have xmlns:xlink="http://www.w3.org/1999/xlink" as attribute in your

piR