blob: 3cdf1c0a2d1a898e47535340f84738cc261ec5d2 (
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
|
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
<fo:layout-master-set>
<fo:simple-page-master master-name="one">
<fo:region-body margin-top="25pt" margin-bottom="25pt" margin-left="50pt" margin-right="50pt" />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-name="one">
<fo:flow flow-name="xsl-region-body">
<fo:instream-foreign-object>
<svg:svg width="500" height="400">
<svg:defs>
<svg:linearGradient id="myGradient" x1="0" y1="200" x2="500" y2="350">
<svg:stop offset="0%" style="color:blue; opacity:100%"/>
<svg:stop offset="100%" style="color:red; opacity:100%"/>
</svg:linearGradient>
</svg:defs>
<svg:text x="30" y="150" style="font-size:140; font-weight:bold; fill:url(#myGradient); stroke:#000000;stroke-width:3">SVG</svg:text>
<svg:g style="fill:url(#myGradient); stroke:#000000">
<svg:rect x="0" y="180" width="400" height="10"/>
</svg:g>
</svg:svg>
</fo:instream-foreign-object>
<fo:block>The above is an example of an SVG graphic</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
|