XML technologies / SVG / Creating simple SVG graphics / Creating a template for SVG files
(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)
If you want to create your SVG graphics with a simple text editor or an XML editor, create a file defining the basic SVG file structure that you can then use as a template for all files. Such a template should contain the following, defining an XML document of type SVG.
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd">
<svg width="500" height="500">
...
</svg>
Save this file as plain ASCII without formatting and with the filename extension .svg. For example, name it vorlage.svg. Later, when creating SVG graphics, open this template and save it under a new name. This creates a copy in which you can make the necessary adjustments.
Copyright © verlag moderne industrie GmbH 2001
You may print the online version for your private use.
Otherwise, this chapter from “Das Einsteigerseminar SVG — Webgrafiken mit XML” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
verlag moderne industrie GmbH, Justus-von-Liebig-Straße 1, D-86899 Landsberg/Lech, fon ++49 (0) 81 91 / 125 – 0, leserservice(at)mi-verlag.de
back to top