<?xml version="1.0"?>

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="400" viewBox="0 0 400 400">
  <defs>
    <text id="t">referenced text</text>
  </defs>
  <rect x="0" y="0" width="400" height="400" stroke="blue" stroke-width="1" fill="none"/>
  <g font-size="24pt">
    <text x="10" y="30" fill="#ccc">
      1 <tref xlink:href="#t"/>
    </text>
    <text x="30" y="50" fill="#999">
      2 <tref xlink:href="#t"/>
    </text>
    <text x="50" y="70" fill="#666">
      3 <tref xlink:href="#t"/>
    </text>
    <text x="70" y="90" fill="#333">
      4 <tref xlink:href="#t"/>
    </text>
    <text x="90" y="110" fill="#000">
      5 <tref xlink:href="#t"/>
    </text>
  </g>
</svg>

