On Fri, 10 Nov 2006, Tavmjong Bah wrote:
Date: Fri, 10 Nov 2006 21:20:31 +0100 From: Tavmjong Bah <tavmjong@...8...> To: "Daniel [ISO-8859-1] D�az" <mrchapp@...400...> Cc: Inkscape Devs ML inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Fwd: [Inkscape-user-it] Inserire un riferimento a un file ecmascript
On Fri, 2006-11-10 at 11:49 -0600, Daniel Díaz wrote:
Hello!
From the Italian Inkscape-User mailing list comes this post. Marco
Andreolli is asking where these tags fit in the main SVG file:
<script type="text/ecmascript" xlink:href="ajaxrequest.js"/> <script type="text/ecmascript" xlink:href="PrimoPiano.js"/> Within <svg></svg>? Or completely out of that tag?
I can not claim to be an expert but there is a very short section on scripts in my book:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/ch17s04.html
The SVG at Croczilla also include scripts within the SVG tags, which is where I would have expected to find them.
http://www.croczilla.com/svg/samples/ http://www.croczilla.com/svg/samples/dom1/text_view?obj=dom1.xml
If the documents is a SVG and svg:svg is the main namespace I would not expect anything outside. I would only put things outside <svg></svg> on rare occassions where the renderer is known to be crappy and likely to fail on unknown tags and putting it outside would be a cheat to workaround the problem. The other possibility is where the SVG is embedded within a larger document, say HTML you would have <script> tags outside the svg but I doubt those scripts would be relevant to the svg at all.
Sincerely
Alan Horkan
Inkscape http://inkscape.org Abiword http://www.abisource.com Open Clip Art http://OpenClipArt.org
Alan's Diary http://advogato.org/person/AlanHorkan/