Sign In/My Account | View Cart  
advertisement

Article:
 SVG: A Sure Bet
Subject: Missing the point
Date: 2003-07-19 18:21:48
From: x emplify
Response to: Missing the point

Paul wrote: "Well, my presentation is available in SVG here:
http://www.blastradius.com/svgopen2003/
"


Unfortunately I could not view this using either the Corel viewer in Mozilla 1.4 in Windows XP or using the Java open-source Batik Squiggle SVG viewer.


I found the following errors:


1) At line 14973: equality (==) mistyped as assignment (=)


My fix, change from:
while (gpage = doc.getElementById("Page_"+p)) {
to:
while (gpage == doc.getElementById("Page_"+p)) {

2) At line 5370, col 167: incomplete path element, and path element not allowed within tspan element


My fix, change from:
<path d="M180.343,153.481c0,27
to:
<!--<path d="M180.343,153.481c0,27-->


At this point the file would still not work in the the viewers due to more scripting related problems.


When I came across SVG three years ago, I too was very excited by the possiblities that it offered. I applaud Paul's efforts to promote SVG. However my inability to view this file highlights one of the problems SVG faces: generators and viewers that do not follow the SVG specification.


It seems that the SVG generator Paul used to produce his presentation produced non well-formed XML, invalid SVG and erroneous EcmaScript. Presumably some SVG viewer allows the file to be viewed dispite the mistakes, leading to the false belief that it is conformant SVG.


It is up to SVG developers to demand that implementors respect the SVG specfication, otherwise all the promise of interoperability is for nothing. In the mean time those producing SVG for the web should check their files for cross viewer compatibility.


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Full Text Titles Only Newest First

Sponsored By: