Files
FHC-Core/include/xslfo2pdf/examples/svg/basic.xml
T
Andreas Österreicher e2a22b2b29 FAS:
- Erstellung von Lehraufträgen
- xslfo2pdf
2007-03-30 11:27:13 +00:00

33 lines
1.8 KiB
XML

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" >
<fo:layout-master-set>
<fo:simple-page-master master-name="simple">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="simple">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:instream-foreign-object>
<svg:svg width="50" height="50" xmlns:svg="http://www.w3.org/2000/svg" >
<svg:circle cx="50" cy="30" r="30" style="fill:blue;"/>
<svg:circle cx="100" cy="30" r="20" fill="none" stroke="red" stroke-width="2"/>
</svg:svg>
<svg:svg width="50" height="50" xmlns:svg="http://www.w3.org/2000/svg" >
<svg:rect x="10" y="10" width="80" height="40" fill="blue"/>
<svg:rect x="100" y="10" width="80" height="40" fill="none" stroke="green" rx="10"/>
</svg:svg>
<svg:svg width="50" height="50" xmlns:svg="http://www.w3.org/2000/svg" >
<svg:ellipse cx="50" cy="50" rx="20" ry="10" fill="none" stroke="red" stroke-width="2"/>
<svg:ellipse cx="100" cy="50" rx="20" ry="10" fill="black" stroke="yellow" stroke-width="2"/>
</svg:svg>
<svg:svg width="50" height="50" xmlns:svg="http://www.w3.org/2000/svg" >
<svg:line x1="0" y1="0" x2="50" y2="50" stroke="red" stroke-width="2"/>
</svg:svg>
<svg:svg width="50" height="50" xmlns:svg="http://www.w3.org/2000/svg" >
<svg:polygon points="10,10 50,50 100,10" fill="green" stroke="red" stroke-width="2"/>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>