[svg-developers] Re: SVG Zoom and pan

2011-01-05 Thread meikelneu
--- In svg-developers@yahoogroups.com, Mr Rauf cute_rauf_...@... wrote: hi guys, currently i m working on Svg zoom i implemented with view box attribute but when i move the svg object its ad distance in cursor and object In case you are prepared to use an additional JavaScript

RE: [svg-developers] SVG Zoom and pan

2011-01-05 Thread Chris Peto
Hi, Here is my viewBox example: http://www.resource-solutions.de/svg/viewbox/index.html Cheers, Chris From: svg-developers@yahoogroups.com [mailto:svg-develop...@yahoogroups.com] On Behalf Of Mr Rauf Sent: Mittwoch, 5. Januar 2011 05:54 To: svg-developers@yahoogroups.com Subject:

[svg-developers] SVG internal script

2011-01-05 Thread kalyan_ayyagari
Is there a way to access the internal script of a SVG file from a HTML where its embedded into? I have a SVG file which has some script in it... svg script type=text/ecmascript xlink:href=svgSample.js/ If i try to access a function in this js file from a HTML file where this SVG is

[svg-developers] StyleSheet to Add missing Elements ID's

2011-01-05 Thread fi...@rocketmail.com
Is There any stylesheet to add missing id to elements in svg files. I have some svg files without id for some elements like path's and rect's and I want to add the missing id's to this elements with the use of a stylesheet. That is possible?. I can make that with a xml rutine in Delphi but

[svg-developers] Re: StyleSheet to Add missing Elements ID's

2011-01-05 Thread t...@ymail.com
Does this do the job for you? ?xml version=1.0 ? stylesheet version=1.0 xmlns=http://www.w3.org/1999/XSL/Transform; key name=id match=*...@id] use=@id/ template name=generateUniqueId param name=id select=generate-id()/ choose !-- Test whether $id is already taken by another

[svg-developers] Re: StyleSheet to Add missing Elements ID's

2011-01-05 Thread t...@ymail.com
Problem: It's pretty unlikely, but the stylesheet I sent could possibly generate non-unique IDs because it doesn't check whether generate-id() returns an ID that has already been created by appending underscores to an ID that generate-id() returned for another node. This version should fix it