September 2001
Intermediate to advanced
592 pages
11h 42m
English
The use of the <tref> element has many similarities to the way the <use> element works. The text to be inserted is created in a <text> element nested within the <defs> element toward the beginning of an SVG document. The referenced <text> element has an ID attribute that the referencing <tref> element makes use of by means of the xlink:href attribute.
In this simple example, copyright information is defined in a <text> element whose ID is CopyrightInfo. That element is then referenced by the <tref> element later in the SVG document.
<?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/PR-SVG-20010719/ DTD/svg10.dtd"> <svg width="600" height="300"> ... |
Read now
Unlock full access