See the book at amazon.co.uk or amazon.com
Related Books
See Web Design: A Complete Introduction at amazon.co.uk
or amazon.com
See Digital Media Tools, 3rd ed. at amazon.co.uk or amazon.com
Visit our Amazon Associates Store
The authors are not responsible for the content of any external sites linked to from digitalmultimedia.org
All material on this site is ©2009 MacAvon Media Productions and may not be reproduced without permission.
This is a MacAvon site.
Examples for Chapter 15
pp. 588 and 596, XML Document and DTD
We have zipped together the sample document from p. 588 and the complete DTD listed on p. 596 that goes with it, and added a very small Ruby script that you can use to validate the document with respect to the DTD. Keep all these files in the same directory if you want to use the validation script. Try making some changes to the document and DTD, such as adding an optional field for the edition, and then check that your modified document still validates.
To use the validation script, you will need Ruby 1.8. with RubyGems, and libxml. (We do not know whether it will work on Windows.)
Download Zip archive file DMM3e-15-1.zip [3.3kB]
SVG Support in Web Browsers
Support for SVG in present-day browsers is patchy. In particular, Internet Explorer has no native support at all for SVG, and Firefox requires the use of the object tag to embed SVG images. If you want to see these examples in a browser we advise you to use Opera, which claims to have the best support for SVG, or install a plug-in or an ActiveX control for displaying SVG. Adobe's SVG Viewer is the most complete, although it is no longer officially supported. The thumbnails below are JPEG renderings of the SVG originals.
-
p. 606, A Simple SVG Drawing
-
p. 609, Shapes
This file contains the version of Figure 15.4 that uses a pathelement. The alternativepolylineis included in the document, but has been commented out. -
p. 613, Linear Gradient Fill
You will find some additional SVG code in this file, which is generated by Illustrator. This extra code can be ignored.
-
p. 613, Radial Gradient Fill
As with the previous example, you will find some extra SVG code in this file that you can ignore.
-
Transformations
The SVG files for the examples of transformations on pages 614–616 include the border and reference rectangle, as shown in Figures 15.10–15.13, as well as the transforms applied to the rectangle. -
p. 614, Translation
-
p. 615, Scaling
-
p. 615, Rotation About the Origin
-
p. 615, Rotation About a Point
-
p. 616, Skewing
-
p. 617, Transforming a Group
Both versions of the code shown on page 617 are included in this file. The version that does not use nested groups is commented out.