I am been playing with this for a while now and I cant get my path to show up, I can manually put it in a use element and it works great but I cant generate one with JS. any advice is greatly appreciated.
[CODE]
<?xml version=”1.0″ encoding=”UTF-8″ standalone=”yes”?>
<svg
id=”svgContainer”
xmlns=”http://www.w3.org/2000/svg”
xmlns:xlink=”http://www.w3.org/2000/xlink/namespace/”
width=”1000″
height=”1000″
version=”1.1″
onload=”create_seeds(evt)”>
<defs><path id=”leaf” fill=”#FFFF00″ d=”M67.105,0.366c99.521,92.793,104.694,248.709,11.553,348.604C-20.863,256.177-26.028,100.253,67.105,0.366z”/></defs>
<script>
<![CDATA[
function create_seeds() {
var mySvg = document.getElementById(“gElement”);
use2 = document.createElement(“use”);
use2.setAttribute(“x”, 30);
use2.setAttribute(“y”, 30);
use2.setAttributeNS(“http://www.w3.org/2000/xlink/namespace/”,”xlink:href”,”#leaf”);
mySvg.appendChild(use2);
}
]]>
</script>
<g id=”gElement”></g>
</svg>