d.data = segnum;
      document.getElementById("tss2").firstChild.data = seg.pathSegTypeAsLetter + " " + seg.x + " " + seg.y;
      }
    ]]></script>
    <defs>
      <path id="box" d="m 60 80 h 100 v 50 h -100 v -50" fill="green"/>
      <path id="boxWithPathlength" d="m 300 80 h 100 v 50 h -100 v -50" fill="green" pathLength="100"/>
    </defs>
    <g font-size="14">
      <text x="30" y="30">Using startOffset="50":</text>

      <use xlink:href="#box"/>
      <text>
        <textPath xlink:href="#box" s