svg

Using SVG to create separate images files

I've previously processed XSLT to output single HTML files that were supposed to be viewed in a browser. Now I was hoping if someone could outline would it be possible to use XML data and XSLT to create separate image files auto magically? ...

svg diagrams using python

I am looking for a library to generate svg diagrams in python (I fetch data from a sql database). I have found python-gd, but it has not much documentation and last update was in 2005 so I wonder if there are any other libraries that are good for this purpose. I am mostly thinking about simple line graphs, something like this: ...

Looking for a Flash/JS-based SVG editor or editing framework

I'm looking for a framework or library to create SVG images. It should run in the browser, so it should be based on Flash or maybe JavaScript. Up to now I found the Flash library by inevo.pt, the SVG editing component of Dojox, and some little JavaScript tools. Is there anything else, preferrably stable and mature? Thanks a lot in adva...

How to include [ in xml element name

Is there any way to include the [ character in an xml element name? For example <AWSECommerceService.ItemSearch.ItemSearch.Request[0].SearchIndex>Electronics</AWSECommerceService.ItemSearch.ItemSearch.Request[0].SearchIndex> The reason for using this is that in SVG hidden request input values are specified using xml elements whose n...

How do I scale a stubborn svg embedded with the <object> tag?

I have some svg files that specifies width and height as well as viewbox like this: <svg width="576pt" height="432pt" viewBox="0 0 576 432" > ... but how to display them in the browser at a size I decide ? I want them smaller and have tried: <object width="400" data="image.svg"></object> but then I get visible scrollbars. It work...

using "?" in SVG href

I'm having some major problems trying to get a "?" inside of hrefs that are part of my SVG scripts. I want to link to other parts of my website from inside of my SVGs, and most of my pages are dynamic that require $_GET variables to create them on the fly. SVG seems to throw a spaz every time I try to include question marks inside the hr...

Include SVG file in SVG

I've got a linearGradient in the defs section of my SVG file, and reference it with fill="url(#myGradientName)". That works great so far. I think I should be able to put my whole defs section in its own SVG file, and then just reference that from all my SVG images. That is, something like: styles.svg: <svg xmlns=...> <defs> <l...

How do you detect support for VML or SVG in a browser

I'm writing a bit of javascript and need to choose between SVG or VML (or both, or something else, it's a weird world). Whilst I know that for now that only IE supports VML, I'd much rather detect functionality than platform. SVG appears to have a few properties which you can go for: window.SVGAngle for example. Is this the best way to...

How to locate the mouse pointer in SVG?

I would like to know how I can use JavaScript to find out the location of the mouse pointer when it is within the bounds of an SVG viewBox. Do I need to use the event model to keep track of all the various mouse motion events, or is there a way I can poll the mouse pointer to have it tell me where it is when I need it? ...

Using SVG in GWT

I was wondering if it is possible to include SVG content inside a panel (or whatever would work in GWT), be able to add more to the SVG (like add a circle or a curve) programmatically , and handle mouse events (would this be in SVG or GWT?). I've tried creating an HTML object adding something along the lines of: <svg xmlns="http://www....

Is there a SVG to MXML Converter?

Hi, I'm trying to use an SVG file in my Flex app - but it seems the best way to do that is to convert it to MXML. However, I cannot find an SVG to MXML converter. There seem to be a number of SVG to XAML converters (for Silverlight/C#), but I can't find anything analogous for Flash/Flex. Any help would be appreciated. Thanks, Karthik ...

"SAX2 driver class org.apache.crimson.parser.XMLReaderImpl not found" when using Batik in a webapp on Tomcat

This is possibly related to a classpath problem, but I'm really not sure at this point, since I don't get this error on some machines. The error at the top of the stack is SAX2 driver class org.apache.crimson.parser.XMLReaderImpl not found. Why would I get this error only in some environments, but not others? How can I further investi...

Scaling images/icons in Java

A project I am working on needs to be resized when the monitor resolution changes. Due to legacy code and other issues, we do it by using a custom library which scales all the components to the appropriate sizes when the resolution changes. However, when we scale some of the images/icons used in the project, they become blurry/fuzzy/ali...

VML/SVG Editor in an HTML Page

I have integrated various WYSIWYG HTML editors over the past few years, but I think I have hit a brick wall on this one. We need a way for people to edit text that turns into VML/SVG when rendered, but remains editable, with minimal styling such as bold, italic, font face and size, and if possible, ability to create a text region anywhe...

How to convert SVG images for use with Pisa / XHTML2PDF?

I'm using Pisa/XHTML2PDF to generate PDFs on the fly in Django. Unfortunately, I need to include SVG images as well, which I don't believe is an easy task. What's the best way to go about either a) converting the SVGs to PNG / JPG (in Python) or b) including SVGs in the PDF export from Pisa? ...

Svg charting library

Do you know if there's any SVG + js charting library out there similar to http://www.amcharts.com/ (Flash). I need to provide nice looking interactive chart functionality in a browser that does not support Flash but supports SVG. ...

Example code for embedding SVG canvas in SWT project?

Is there a good example of how to include an SVG canvas into a Java SWT project (particularly Holongate, though I would be interested in any other options)? Additionally, I would need to support this SVG canvas on Mac OS X, Windows and Linux clients, in case an implementation relies on native libraries. Thanks for any pointers. ...

Convert a DOM Node or Document to XML in JavaScript

Say you in JavaScript are handed a single DOM element or Document (for example window.document), how would you turn that into valid XML? More specifically for my example, I have a web page that display's an SVG, this SVG has a lot of JavaScript to allow interaction. It's a graph display that let's you zoom in the graph and even make som...

JavaScript to export code inside a div element?

I have a web document that contains a div element. That div element contains an svg child element (which itself contains SVG primitives: text, path, etc.). Ultimately, I would like to export that svg element into a proper, self-contained SVG document. (I can then run that SVG document through imagemagick and make publication-quality fi...

Embed SVG into HTML (Opera-specific).

I want to embed SVG image into UserJS script for Opera. The question is how to show this image on loaded page? I show PNG images using <img src='data://image/png;base64,...'>, but SVG images aren't shown being used this way. Using external SVG file is OK, but not 'data://image/svg+xml,...'. I can't embed SVG code to HTML directly, beca...