Scripts Library
''This is just some example text to get the ball rolling''
Javascript can be embedded in SVG much as it can be embedded in an HTML document and for similar reasons. Although SMIL [[http://www.w3.org/TR/SVG11/animate.html | Animation]] is the method defined in the specification for animating SVG, many developers don't want to depend on the user agent to implement SMIL so they also use [[JavascriptForAnimation|Javascript for animation]].
There are also numerous scripts in server-side languages that produce SVG output. For example [[creatingSvgUsingPhp|PHP]] , [[creatingSvgUsingPython|Python]] and [[creatingSvgUsingRuby|Ruby]] can all produce well-formed XML and therefore have no problem producing SVG.
Several common problems dealing with SVG embedded in HTML relate to reaching ''into'' the SVG document from the HTML.