summaryrefslogtreecommitdiff
path: root/testautomation/xml/optional/input/docbook/svg.001.xml
blob: 75410a1deb2840712133ee634917e25e02280411 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook SVG Module V1.0beta2//EN"
                         "http://www.oasis-open.org/docbook/xml/svg/1.0beta2/dbsvg.dtd">
<article>
<articleinfo>
<title>Unit Test: svg.001.xml</title>
<releaseinfo role="CVS">$Id: svg.001.xml,v 1.2 2008-07-11 08:00:20 rt Exp $</releaseinfo>
<author><firstname>Norman</firstname><surname>Walsh</surname>
        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
</author>
</articleinfo>

<para>This article contains an SVG diagram (inline).</para>

<mediaobject>
  <imageobject>
    <svg:svg xmlns:svg="http://www.w3.org/2000/svg">
      <svg:g transform="scale(0.5)">
        <svg:polygon style="fill:red; stroke:blue; stroke-width:10"
                     points="350, 75 379,161 469,161 397,215
                             423,301 350,250 277,301 303,215
                             231,161 321,161" />
        <svg:polygon style="fill:lime; stroke:blue; stroke-width:10"
                     points="850,75  958,137.5 958,262.5
                             850,325 742,262.6 742,137.5"/>
      </svg:g>
    </svg:svg>
  </imageobject>
  <imageobject>
    <imagedata
      align="center"
      fileref="graphics/svg-001-fallback.png"/>
  </imageobject>
  <textobject><phrase>Example SVG polygons</phrase></textobject>
  <caption><para>Polygons</para></caption>
</mediaobject>

</article>