<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
xmlns:fo="http://www.w3.org/XSL/Format/1.0"
default-space="">
<xsl:variable name="PageMarginTop">75pt</xsl:variable>
<xsl:variable name="PageMarginBottom">125pt</xsl:variable>
<xsl:variable name="PageMarginLeft">80pt</xsl:variable>
<xsl:variable name="PageMarginRight">150pt</xsl:variable>
<xsl:variable name="BodySize">12pt</xsl:variable>
<xsl:template match='/'>
<fo:root xmlns:fo="http://www.w3.org/XSL/Format/1.0">
<fo:layout-master-set>
<fo:simple-page-master
page-master-name="allpages"
margin-top="{$PageMarginTop}"
margin-bottom="{$PageMarginBottom}"
margin-left="{$PageMarginLeft}"
margin-right="{$PageMarginRight}">
<fo:region-body margin-bottom="100pt"/>
<fo:region-after extent="25pt"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence>
<fo:sequence-specification>
<fo:sequence-specifier-repeating
page-master-first="allpages"
page-master-repeating="allpages"/>
</fo:sequence-specification>
<fo:flow font-family="serif">
<xsl:apply-templates/>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template match="invitation/front">
<fo:block font-family="sans-serif" font-size="24pt"
text-align-last="centered" font-weight="bold"
space-after.optimum="24pt">
<xsl:text>INVITATION</xsl:text>
</fo:block>
...
<xsl:template match="invitation/back">
<fo:block space-before.optimum="{$BodySize}"
font-weight="bold" text-align-last="end">
<xsl:text>From: </xsl:text>
<xsl:value-of select="signature"/>
</fo:block>
</xsl:template>
</xsl:stylesheet>