<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.stylusstudio.com/xquery">
    <xsl:template match="/">
        <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
            <fo:layout-master-set>
                <fo:simple-page-master master-name="default-page" page-height="11in" page-width="8.5in" margin-left="0.6in" margin-right="0.6in" margin-top="0.79in" margin-bottom="0.79in">
                    <fo:region-body/>
                </fo:simple-page-master>
            </fo:layout-master-set>
            <fo:page-sequence master-reference="default-page">
                <fo:flow flow-name="xsl-region-body">
                    <fo:block>
                        <fo:block text-align="center">
                            <fo:block>
                                <fo:inline font-weight="bold">
                                    <fo:table width="100%" border-style="none" border-width="2pt" background-repeat="repeat">
                                        <fo:table-column/>
                                        <fo:table-column column-width="50pt"/>
                                        <fo:table-column/>
                                        <fo:table-body>
                                            <fo:table-row>
                                                <fo:table-cell border-style="none" border-width="2pt" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block>
                                                        <xsl:text>NKANGALA DISTRICT MUNICIPALITY</xsl:text>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="none" border-width="2pt" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block>
                                                        <fo:external-graphic background="transparent" width="50pt" content-width="scale-to-fit" height="50pt" content-height="scale-to-fit" scaling="non-uniform" src="url(/images/NKANGALA.JPG)"/>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="none" border-width="2pt" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block>
                                                        <xsl:text>NKANGALA DISTRIKSMUNISIPALITEIT</xsl:text>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                        </fo:table-body>
                                    </fo:table>
                                </fo:inline>
                            </fo:block>
                            <fo:block>
                                <fo:inline font-weight="bold">
                                    <xsl:text>S</xsl:text>
                                </fo:inline>
                                <fo:inline font-size="9pt" font-weight="bold">
                                    <xsl:text>TATEMENT</xsl:text>
                                </fo:inline>
                            </fo:block>
                            <fo:block>
                                <xsl:text>&#xA0;</xsl:text>
                            </fo:block>
                            <fo:block>
                                <fo:table width="100%" border-style="none" border-width="1pt" background-repeat="repeat">
                                    <fo:table-column/>
                                    <fo:table-column/>
                                    <fo:table-body>
                                        <fo:table-row>
                                            <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                <fo:block text-align="left">
                                                    <fo:block>
                                                        <fo:inline font-size="9pt">Account Number 
                                                            <xsl:value-of select="/Statement/Accounts/Account/CsmAccountNo"/>
                                                        </fo:inline>
                                                    </fo:block>
                                                    <fo:block>
                                                        <xsl:text>&#xA0;</xsl:text>
                                                    </fo:block>
                                                    <fo:block>
                                                        <fo:inline font-size="9pt">
                                                            <xsl:value-of select="/Statement/Accounts/Account/CsmPrintName"/>
                                                        </fo:inline>
                                                    </fo:block>
                                                    <fo:block>
                                                        <fo:inline font-size="9pt">
                                                            <xsl:value-of select="/Statement/Accounts/Account/CsmPostAdr1"/>
                                                        </fo:inline>
                                                    </fo:block>
                                                    <fo:block>
                                                        <fo:inline font-size="9pt">
                                                            <xsl:value-of select="/Statement/Accounts/Account/CsmPostAdr2"/>
                                                        </fo:inline>
                                                    </fo:block>
                                                    <fo:block>
                                                        <fo:inline font-size="9pt">
                                                            <xsl:value-of select="/Statement/Accounts/Account/CsmPostAdr4"/>
                                                        </fo:inline>
                                                    </fo:block>
                                                    <fo:block>
                                                        <fo:inline font-size="9pt">
                                                            <xsl:value-of select="/Statement/Accounts/Account/CsmPostCode"/>
                                                        </fo:inline>
                                                    </fo:block>
                                                </fo:block>
                                            </fo:table-cell>
                                            <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                <fo:block text-align="left">
                                                    <fo:block>
                                                        <fo:inline font-size="9pt">Vat Registration No. 
                                                            <xsl:value-of select="/Statement/Accounts/Account/RbVatNo"/>
                                                        </fo:inline>
                                                    </fo:block>
                                                    <fo:block>
                                                        <fo:inline font-size="9pt">
                                                            <xsl:value-of select="/Statement/Accounts/Account/RbAddr"/>
                                                        </fo:inline>
                                                    </fo:block>
                                                    <fo:block>
                                                        <fo:inline font-size="9pt">
                                                            <xsl:value-of select="/Statement/Accounts/Account/RbAddr2"/>
                                                        </fo:inline>
                                                    </fo:block>
                                                    <fo:block>
                                                        <fo:inline font-size="9pt">
                                                            <xsl:value-of select="/Statement/Accounts/Account/RbAddr3"/>
                                                        </fo:inline>
                                                    </fo:block>
                                                    <fo:block>
                                                        <xsl:text>&#xA0;</xsl:text>
                                                    </fo:block>
                                                    <fo:block>
                                                        <fo:inline font-size="9pt">
                                                            <fo:table width="100%" border-style="none" border-width="2pt" background-repeat="repeat">
                                                                <fo:table-column/>
                                                                <fo:table-column/>
                                                                <fo:table-body>
                                                                    <fo:table-row>
                                                                        <fo:table-cell border-style="none" border-width="2pt" padding="2pt" background-repeat="repeat" display-align="center">
                                                                            <fo:block>
                                                                                <fo:inline font-size="9pt">Tel: 
                                                                                    <xsl:value-of select="/Statement/Accounts/Account/RbPhone"/>
                                                                                </fo:inline>
                                                                            </fo:block>
                                                                        </fo:table-cell>
                                                                        <fo:table-cell border-style="none" border-width="2pt" padding="2pt" background-repeat="repeat" display-align="center">
                                                                            <fo:block>
                                                                                <fo:inline font-size="9pt">Fax: 
                                                                                    <xsl:value-of select="/Statement/Accounts/Account/RbFax"/>
                                                                                </fo:inline>
                                                                            </fo:block>
                                                                        </fo:table-cell>
                                                                    </fo:table-row>
                                                                </fo:table-body>
                                                            </fo:table>
                                                        </fo:inline>
                                                    </fo:block>
                                                </fo:block>
                                            </fo:table-cell>
                                        </fo:table-row>
                                    </fo:table-body>
                                </fo:table>
                            </fo:block>
                            <fo:block>
                                <xsl:text>&#xA0;</xsl:text>
                            </fo:block>
                            <fo:block>
                                <fo:inline font-size="9pt">
                                    <xsl:text>G</xsl:text>
                                </fo:inline>
                                <fo:inline font-size="9pt" font-weight="bold">
                                    <xsl:text>ENERAL INFORMATION</xsl:text>
                                </fo:inline>
                            </fo:block>
                            <fo:block>
                                <fo:inline font-weight="bold">
                                    <fo:table width="100%" border-style="none" border-width="2pt" background-repeat="repeat">
                                        <fo:table-column/>
                                        <fo:table-column/>
                                        <fo:table-column/>
                                        <fo:table-body>
                                            <fo:table-row>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left" background-color="#D3D3D3">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="bold">
                                                                <xsl:text>Account Date</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left" background-color="#D3D3D3">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="bold">
                                                                <xsl:text>Tax Invoice No.</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left" background-color="#D3D3D3">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="bold">
                                                                <xsl:text>Vat Registration No.</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt">
                                                                <xsl:value-of select="/Statement/Accounts/Account/LevyPeriod"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt">
                                                                <xsl:value-of select="/Statement/Accounts/Account/TaxInvNumber"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt">
                                                                <xsl:value-of select="/Statement/Accounts/Account/CsmVatRegNo"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                        </fo:table-body>
                                    </fo:table>
                                </fo:inline>
                                <fo:table width="100%" border-style="none" border-width="2pt" background-repeat="repeat">
                                    <fo:table-column column-width="72pt"/>
                                    <fo:table-column/>
                                    <fo:table-body>
                                        <fo:table-row>
                                            <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                <fo:block text-align="left" background-color="#D3D3D3">
                                                    <fo:block>
                                                        <fo:inline font-size="9pt" font-weight="bold">
                                                            <xsl:text>Reference</xsl:text>
                                                        </fo:inline>
                                                    </fo:block>
                                                </fo:block>
                                            </fo:table-cell>
                                            <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                <fo:block text-align="left">
                                                    <fo:block>
                                                        <fo:inline font-size="9pt">
                                                            <xsl:value-of select="/Statement/Accounts/Account/SndNotes1"/>
                                                        </fo:inline>
                                                    </fo:block>
                                                </fo:block>
                                            </fo:table-cell>
                                        </fo:table-row>
                                    </fo:table-body>
                                </fo:table>
                            </fo:block>
                            <fo:block>
                                <xsl:text>&#xA0;</xsl:text>
                            </fo:block>
                            <fo:block>
                                <fo:inline font-size="9pt">
                                    <xsl:text>A</xsl:text>
                                </fo:inline>
                                <fo:inline font-size="9pt" font-weight="bold">
                                    <xsl:text>CCOUNT DETAILS</xsl:text>
                                    <fo:table width="100%" border-style="solid" border-width="1pt" border-color="darkgray" background-repeat="repeat">
                                        <fo:table-column column-width="70pt"/>
                                        <fo:table-column column-width="44pt"/>
                                        <fo:table-column column-width="270pt"/>
                                        <fo:table-column column-width="10pt"/>
                                        <fo:table-column/>
                                        <fo:table-body>
                                            <fo:table-row background-color="lightgrey">
                                                <fo:table-cell border-style="none" border-width="1pt" border-color="darkgray" padding="0pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left" background-color="#D3D3D3">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt">
                                                                <xsl:text>Date</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="none" border-width="1pt" border-color="darkgray" padding="0pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left" background-color="#D3D3D3">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt">
                                                                <xsl:text>Code</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="none" border-width="1pt" border-color="darkgray" padding="0pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left" background-color="#D3D3D3">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt">
                                                                <xsl:text>Description</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="none" border-width="1pt" border-color="darkgray" padding="0pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block background-color="#D3D3D3"/>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="none" border-width="1pt" border-color="darkgray" padding="0pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="right" background-color="#D3D3D3">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt">
                                                                <xsl:text>Value</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell border-style="none" border-width="2pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block/>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="none" border-width="2pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block/>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="none" border-width="2pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:text>Opening Balance</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="none" border-width="2pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block/>
                                                </fo:table-cell>
                                                <fo:table-cell border-left-style="none" border-right-style="solid" border-start-style="none" border-end-style="none" border-start-width="2pt" border-end-width="1pt" border-before-width="2pt" border-after-width="2pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="right">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/OpeningBalance"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell border-style="none" border-width="2pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/Transactions/Transaction/CstCaptureDate"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="none" border-width="2pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/Transactions/Transaction/CstTariffCode"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="none" border-width="2pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/Transactions/Transaction/TarTariffDescrip"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="none" border-width="2pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/Transactions/Transaction/VatYn"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-left-style="none" border-right-style="solid" border-start-style="none" border-end-style="none" border-width="1pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="right">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/Transactions/Transaction/CstAmount"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell border-style="none" border-width="2pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block/>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="none" border-width="2pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/AddVatTransactions/AddVatTransaction/CstTariffCode2"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="none" border-width="2pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:text>VAT</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="none" border-width="2pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block/>
                                                </fo:table-cell>
                                                <fo:table-cell border-left-style="none" border-right-style="solid" border-start-style="none" border-end-style="none" border-width="1pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="right">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/AddVatTransactions/AddVatTransaction/CstAmount2"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell border-style="none" border-start-width="1pt" border-end-width="2pt" border-before-width="2pt" border-after-width="1pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block/>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="none" border-start-width="2pt" border-end-width="2pt" border-before-width="2pt" border-after-width="1pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block/>
                                                </fo:table-cell>
                                                <fo:table-cell border-left-style="none" border-right-style="none" border-start-style="none" border-end-style="solid" border-start-width="2pt" border-end-width="2pt" border-before-width="2pt" border-after-width="1pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:text>Closing Balance</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-left-style="none" border-right-style="none" border-start-style="none" border-end-style="solid" border-start-width="2pt" border-end-width="2pt" border-before-width="2pt" border-after-width="1pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block/>
                                                </fo:table-cell>
                                                <fo:table-cell border-left-style="none" border-right-style="solid" border-start-style="none" border-end-style="solid" border-width="1pt" border-color="darkgray" padding="0pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="right">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/ClosingBalance3"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                        </fo:table-body>
                                    </fo:table>
                                </fo:inline>
                            </fo:block>
                            <fo:block>
                                <xsl:text>&#xA0;</xsl:text>
                            </fo:block>
                            <fo:block>
                                <fo:inline font-weight="bold">
                                    <xsl:text>A</xsl:text>
                                </fo:inline>
                                <fo:inline font-size="9pt" font-weight="bold">
                                    <xsl:text>GEING</xsl:text>
                                    <fo:table width="100%" border-style="none" border-width="2pt" background-repeat="repeat">
                                        <fo:table-column/>
                                        <fo:table-column/>
                                        <fo:table-column/>
                                        <fo:table-column/>
                                        <fo:table-column/>
                                        <fo:table-column/>
                                        <fo:table-body>
                                            <fo:table-row>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="right" background-color="#D3D3D3">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt">
                                                                <xsl:text>120+Days</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="right" background-color="#D3D3D3">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt">
                                                                <xsl:text>90 Days</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="right" background-color="#D3D3D3">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt">
                                                                <xsl:text>60 Days</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="right" background-color="#D3D3D3">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt">
                                                                <xsl:text>30 Days</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="right" background-color="#D3D3D3">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt">
                                                                <xsl:text>Current</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="right" background-color="#D3D3D3">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt">
                                                                <xsl:text>Total</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="right">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/LevyPeriod_5"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="right">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/LevyPeriod_04"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="right">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/LevyPeriod_03"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="right">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/LevyPeriod_02"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="right">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/LevyPeriod_01"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="right">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/ClosingBalance3"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                        </fo:table-body>
                                    </fo:table>
                                </fo:inline>
                            </fo:block>
                            <fo:block>
                                <xsl:text>&#xA0;</xsl:text>
                            </fo:block>
                            <fo:block>
                                <fo:inline font-weight="bold">
                                    <xsl:text>N</xsl:text>
                                </fo:inline>
                                <fo:inline font-size="9pt" font-weight="bold">
                                    <xsl:text>OTES</xsl:text>
                                    <fo:table width="100%" border-style="none" border-width="2pt" background-repeat="repeat">
                                        <fo:table-column/>
                                        <fo:table-body>
                                            <fo:table-row>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/Note1"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/Note2"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/Note3"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                        </fo:table-body>
                                    </fo:table>
                                </fo:inline>
                            </fo:block>
                            <fo:block>
                                <xsl:text>&#xA0;</xsl:text>
                            </fo:block>
                            <fo:block>
                                <fo:inline font-weight="bold">
                                    <xsl:text>R</xsl:text>
                                </fo:inline>
                                <fo:inline font-size="9pt" font-weight="bold">
                                    <xsl:text>EMITTANCE ADVICE</xsl:text>
                                    <fo:table width="100%" border-style="none" border-width="2pt" background-repeat="repeat">
                                        <fo:table-column column-width="120pt"/>
                                        <fo:table-column/>
                                        <fo:table-body>
                                            <fo:table-row>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left" background-color="#D3D3D3">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt">
                                                                <xsl:text>Account Number</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/CsmAccountNo"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left" background-color="#D3D3D3">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt">
                                                                <xsl:text>Name</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/CsmPrintName"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left" background-color="#D3D3D3">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt">
                                                                <xsl:text>Total Due</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/ClosingBalance3"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-color="lightgrey" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left" background-color="#D3D3D3">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt">
                                                                <xsl:text>Total Due on or before</xsl:text>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-style="solid" border-width="1pt" border-color="darkgray" padding="2pt" background-repeat="repeat" display-align="center">
                                                    <fo:block text-align="left">
                                                        <fo:block>
                                                            <fo:inline font-size="9pt" font-weight="normal">
                                                                <xsl:value-of select="/Statement/Accounts/Account/PaymentDate"/>
                                                            </fo:inline>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                        </fo:table-body>
                                    </fo:table>
                                </fo:inline>
                            </fo:block>
                        </fo:block>
                    </fo:block>
                </fo:flow>
            </fo:page-sequence>
        </fo:root>
    </xsl:template>
</xsl:stylesheet>