Johan
05-12-2005, 11:19 AM
Hi,
Can anyone explain to me what the diferences are between the notations:
<svg:svg>
<svg:rect> .......
</svg:rect>
</svg:svg>
and what i think is normal:
<svg>
<rect> .......
</rect>
</svg>
I found the first one on some php site ..
Thanks
Johan
Anonymous
05-12-2005, 03:28 PM
You use
<svg:svg>
<svg:rect> .......
</svg:rect>
</svg:svg>
in no svg file, in HTML file by example after you define svg namespace.
In a svg file, default namespace is svg and you write only
<svg>
<rect> .......
</rect>
</svg>
Michel
Anonymous
05-13-2005, 12:37 AM
I see,
thats why animations won't work in my html area @!@!@#!@#!@
I must try to find another way to implement some svg somewehere in my html pages.
I wil try something else....
Johan
Anonymous
05-13-2005, 01:14 AM
Use <embed> tag to insert svg files in your html.
Michel
Bruno
06-08-2005, 07:15 AM
I have the same problem, but I can't use a svg file because the content is result of a processing in php, like the next example. What can I do in order this script works?
<html xmlns:svg= "http://www.w3.org/2000/svg">
<object id="AdobeSVG" CLASSID= "clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2"></object>
<? echo '<?import namespace="svg" implementation="#AdobeSVG"?>';
... (html tags)
<svg:svg width="400px" height="400px" viewBox="-75 -35 45 40" xmlns:svg="http://www.w3.org/2000/svg"">
<svg:script type="text/ecmascript"><![CDATA[
function MouseOver(evt) {
evt.target.setAttribute("fill","none");
}
function MouseOut(evt) {
evt.target.setAttribute("fill","blue");
}
]]></svg:script>
<?
... (php processing obtain $varPath)
echo '<svg:path id="test" name="test" onmouseover="MouseOver(test');" onmouseout="MouseOut(test');" fill="blue" d=" ' . $varPath . ' " />
?>
</svg:svg>
thanks,
Bruno.