I came across an example of svg used as a "wireframe" or mockup of the appearance of a web page here: http://www.w3.org/Graphics/SVG/IG/wiki/images/e/ed/Planet.svg The interesting thing to me is that this svg renders the same in Inkscape and in Firefox. And it is editable in Inkscape. So it appears that svg could be added to a web page design.
Given that facility, can the svg portion be used for dynamic purposes. For example could an anchor be added to point to another url? Or is svg a graphics-only format?
Thoughts, anyone?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Op 26-08-11 19:10, john Culleton schreef:
Given that facility, can the svg portion be used for dynamic purposes. For example could an anchor be added to point to another url? Or is svg a graphics-only format?
Thoughts, anyone?
As long you use the correct namespace, you can. The use of javascript and really using SVG as an app seems to crash some browsers over time.
Stefan
On Fri, 2011-08-26 at 13:10 -0400, john Culleton wrote:
Given that facility, can the svg portion be used for dynamic purposes. For example could an anchor be added to point to another url? Or is svg a graphics-only format?
So long as you use the xlink namespace, it'll work on any element.
Thoughts, anyone?
You can use Javascript and CSS too, but like the linking, the language is slightly different. For instance background-color: red; in html-css would be fill-color: red; in svg css, same for stroke and all the added attributes you can see in an inskcape svg output.
Martin,
Yes, it's possible to create links in SVG documents: http://www.w3.org/TR/SVG/linking.html#Links
But keep in mind that such website would rank very poorly in search engines because it contains few semantic tags.
SVG is a format meant to be used for describing graphics, either interactive or static. It is not a format well suited for describing text documents or application interfaces.
If you are building website or web app then a better approach is to start with HTML5 (which comes with plethora of features and APIs) and embed SVG only for things such as icons, graphs or maps.
On Fri, Aug 26, 2011 at 7:10 PM, john Culleton <john@...1202...> wrote:
I came across an example of svg used as a "wireframe" or mockup of the appearance of a web page here: http://www.w3.org/Graphics/SVG/IG/wiki/images/e/ed/Planet.svg The interesting thing to me is that this svg renders the same in Inkscape and in Firefox. And it is editable in Inkscape. So it appears that svg could be added to a web page design.
Given that facility, can the svg portion be used for dynamic purposes. For example could an anchor be added to point to another url? Or is svg a graphics-only format?
Thoughts, anyone?
-- John Culleton Wexford Press "Create Book Covers with Scribus" http://www.booklocker.com/books/4055.html
EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
participants (4)
-
Jarek Foksa
-
john Culleton
-
Martin Owens
-
Stefan de Konink