summaryrefslogtreecommitdiff
path: root/test/testdocs/svg.001.xml
blob: 8b00c2b22a5e20201667f33dcf2bb084514c3695 (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
39
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
          "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<article>
<articleinfo>
<title>Unit Test: svg.001.xml</title>
<releaseinfo role="CVS">$Id: svg.001.xml 4105 2004-12-15 23:00:31Z xmldoc $</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"
	height="4in" width="4in">
      <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>