aboutsummaryrefslogtreecommitdiffstats
path: root/test/fotree/testcases/demo-test-success.fo
blob: 6d4696ebc8e46c3ad55738d1ee86c5a96a48f271 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:test="http://xmlgraphics.apache.org/fop/test">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm" margin-right="2cm">
      <fo:region-body/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="simpleA4">
    <fo:flow flow-name="xsl-region-body">
      <fo:block>Hello World!
        <test:assert property="font-family" expected="[sans-serif]"/>
        <test:assert property="font-size" expected="12000mpt"/>
      </fo:block>
      <fo:block font-family="ZapfDingbats">&#2702;</fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>