svg in xhtml

skatronfroncio
04-14-2004, 10:57 AM
i cannot view the image inside an xhtml document
the following code is mi web page:

<html xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/1999/xhtml">

<object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2">
</object>

<?import namespace="svg" implementation="#AdobeSVG"?>

<head><title>Incrustar SVG dins HTML</title></head>
<body>
<p>Aqui sota hi ha un svg incrustat:</p>

<svg:svg version="1.0" encoding="UTF-8" width="200px" height="200px" viewBox="0 0 200 200" xmlns:svg="http://www.w3.org/2000/svg">

<svg:circle cx="30" cy="30" r="20" style="stroke-width: 2; stroke: black; fill: none;"/>
</svg:svg>

<p>Fi del document.</p>
</body>
</html>

what is mi fault?

jon - svg
04-15-2004, 03:51 PM
Hi skatronfroncio,

This is discussed more in Chapter 11 in the Learn SVG book . Here is a sample svg :
http://www.learnsvg.com/html/bitmap/chapter11/page11-1.htm

Your code looks correct, however, IE does not support SVG by default. You can try Mozilla SVG or you can use Binary Behaviors in IE.

Let me know if you want more info about either of these.

Best,

Learn SVG - http://learnsvg.com

 
Web mp2kmag.com
mapforums.com

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum