Debian Codegraph @

test_non_regression/svg/tref01.svg

raw
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4 <svg width="10cm" height="3cm" viewBox="0 0 1000 300" version="1.1"
5 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
6 <defs>
7 <text id="ReferencedText">
8 Referenced character data
9 </text>
10 </defs>
11 <desc>Example tref01 - inline vs reference text content</desc>
12
13 <text x="100" y="100" font-size="45" fill="blue" font-family="Liberation Sans" >
14 Inline character data
15 </text>
16 <text x="100" y="200" font-size="45" fill="red" font-family="Liberation Sans" >
17 <tref xlink:href="#ReferencedText"/>
18 </text>
19
20 <!-- Show outline of canvas using 'rect' element -->
21 <rect x="1" y="1" width="998" height="298"
22 fill="none" stroke="blue" stroke-width="2" />
23 </svg>