Skip to content

Instantly share code, notes, and snippets.

@zeljic
Created June 5, 2017 12:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save zeljic/1fcc5b79b34422b1f88346991cecc4ae to your computer and use it in GitHub Desktop.
FOP 2.2 - Border Example
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:svg="http://www.w3.org/2000/svg">
<fo:layout-master-set>
<fo:simple-page-master master-name="default-page" page-height="8.2604in" page-width="11.6875in" margin-left="0.7in" margin-right="0.7in">
<fo:region-body margin-top="0.75in" margin-bottom="0.75in"/>
<fo:region-before extent="0.75in"/>
<fo:region-after extent="0.75in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="default-page" format="1" initial-page-number="1">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:table border-spacing="0pt" table-layout="fixed" width="100%">
<fo:table-column column-width="48pt"/>
<fo:table-column column-width="48pt"/>
<fo:table-body start-indent="0">
<fo:table-row height="20pt">
<fo:table-cell background-color="#C3D69B">
<fo:block-container>
<fo:block/>
</fo:block-container>
</fo:table-cell>
<fo:table-cell background-color="#D99694">
<fo:block-container>
<fo:block/>
</fo:block-container>
</fo:table-cell>
</fo:table-row>
<fo:table-row height="20pt">
<fo:table-cell background-color="#C3D69B" border-top="1pt dashed #000000">
<fo:block-container>
<fo:block/>
</fo:block-container>
</fo:table-cell>
<fo:table-cell background-color="#336699">
<fo:block-container>
<fo:block/>
</fo:block-container>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
<fo:block id="SV_RefID_PageTotal"/>
</fo:flow>
</fo:page-sequence>
</fo:root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment