Ich habe mir mal deinen SVG Code angesehen. Bei use verwendest du transform ohne Vorgabe der Grundmaße. Deshalb verweigert der KSVG Viewer die Anzeige. Ich würde auch auf Transform verzichten weil es ein Speicher fresser ist. Siehe auch die svg Attributes viewBox
PHP-Code:
< ? xml version="1.0" standalone="no" ? >
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="105" height="105"
viewBox="0 0 105 105"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- hier Gesamtbreite des Bildes angeben -->
<defs>
<linearGradient id="v_0" x1="0%" x2="100%" y1="0%" y2="100%">
<stop offset="10%" stop-color="#ffffcc" stop-opacity="1" />
<stop offset="90%" stop-color="#999966" stop-opacity="1" />
</linearGradient>
<linearGradient id="v_1" x1="0%" x2="0%" y1="0%" y2="100%">
<stop offset="10%" stop-color="#330099" stop-opacity="1" />
<stop offset="90%" stop-color="#ffee00" stop-opacity="1" />
</linearGradient>
<symbol id="platte" stroke-width="2" stroke="#000000" x="0" y="0" width="105" height="105">
<rect x="2.5" y="2.5" width="100" height="100" rx="3" ry="3" stroke="#333333" fill="#333300"/>
<rect x="0" y="0" width="100" height="100" rx="3" ry="3" stroke="#000000" fill="url(#v_0)"/>
<rect x="10" y="10" width="80" height="80" stroke="#223311" fill="none"/>
<rect x="15" y="15" width="70" height="70" fill="none"/>
<polygon points="20,20 20,40 40,20" fill="#000000" />
<polygon points="80,20 80,40 60,20" fill="#000000" />
<polygon points="20,80 20,60 40,80" fill="#000000" />
<polygon points="80,80 80,60 60,80" fill="#000000" />
<polygon points="50,20 80,50 50,80 20,50, 50,20" fill="url(#v_1)"/>
</symbol>
</defs>
<use xlink:href="#platte" />
</svg>
PS : Schöne Grafik
Lesezeichen