SVG – Learning by Coding
1:
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2:
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
3:
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [
4:
<!ATTLIST svg xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink">
5:
]>
6: 7:
<!-- SVG - Learning by Coding - http://www.datenverdrahten.de/svglbc/ -->
8:
<!-- Author: Dr. Thomas Meinike 01/04 - thomas@handmadecode.de -->
9: 10:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
11: 12:
<title>SVG - Learning by Coding</title>
13:
<desc>SVG-Spezifikation in Beispielen</desc>
14: 15:
<defs>
16: 17:
<style type="text/css">
18:
<![CDATA[
19: 20:
*
21:
{
22:
font-family: sans-serif;
23:
font-size: 12px;
24:
}
25: 26:
]]>
27:
</style>
28: 29:
</defs>
30: 31:
<text x="20" y="30" style="fill: #000; font-size: 24px">
32:
Element foreignObject (ASV 6.0)
33:
</text>
34:
<text x="20" y="50">[sonst bleibt das Rechteck leer]</text>
35:
<a xlink:href="bilder/foreignObject.gif" target="svgbox">
36:
<text x="220" y="50" style="fill: #F00">Ergebnis als Rastergrafik ...
37:
<set attributeName="fill" attributeType="CSS" to="#00C" begin="mouseover"/>
38:
<set attributeName="fill" attributeType="CSS" to="#F00" begin="mouseout"/>
39:
</text>
40:
</a>
41: 42:
<foreignObject x="20" y="70" width="300" height="150">
43:
<body xmlns="http://www.w3.org/1999/xhtml">
44:
<h2 style="fill: #00C">Text mit h2-Element ausgezeichnet</h2>
45:
<hr/>
46:
<p style="fill: #090; font-size: 12px">
47:
Das ist ein Absatz,<br/>der neben einem Zeilenumbruch aus viel Text besteht ...
48:
Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text
49:
Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text
50:
</p>
51:
</body>
52:
</foreignObject>
53: 54:
</svg>
[zum Anfang]