Fwd: [Inkscape-user-it] Inserire un riferimento a un file ecmascript
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'll forward your answers to the Italian mailing list.
Greetings!
Daniel Díaz yosoy@...31...
---------- Forwarded message ---------- From: Marco Andreolli <MarcoAndreolli@...1560...> Date: Nov 10, 2006 6:52 AM Subject: [Inkscape-user-it] Inserire un riferimento a un file ecmascript To: inkscape-user-it@lists.sourceforge.net
Salve volevo chiedervi come posso inserire in un file svg creato da inkscape un riferimento ad un file di libreria ecmascript; per essere più chiaro vi faccio un esempio:
Questo è il file svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.0" width="744.09448" height="1052.3622" id="svg2"> <defs id="defs4" /> <g id="layer1"> <rect width="300" height="171.42857" x="22.857143" y="32.362183"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect1307" /> </g> </svg>
Mentre questi sono i riferimenti ai file di libreria ecmascript. <script type="text/ecmascript" xlink:href="ajaxrequest.js"/> <script type="text/ecmascript" xlink:href="PrimoPiano.js"/>
Dove e come li devo inserire nel file svg?? Grazie.
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
Tav
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/
participants (3)
-
Alan Horkan
-
Daniel Díaz
-
Tavmjong Bah