123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <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-reference="one">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>This is used to show how foreign objects are placed in a line area.</fo:block>
- <fo:block>
- Some block text to separate instream objects.
- </fo:block>
- <fo:block>
- Some text before
- <fo:instream-foreign-object>
- <svg:svg width="20" height="20">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- </svg:svg>
- </fo:instream-foreign-object>
- and some after the svg element.
- </fo:block>
- <fo:block>
- A text line below the instream object.
- </fo:block>
- <fo:block>
- <fo:instream-foreign-object>
- <svg:svg width="250" height="50">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- <svg:text style="font-family:Helvetica;fill:blue" x="10" y="30">SVG placed in a block</svg:text>
- </svg:svg>
- </fo:instream-foreign-object>
- </fo:block>
- <fo:block>
- A text line below the block.
- </fo:block>
- <fo:block>
- A text line with an instream foreign object that is before the line break.
- <fo:instream-foreign-object>
- <svg:svg width="50" height="50">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- <svg:rect style="fill:none;stroke:black" x="0" y="0" width="49" height="49"/>
- </svg:svg>
- </fo:instream-foreign-object>
- With some text on the next line. With a bit more text to go over the to the next line.
- </fo:block>
- <fo:block>
- A text line with an instream foreign object that is after the line break.
- With some text on the next line. With a bit
- <fo:instream-foreign-object>
- <svg:svg width="50" height="50">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- <svg:rect style="fill:none;stroke:black" x="0" y="0" width="49" height="49"/>
- </svg:svg>
- </fo:instream-foreign-object>
- more text to go over the to the next line.
- </fo:block>
- <fo:block>
- A text line with an instream foreign object that is over the line break.
- With some text
- <fo:instream-foreign-object>
- <svg:svg width="50" height="50">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- <svg:rect style="fill:none;stroke:black" x="0" y="0" width="49" height="49"/>
- </svg:svg>
- </fo:instream-foreign-object>
- on the next line. With a bit more text to go over the to the next line to
- see it handles it properly.
- </fo:block>
- <fo:block>
- The next block has an instream object wider than the area.
- </fo:block>
- <fo:block>
- <fo:instream-foreign-object>
- <svg:svg width="550" height="50">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- <svg:rect style="fill:none;stroke:black" x="0" y="0" width="549" height="49"/>
- <svg:text x="10" y="30">SVG placed in a really wide block</svg:text>
- </svg:svg>
- </fo:instream-foreign-object>
- </fo:block>
- <fo:block>
- This block has an instream object wider than the area after this text
- <fo:instream-foreign-object>
- <svg:svg width="550" height="50">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- <svg:rect style="fill:none;stroke:black" x="0" y="0" width="549" height="49"/>
- <svg:text style="font-family:Helvetica" x="10" y="30">SVG placed in a really wide block</svg:text>
- </svg:svg>
- </fo:instream-foreign-object>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
|