SVG Essentials By J. David Eisenberg This errata page lists errors outstanding in the most recent printing. If you have technical questions or error reports, you can send them to booktech@oreilly.com. Please specify the printing date of your copy. This page was updated November 9, 2006. Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification Confirmed errors: (8) Example 1-2; To get the SVG example to work in Firefox, I had to add the SVG namespace to the svg element: xmlns="http://www.w3.org/2000/svg" AUTHOR NOTE: Correct, but not detectable when book was written, because Firefox wasn't available then. (29) just after the bulleted list and before Example 3-3, add: It is also possible to use one of the color keywords listed in section 4.2 of the SVG specification at http://www.w3.org/TR/SVG/types.html#ColorKeywords, or one of the CSS 2 system color keywords as listed at http://www.w3.org/TR/REC-CSS2/ui.html#system-colors (39) Example 3-13 (code) lacks stroke color values so horizontal lines don't show. Corrected code: {42} last line before 'Specifying Colors' section; should be (45) Remove the angle brackets around the word "style" in the second sentence under the subhead "Inline Styles." (64) Top and Figure 5-8; The first and second code fragments both give height="20" and width="15" with uniform scaling on each of the axes, yet Figure 5-8 shows a rectangle wider than it is high. the height and width should be height="15" and width="20" for both of those code fragments {84} The comments in the program at the bottom of the page should begin with these lines: # Convert an elliptical arc parameterized for SVG to an # elliptical arc based around a central point. (85) 2nd line in convert_from_svg function; The $phi in the second "my" line should be $pi. (97) last line; markerWidth="6" and markerHeight="10" should be: markerWidth="4" and markerHeight="8" (165) 2nd last paragraph; change flood-fill-color to flood-color change flood-fill-opacity to flood-opacity (181) ; change "flood-fill-color" to "flood-color" change "flood-fill-opacity" to "flood-opacity" {196} 1st line in Example 11-18; The MIME type text/ecmascript is obsolete and should be application/ecmascript according to RFC 4329. [196] 1st line in enlarge_circle() and shrink_circle() functions; The code "var circle = evt.getTarget();" does not work in Firefox or Opera. The code "var circle = evt.target;" works [198] 1st line in setScale() function; The line "obj = svgDocument.getElementById..." does not work. The fix is to put this in the init() function: if (window.svgDocument == null ) { svgDocument = evt.target.ownerDocument; } {205} 1st line in Interacting with an HTML page section; The element is nonstandard. The standard element should be used instead. AUTHOR NOTE: Since the time of the book's writing, has become the preferred method of including an SVG graphic in a web page. (210) top of page: Eliminate sentence "The numbered callouts in the example are in conceptual order, not text order." {218} Under "Using Perl to Convert Custom Data to SVG" "One of these is the proprietary format developed by Earth Science Resources, Inc. for use by their ARC/INFO Geographic Information System" Should be: "One of these is the proprietary format developed by Environmental Systems Research Institute for use by their ArcInfo Geographic Information System." {228} Change all occurrences of "UTF8" to "UTF-8". {311} 2nd to last paragaph; "Cross product" is a fancy way of saying "add up the productes of the coresponding entries in a row and column"... should be: "Dot product" is a fancy way of saying "add up the productes of the coresponding entries in a row and column"... All three occurrences of "cross product" should be "dot product" (322) title for Example F-1. XHTML and SVG in one cocument should read: XHTML and SVG in one document