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

58 lines
2.6 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="100" xmlns:svg="http://www.w3.org/2000/svg" >
<svg:path d="M 0 0 L 100 0 L 50 100 z" fill="red" stroke="blue" stroke-width="3" />
</svg:svg>
<svg:svg width="50" height="210" xmlns:svg="http://www.w3.org/2000/svg" >
<svg:polyline class="Connect" points="100,0 100,100" />
<svg:polyline class="Connect" points="250,0 250,200" />
<svg:polyline class="Connect" points="400,100 400,200" />
<svg:path class="SamplePath" d="M100,100 C100,0 250,0 250,100
S400,200 400,100" />
<svg:circle class="EndPoint" cx="100" cy="100" r="10" />
<svg:circle class="EndPoint" cx="250" cy="100" r="10" />
<svg:circle class="EndPoint" cx="400" cy="100" r="10" />
<svg:circle class="CtlPoint" cx="100" cy="0" r="10" />
<svg:circle class="CtlPoint" cx="250" cy="0" r="10" />
<svg:circle class="CtlPoint" cx="400" cy="200" r="10" />
<svg:circle class="AutoCtlPoint" cx="250" cy="200" r="9" />
</svg:svg>
<svg:svg width="50" height="300" xmlns:svg="http://www.w3.org/2000/svg" >
<svg:path d="M200,150 Q250,0 300,150 T350,0"
fill="none" stroke="red" stroke-width="5" />
<svg:path d="M200,150 L250,0 L300,150
L350,300 L400,150"
fill="none" stroke="#888888" stroke-width="2" />
<svg:g fill="#888888" >
<svg:circle cx="250" cy="0" r="5"/>
<svg:circle cx="400" cy="150" r="5"/>
</svg:g>
</svg:svg>
<svg:svg width="50" height="50" xmlns:svg="http://www.w3.org/2000/svg" >
<svg:path d="M100,100 h-50 a50,50 0 1,0 50,-50 z"
fill="red" stroke="blue" stroke-width="5" />
<svg:path d="M90,90 v-50 a50,50 0 0,0 -50,50 z"
fill="yellow" stroke="blue" stroke-width="5" />
<svg:path d="M100,250 l 50,-25
a25,25 -30 0,1 50,-25 l 50,-25
a25,50 -30 0,1 50,-25 l 50,-25
a25,75 -30 0,1 50,-25 l 50,-25
a25,100 -30 0,1 50,-25 l 50,-25"
fill="none" stroke="red" stroke-width="5" />
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>