W3C home > Mailing lists > Public > www-svg@w3.org > November 1999

Valid but Semantically Incorrect

From: Pankaj Kamthan <kamthan@cs.concordia.ca>
Date: Fri, 19 Nov 1999 08:53:10 -0500
Message-Id: <199911191353.IAA11378@spamburger.openface.ca>
To: www-svg@w3.org
Hi,

Consider the following example:

<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG August 1999//EN" 
  "http://www.w3.org/Graphics/SVG/SVG-19990812.dtd">
<svg width="4in" height="3in">
  <g><circle cx="200" cy="200" r="-100"/></g>
</svg>

1. Wouldn't this be then a valid SVG document which is semantically incorrect?
2. Does the burden that the attributes take "sensible" values rest on a SVG
conforming processor? 

(This could be a generic problem: one can have an equation of a circle with a 
negative radius (so mathematically not possible) but can still come up with a valid 
MathML markup for it.)

Somehow this wasn't clear from SVG Spec Chapters 7,11 and Appendix D. Any
insight would be most useful.

Thanks.
Pankaj Kamthan
Received on Friday, 19 November 1999 08:53:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 5 November 2012 23:52:46 GMT