XML technologies / SVG / SVG and XML / Summary, questions and exercises
(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)
Summary
An SVG document can be converted into an XML document by replacing the extension .svg with .xml.
Croczilla can execute and display XML files with a valid namespace declaration.
An XML file can use several namespaces.
Commands from these namespaces can be used once the namespace is declared.
All commands outside the SVG namespace must be enclosed in the tag
<foreignObject>.
Questions and exercises
What is a namespace?
What does the declaration
xmlns:html="http://www.w3.org/1999/xhtml"in the<svg>tag of an XML file determine?If you used the declaration from question 2, how could you display a level-one heading in the graphic with an XHTML tag?
Exercises 4 to 6 form a single unit.
Create an XML file and insert a circle.
Also add XHTML text to the file.
Arrange the text beside the circle.
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