]]>
<use xlink:href="../media/star.svg#root"/> <animation xlink:href="http://tinyurl.com/yr6yxb"/> <image xlink:href="../media/tiger.svg"/>
Here is an example that uses the above three ways to reference external content.
]]>
<script> function changeBannerText() { var a1 = document.getElementById("a1"); var animDoc = a1.contentDocument; var line0 = animDoc.getElementById("banner"); var line1 = line0.firstElementChild; var line2 = line1.nextElementSibling; line0.style.fontSize = 45; line0.y.baseVal.getItem(0).value = 440; line0.firstChild.data = "Video"; line1.textContent = "and"; line2.textContent = "animation"; } </script> <animation id="a1" xlink:href="star-embeddable.svg"/>
var fill = element.style.fill;
.page { background-image: url(gradient.svg) } .list { list-image: url(marker.svg) }
<canvas id="canvas" width="500" height="500"> <script> canvas = document.getElementById("canvas"); context = canvas.getContext("2d"); context.clearRect(0,0,500,500); image = new Image(); image.src = "tiger.svg"; context.drawImage(image,0,0,200,200); </script>
<video xlink:href="../media/7train_arriving.ogg" filter="url(#grayscale)"/>