Listing 4:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xml.apache.org/fop/extensions">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" media-type="xml"/>
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xml.apache.org/fop/extensions">
<fo:layout-master-set>
<fo:simple-page-master page-width="21cm" page-height="29.7cm" master-name="A4">
<fo:region-body margin-bottom="1.5cm" margin-right="2cm" margin-left="2cm" margin-top="1.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="A4">
<fo:flow flow-name="xsl-region-body">
<fo:wrapper font-family="Times"
font-size="12pt"
text-align="justify">
<xsl:apply-templates />
</fo:wrapper>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template match="headline">
<fo:block id="sec0"
text-align="center"
font-family="Helvetica"
font-weight="bold"
font-size="18pt"
color="#0050B2"
space-after.optimum="6pt">
<xsl:value-of select="."/>
</fo:block>
</xsl:template>
<xsl:template match="super-paragraph">
<xsl:choose>
<xsl:when test="@style='standard'">
<fo:block space-after.optimum="6pt">
<xsl:apply-templates mode="inline-paragraph-standard"/>
</fo:block>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template match="line-break" mode="inline-paragraph-standard">
<fo:block space-after.optimum="0pt"/>
</xsl:template>
<xsl:template match="bold" mode="inline-paragraph-standard">
<fo:wrapper font-weight="bold">
<xsl:apply-templates mode="inline-paragraph-standard"/>
</fo:wrapper>
</xsl:template>
<xsl:template match="italic" mode="inline-paragraph-standard">
<fo:wrapper font-style="italic">
<xsl:apply-templates mode="inline-paragraph-standard"/>
</fo:wrapper>
</xsl:template>
<xsl:template match="marked" mode="inline-paragraph-standard">
<fo:wrapper color="red">
<xsl:apply-templates mode="inline-paragraph-standard"/>
</fo:wrapper>
</xsl:template>
</xsl:stylesheet>