21 lines
858 B
XML
21 lines
858 B
XML
<?xml version="1.0" standalone="no"?>
|
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
|
|
<svg version="1.1" baseProfile="basic" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360"
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
xmlns="http://www.w3.org/2000/svg" onload="mytest()">
|
|
<script>
|
|
function mytest() {
|
|
var myTref = document.getElementById("tref");
|
|
myTref.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#tref-internal-reference-success");
|
|
}
|
|
</script>
|
|
<defs>
|
|
<text id="tref-internal-reference-failure">Failure</text>
|
|
<text id="tref-internal-reference-success">Success</text>
|
|
</defs>
|
|
<text x="20" y="20" >
|
|
<tref id="tref" xlink:href="#tref-internal-reference-failure"/>
|
|
</text>
|
|
</svg>
|
|
|