digitalmultimedia
Digital Multimedia Small Cover

Related Books

Web Design Small Cover Digital Media Tools Small Cover MacAvon Amazon Associates Store

Visit our Amazon Associates Store

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.