Solved

Page Number on XSL-FO

Posted on 2004-04-27
5
478 Views
Last Modified: 2013-11-18
I am using Apache FOP to generate PDF from xml and xsl. How do I get Page number at the end of each page.

Thank you,
Sudheer.
0
Comment
Question by:siru2803
  • 3
5 Comments
 
LVL 10

Expert Comment

by:Yury_Delendik
ID: 10934942
fo:page-number at fo:region-after
http://www.w3.org/TR/xsl/slice6.html#fo_page-number
0
 
LVL 15

Accepted Solution

by:
dualsoul earned 250 total points
ID: 10936758
0
 

Author Comment

by:siru2803
ID: 10942125
I could not make it out.

I am pasting my xml and xsl files:

<?xml version="1.0" encoding="UTF-8"?>
<root>
      <date>31 April, 2003</date>
      <invoice>23453234</invoice>
      <headerText>Credit Memo</headerText>
      <utilityName>South Eastern Electric Cooperative</utilityName>
      <utilityAddr1>2100 East Exchange Place</utilityAddr1>
      <utilityAddr2>Tucker, Georgia 30084-5313</utilityAddr2>
      <utilityCity/>
      <utilityState/>
      <utilityZip/>
      <billToName>John Brown</billToName>
      <billToAddr1>1234 AVENUE A</billToAddr1>
      <billToAddr2>Brookhaven, GA</billToAddr2>
      <billToAddr3>1234 AVENUE A</billToAddr3>
      <billToZip>30084-5313</billToZip>
      <shipToName>SUDHEER BASU</shipToName>
      <shipToAddr1>1234 AVENUE A</shipToAddr1>
      <shipToAddr2>Brookhaven, GA</shipToAddr2>
      <shipToAddr3>1234 AVENUE A</shipToAddr3>
      <shipToZip>30084-5313</shipToZip>
      <poNbr>ABC123</poNbr>
      <shipDate>08/12/03</shipDate>
      <shipVia>GROUND</shipVia>
      <fob>DESTINATION</fob>
      <dueDate>09/12/03</dueDate>
      <totalAmount>100.00</totalAmount>
      <salesTax>6.00</salesTax>
      <footerMsg>Sample Footer Message</footerMsg>
      <listItems>
            <listItem>
                  <quantity>11</quantity>
                  <desc>Materials</desc>
                  <uom>70</uom>
                  <unitPrice>10</unitPrice>
                  <amount>12</amount>
                  <taxable>T</taxable>
            </listItem>
            <listItem>
                  <quantity>22</quantity>
                  <desc>Construction</desc>
                  <uom>70</uom>
                  <unitPrice>10</unitPrice>
                  <amount>12</amount>
                  <taxable>T</taxable>
            </listItem>
            <listItem>
                  <quantity>33</quantity>
                  <desc>Vehicle</desc>
                  <uom>70</uom>
                  <unitPrice>10</unitPrice>
                  <amount>12</amount>
                  <taxable>T</taxable>
            </listItem>
      </listItems>
</root>






<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet extension-element-prefixes=" idprint scriptura_dataformatter java" version="1.0" xml:space="preserve" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:idprint="http://uris.inventivedesigners.com/xsl-fo/ext/print-settings" xmlns:java="http://xml.apache.org/xalan/java" xmlns:scriptura_dataformatter="com.id.dataformatting.xalan.DataFormatter" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <!--<xsl:param name="com.id.scriptura.extvar.scriptura.doc.lang">DEFAULT</xsl:param>
      <xsl:variable name="com.id.scriptura.language" select="$com.id.scriptura.extvar.scriptura.doc.lang"/>
      <xsl:variable name="com.id.scriptura.languagenumberformatter">
            <xsl:choose>
                  <xsl:when test="$com.id.scriptura.language='DEFAULT'">(|)|||.|,|3|1|0|3|¤|-</xsl:when>
            </xsl:choose>
      </xsl:variable>
      <xsl:variable name="com.id.scriptura.languagecurrencyformatter">
            <xsl:choose>
                  <xsl:when test="$com.id.scriptura.language='DEFAULT'">(¤ |)|¤ ||.|,|0|1|0|0|¤|-</xsl:when>
            </xsl:choose>
      </xsl:variable>
      <xsl:variable name="com.id.scriptura.languagedateformatter">
            <xsl:choose>
                  <xsl:when test="$com.id.scriptura.language='DEFAULT'">yyyy/MM/dd</xsl:when>
            </xsl:choose>
      </xsl:variable>-->
      <xsl:template match="/">
            <xsl:comment>This document was automatically generated by Scriptura from Inventive Designers nv. For more information refer to http://www.inventivedesigners.com/. Editing this document by hand is not supported by Scriptura and is at your own risk.</xsl:comment>
            <fo:root linefeed-treatment="preserve">
                  <fo:layout-master-set>
                        <fo:simple-page-master idprint:input-tray="0" idprint:output-tray="0" master-name="page0_first" page-height="841.85pt" page-width="595.25pt">
                              <fo:region-body margin-bottom="56.7pt" margin-left="56.7pt" margin-right="56.7pt" margin-top="54.7pt" region-name="reg-body"/>
                              <fo:region-before extent="54.7pt" precedence="true" region-name="page0_first_reg-before"/>
                              <fo:region-after extent="56.7pt" precedence="true" region-name="page0_first_reg-after"/>
                              <fo:region-start extent="56.7pt" region-name="page0_first_reg-start"/>
                              <fo:region-end extent="56.7pt" region-name="page0_first_reg-end"/>
                        </fo:simple-page-master>
                        <fo:simple-page-master idprint:input-tray="0" idprint:output-tray="0" master-name="page0_last" page-height="841.85pt" page-width="595.25pt">
                              <fo:region-body margin-bottom="56.7pt" margin-left="56.7pt" margin-right="56.7pt" margin-top="54.7pt" region-name="reg-body"/>
                              <fo:region-before extent="54.7pt" precedence="true" region-name="page0_last_reg-before"/>
                              <fo:region-after extent="56.7pt" precedence="true" region-name="page0_last_reg-after"/>
                              <fo:region-start extent="56.7pt" region-name="page0_last_reg-start"/>
                              <fo:region-end extent="56.7pt" region-name="page0_last_reg-end"/>
                        </fo:simple-page-master>
                        <fo:simple-page-master idprint:input-tray="0" idprint:output-tray="0" master-name="page0_any" page-height="841.85pt" page-width="595.25pt">
                              <fo:region-body margin-bottom="56.7pt" margin-left="56.7pt" margin-right="56.7pt" margin-top="54.7pt" region-name="reg-body"/>
                              <fo:region-before extent="54.7pt" precedence="true" region-name="page0_any_reg-before"/>
                              <fo:region-after extent="56.7pt" precedence="true" region-name="page0_any_reg-after"/>
                              <fo:region-start extent="56.7pt" region-name="page0_any_reg-start"/>
                              <fo:region-end extent="56.7pt" region-name="page0_any_reg-end"/>
                        </fo:simple-page-master>
                        <fo:page-sequence-master master-name="page-seq0">
                              <fo:repeatable-page-master-alternatives>
                                    <fo:conditional-page-master-reference master-reference="page0_first" page-position="first"/>
                                    <fo:conditional-page-master-reference master-reference="page0_last" page-position="last"/>
                                    <fo:conditional-page-master-reference master-reference="page0_any" page-position="any"/>
                              </fo:repeatable-page-master-alternatives>
                        </fo:page-sequence-master>
                  </fo:layout-master-set>
                  <fo:page-sequence force-page-count="auto" format="1" initial-page-number="auto" master-reference="page-seq0">
                        <fo:static-content flow-name="page0_first_reg-start"/>
                        <fo:static-content flow-name="page0_last_reg-start"/>
                        <fo:static-content flow-name="page0_any_reg-start"/>
                        <fo:static-content flow-name="page0_first_reg-end"/>
                        <fo:static-content flow-name="page0_last_reg-end"/>
                        <fo:static-content flow-name="page0_any_reg-end"/>
                        <fo:static-content flow-name="page0_first_reg-before"/>
                        <fo:static-content flow-name="page0_last_reg-before"/>
                        <fo:static-content flow-name="page0_any_reg-before"/>
                        <fo:static-content flow-name="page0_first_reg-after"/>
                        <fo:static-content flow-name="page0_last_reg-after"/>
                        <fo:static-content flow-name="page0_any_reg-after"/>
                         <fo:static-content flow-name="xsl-region-after">
                         <fo:list-block>
                              <fo:list-item>
                                   <fo:list-item-label/>
                                   <fo:list-item-body>
                                        <fo:block>
                                             page  <fo:page-number /> of
                                        </fo:block>
                                   </fo:list-item-body>
                              </fo:list-item>
                         </fo:list-block>
                    </fo:static-content>

                        <fo:flow flow-name="reg-body">
                              <fo:block-container height="50pt" left="0pt" position="absolute" top="0pt" width="100%">
                                    <fo:block>
                                          <!--<fo:inline color="#aa0030" font-family="Arial" font-size="8.0pt">This document was created using a trial version of Scriptura. For more information see http://www.inventivedesigners.com</fo:inline>-->
                                    </fo:block>
                              </fo:block-container>                              
                              
                              <!--The below table is used to display the header text at the top left corner of the Invoice Sheet-->
                              
                              <fo:table border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="10.3pt" margin-right="15.5pt" space-before="35.3pt" table-layout="auto">
                                    <fo:table-column column-width="456.05pt"/>                                    
                                    <fo:table-body>
                                          <fo:table-row height="5mm">
                                                <!--<xsl:attribute name="keep-with-next">auto</xsl:attribute>
                                                <xsl:attribute name="keep-with-previous">auto</xsl:attribute>
                                                <xsl:attribute name="keep-together">always</xsl:attribute>-->
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" number-rows-spanned="2">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block text-align="right">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="15.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false" ><xsl:value-of select="/root/headerText"/>
</fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                
                                          </fo:table-row>
                                          
                                    </fo:table-body>
                              </fo:table>
            
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              <fo:table border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="10.3pt" margin-right="15.5pt" space-before="35.3pt" table-layout="auto">
                                    <fo:table-column column-width="258.75pt"/>
                                    <fo:table-column column-width="111.55pt"/>
                                    <fo:table-column column-width="85.75pt"/>
                                    <fo:table-body>
                                          <fo:table-row height="2mm">
                                                <!--<xsl:attribute name="keep-with-next">auto</xsl:attribute>
                                                <xsl:attribute name="keep-with-previous">auto</xsl:attribute>
                                                <xsl:attribute name="keep-together">always</xsl:attribute>-->
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" number-rows-spanned="2">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="12.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="9.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false"><xsl:value-of select="/root/utilityName"/>
</fo:inline>
<fo:inline color="#000000" font-family="Times New Roman" font-size="9.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false"><xsl:value-of select="/root/utilityAddr1"/>
</fo:inline>
<fo:inline color="#000000" font-family="Times New Roman" font-size="9.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false"><xsl:value-of select="/root/utilityAddr2"/></fo:inline>

                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell  background-color="#cccccc" border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                      <!--<fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="-0.5pt" space-before="0.0pt">-->
                                                            <!--xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>-->
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">DATE</fo:inline>
                                                            <!--</fo:block>-->
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell background-color="#cccccc" border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                      <!--<fo:block  border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="-0.5pt" margin-right="0.0pt" space-before="0.0pt">-->
                                                            <!--<xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>-->
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">INVOICE #</fo:inline>
                                                            <!--</fo:block>-->
                                                      </fo:block>
                                                </fo:table-cell>
                                          </fo:table-row>
                                          <fo:table-row height="2mm">
                                                <!--<xsl:attribute name="keep-with-next">auto</xsl:attribute>
                                                <xsl:attribute name="keep-with-previous">auto</xsl:attribute>
                                                <xsl:attribute name="keep-together">always</xsl:attribute>-->
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <!--<xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>-->
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/root/date"/>
                                                                  </fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 1.0pt" margin-left="-0.5pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/root/invoice"/>
                                                                  </fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                          </fo:table-row>
                                    </fo:table-body>
                              </fo:table>
                              <fo:table border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 1.0pt 0.0pt 1.0pt" margin-left="10.3pt" margin-right="11.55pt" space-before="15.0pt" table-layout="auto">
                                    <fo:table-column column-width="199.9pt"/>
                                    <fo:table-column column-width="60.2pt"/>
                                    <fo:table-column column-width="199.9pt"/>
                                    <fo:table-body>
                                          <fo:table-row height="5mm">
                                                <!--<xsl:attribute name="keep-with-next">auto</xsl:attribute>
                                                <xsl:attribute name="keep-with-previous">auto</xsl:attribute>
                                                <xsl:attribute name="keep-together">always</xsl:attribute>-->
                                                <fo:table-cell background-color="#cccccc" border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">BILL TO</fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt .0pt 0.0pt"/>
                                                <fo:table-cell background-color="#cccccc" border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">SHIP TO</fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                          </fo:table-row>
                                          <fo:table-row height="5mm" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                <!--<xsl:attribute name="keep-with-next">auto</xsl:attribute>
                                                <xsl:attribute name="keep-with-previous">auto</xsl:attribute>
                                                <xsl:attribute name="keep-together">always</xsl:attribute>-->
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 1.0pt 0.0pt" >
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="5.0pt" margin-right="5.0pt" space-before="0.0pt" font-size="10.0pt" text-align="left" >
                                                            <!--<xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>-->
                                                            <!--<fo:block font-size="10.0pt" text-align="left">-->
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/root/billToName"/>
                                                                        <xsl:value-of select="/root/billToAddr1"/>
                                                                        <xsl:value-of select="/root/billToAddr2"/>
                                                                  </fo:inline>
                                                            <!--</fo:block>-->
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 1.0pt 0.0pt 1.0pt"/>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 1.0pt 0.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="5.0pt" margin-right="5.0pt" space-before="0.0pt">
                                                            <!--<xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>-->
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/root/shipToName"/>
                                                                        <xsl:value-of select="/root/shipToAddr1"/>
                                                                        <xsl:value-of select="/root/shipToAddr2"/>

                                                                  </fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                          </fo:table-row>
                                          <!--<fo:table-row height="0.25pt">
                                                <xsl:attribute name="keep-with-next">auto</xsl:attribute>
                                                <xsl:attribute name="keep-with-previous">auto</xsl:attribute>
                                                <xsl:attribute name="keep-together">always</xsl:attribute>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/root/billToAddr1"/>
                                                                  </fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 1.0pt 0.0pt 1.0pt"/>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/root/shipToAddr1"/>
                                                                  </fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                          </fo:table-row>
                                          <fo:table-row height="0.25pt">
                                                <xsl:attribute name="keep-with-next">auto</xsl:attribute>
                                                <xsl:attribute name="keep-with-previous">auto</xsl:attribute>
                                                <xsl:attribute name="keep-together">always</xsl:attribute>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 1.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/root/billToAddr2"/>
                                                                  </fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 1.0pt 0.0pt 1.0pt"/>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 1.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/root/shipToAddr2"/>
                                                                  </fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                          </fo:table-row>-->
                                    </fo:table-body>
                              </fo:table>
                              
                              <fo:table border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt" margin-left="7.3pt" margin-right="8.55pt" space-before="10.0pt" table-layout="auto">
                                    <fo:table-column column-width="93.2pt" border="0.5pt solid black"/>
                                    <fo:table-column column-width="93.2pt" border="0.5pt solid black"/>
                                    <fo:table-column column-width="93.2pt" border="0.5pt solid black"/>
                                    <fo:table-column column-width="93.2pt" border="0.5pt solid black"/>
                                    <fo:table-column column-width="93.2pt" border="0.5pt solid black"/>
                                    <fo:table-body>
                                          <fo:table-row height="2mm">
                                                <xsl:attribute name="keep-with-next">auto</xsl:attribute>
                                                <xsl:attribute name="keep-with-previous">auto</xsl:attribute>
                                                <xsl:attribute name="keep-together">always</xsl:attribute>
                                                <fo:table-cell  background-color="#cccccc" border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">PO NBR</fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell  background-color="#cccccc" border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="-0.5pt" margin-right="-0.5pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">SHIP DATE</fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell background-color="#cccccc" border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="-0.5pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">SHIP VIA</fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell background-color="#cccccc" border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">FOB</fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell background-color="#cccccc" border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="-0.5pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">DUE DATE</fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                          </fo:table-row>
                                          <fo:table-row height="2mm">
                                                <xsl:attribute name="keep-with-next">auto</xsl:attribute>
                                                <xsl:attribute name="keep-with-previous">auto</xsl:attribute>
                                                <xsl:attribute name="keep-together">always</xsl:attribute>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                                                      <fo:block-container height="4pt" width="1.5cm">

                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="-0.5pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/root/poNbr"/>
                                                                  </fo:inline>
                                                            </fo:block>                              
                                                            
                                                      </fo:block>
                                                      </fo:block-container>
                                                </fo:table-cell>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="-0.5pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/root/shipDate"/>
                                                                  </fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/root/shipVia"/>
                                                                  </fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="-0.5pt" margin-right="-0.5pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/root/fob"/>
                                                                  </fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/root/dueDate"/>
                                                                  </fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                          </fo:table-row>
                                    </fo:table-body>
                              </fo:table>
                              

                              <fo:table border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt" margin-left="7.3pt" margin-right="8.35pt" space-before="33.0pt" table-layout="auto">
                                    <fo:table-column column-width="60pt" border="0.5pt solid black"/>
                                    <fo:table-column column-width="150pt" border="0.5pt solid black"/>
                                    <fo:table-column column-width="40.05pt" border="0.5pt solid black"/>
                                    <fo:table-column column-width="76.35pt" border="0.5pt solid black"/>
                                    <fo:table-column column-width="96.65pt" border="0.5pt solid black"/>
                                    <fo:table-column column-width="52.9pt"  border="0.5pt solid black"/>
                                    
                                    <fo:table-body>
                                          <fo:table-row height="5mm">
                                                <!--<xsl:attribute name="keep-with-next">auto</xsl:attribute>
                                                <xsl:attribute name="keep-with-previous">auto</xsl:attribute>
                                                <xsl:attribute name="keep-together">always</xsl:attribute>-->
                                                <fo:table-cell  background-color="#cccccc" border-style="solid solid solid solid" border-color="black" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt" text-align="center">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">QUANTITY</fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell background-color="#cccccc" border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="-0.5pt" margin-right="0.0pt" space-before="0.0pt">                                                            
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">DESCRIPTION</fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell background-color="#cccccc" border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="-0.5pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">UOM</fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell background-color="#cccccc" border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="-0.5pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="right">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">UNIT PRICE</fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell background-color="#cccccc" border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="-0.5pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="right">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">AMOUNT</fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell background-color="#cccccc" border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt">
                                                      <fo:block-container border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 1.0pt 1.0pt" height="18.1pt" margin-left="-0.5pt" margin-right="0.0pt" space-before="0.0pt" white-space-collapse="false"/>
                                                </fo:table-cell>
                                          </fo:table-row>
                                          <xsl:apply-templates select="root/listItems"/>
                                          <!--      <fo:table-row height="408.15pt">
                                                <xsl:attribute name="keep-with-next">auto</xsl:attribute>
                                                <xsl:attribute name="keep-with-previous">auto</xsl:attribute>
                                                <xsl:attribute name="keep-together">always</xsl:attribute>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 1.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="-0.5pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/month/invoice/projects/project/quantity"/>
                                                                  </fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 1.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="-0.5pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/month/invoice/projects/project[position()=2]/description"/>
                                                                  </fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 1.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="-0.5pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/month/invoice/projects/project/uom"/>
                                                                  </fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 1.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="-0.5pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="right">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/month/invoice/projects/project/unitprice"/>
                                                                  </fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 1.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="-0.5pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="right">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                                        <xsl:value-of select="/month/invoice/projects/project/amount"/>
                                                                  </fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 1.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="-0.5pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="right">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">T</fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                          </fo:table-row>-->
                                          
                                          
                                    </fo:table-body>
                              </fo:table>
                              
                              <fo:table border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="1.0pt 1.0pt 1.0pt 1.0pt" margin-left="7.3pt" margin-right="8.35pt" table-layout="auto">
                                    <fo:table-column column-width="60pt" />
                                    <fo:table-column column-width="75pt" />
                                    <fo:table-column column-width="40.05pt" />
                                    <fo:table-column column-width="76.35pt" />
                                    <fo:table-column column-width="76.35pt" border="0.5pt solid black"/>

                                    <!--<fo:table-column column-width="96.65pt" border="0.5pt solid black"/>-->
                                    
                                    <!--<fo:table-column column-width="52.9pt"  border="0.5pt solid black"/>-->
                                          <fo:table-column column-width="96.65pt" />

                                    <fo:table-column column-width="52.9pt"  border="0.5pt solid black"/>
                              
                              <fo:table-body>
                              
                              <fo:table-row height="5mm">
                                                <xsl:attribute name="keep-with-next">auto</xsl:attribute>
                                                <xsl:attribute name="keep-with-previous">auto</xsl:attribute>
                                                <xsl:attribute name="keep-together">always</xsl:attribute>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 1.0pt 0.0pt" number-columns-spanned="3">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.pt 0.0pt" margin-left="0.0pt" margin-right="-0.5pt" space-before="0.0pt">
                                                            
                                                            <fo:block font-size="10.0pt" text-align="left">
                                                                  <!--<fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false"> -->
<!--Page <fo:page-number/> of <fo:block id="last-page"/><fo:page-number-citation ref-id="last-page"/>-->
<!--</fo:inline>-->
                                                            
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>                                                
                                                

                                                
                                          

                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 1.0pt 0.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.pt 0.0pt" margin-left="0.0pt" margin-right="-0.5pt" space-before="0.0pt" text-align="right"  font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal">
                                                            Sales Tax
                                                            <!--<fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false"  >Sales Tax
                                                            </fo:inline>-->
                                                            
                                                      </fo:block>
                                                </fo:table-cell>
                                                
                                                

                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 1.0pt 0.0pt">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.pt 0.0pt" margin-left="0.0pt" margin-right="-0.5pt" space-before="0.0pt" display-align="before" text-align="right"  font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal">
                                                            
                                                            
                                                                  <!--<fo:inline  font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" >
                                                                        <xsl:value-of select="/root/salesTax"/>
                                                                  </fo:inline>-->
                                                            
                                                      </fo:block>
                                                </fo:table-cell>

                                                
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 1.0pt 0.0pt" display-align="before">                                                      
<fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.pt 0.0pt" margin-left="0.0pt" margin-right="-0.5pt" space-before="0.0pt" display-align="before" text-align="right"  font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal">
                                                            
                                                            
                                                                  <fo:inline  font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" >
                                                                        <xsl:value-of select="/root/salesTax"/>
                                                                  </fo:inline>
                                                            
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 1.0pt 0.0pt">
                                                      <fo:block-container border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.pt 0.0pt" height="17.75pt" margin-left="-0.5pt" margin-right="0.0pt" space-before="0.0pt" white-space-collapse="false"/>
                                                </fo:table-cell>
                                          </fo:table-row>
                              <!--Next Row-->
                              <fo:table-row height="5mm">
                                                <xsl:attribute name="keep-with-next">auto</xsl:attribute>
                                                <xsl:attribute name="keep-with-previous">auto</xsl:attribute>
                                                <xsl:attribute name="keep-together">always</xsl:attribute>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" number-columns-spanned="4">
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                                            <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                                            <fo:block font-size="10.0pt" text-align="right">
                                                                  <fo:inline color="#000000" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="true">Total Invoice Amount</fo:inline>
                                                            </fo:block>
                                                      </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt"
                                                >
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.pt 0.0pt" margin-left="-0.5pt" margin-right="-0.5pt" space-before="0.0pt" display-align="before"  text-align="right" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" >
                                                      
                                                            
                                                                  
                                                            
                                                      </fo:block>
                                                </fo:table-cell>
                                                
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt"
                                                >
                                                      <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.pt 0.0pt" margin-left="-0.5pt" margin-right="-0.5pt" space-before="0.0pt" display-align="before"  text-align="right" font-family="Times New Roman" font-size="10.0pt" font-style="normal" font-weight="normal" >                                                
                                                            
                                                                  
                                                                        <xsl:value-of select="root/totalAmount"/>
                                                                  
                                                            
                                                      </fo:block>
                                                </fo:table-cell>

                                                
                                                <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.pt 0.0pt"/>
                                          </fo:table-row>                  

                              </fo:table-body>
                              </fo:table>                                          
                        

                        </fo:flow>
                  </fo:page-sequence>
            </fo:root>
      </xsl:template>      
      
      

      <xsl:template match="root/listItems">
            <xsl:for-each select="listItem">
                  <fo:table-row height="5mm">
                        <xsl:attribute name="keep-with-next">auto</xsl:attribute>
                        <xsl:attribute name="keep-with-previous">auto</xsl:attribute>
                        <xsl:attribute name="keep-together">always</xsl:attribute>
                        <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt"  text-align="center">
                              <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                    <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                    <fo:block font-size="9.0pt" text-align="center">
                                          <fo:inline color="#000000" font-family="Times New Roman" font-size="9.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                <xsl:value-of select="quantity"/>
                                          </fo:inline>
                                    </fo:block>
                              </fo:block>
                        </fo:table-cell>
                        <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                              <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                    <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                    <fo:block font-size="9.0pt" text-align="left">
                                          <fo:inline color="#000000" font-family="Times New Roman" font-size="9.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                <xsl:value-of select="desc"/>
                                          </fo:inline>
                                    </fo:block>
                              </fo:block>
                        </fo:table-cell>
                        <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                              <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                    <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                    <fo:block font-size="9.0pt" text-align="left">
                                          <fo:inline color="#000000" font-family="Times New Roman" font-size="9.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                <xsl:value-of select="uom"/>
                                          </fo:inline>
                                    </fo:block>
                              </fo:block>
                        </fo:table-cell>
                        <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                              <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                    <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                    <fo:block font-size="9.0pt" text-align="right">
                                          <fo:inline color="#000000" font-family="Times New Roman" font-size="9.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                <xsl:value-of select="unitPrice"/>
                                          </fo:inline>
                                    </fo:block>
                              </fo:block>
                        </fo:table-cell>
                        <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                              <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                    <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                    <fo:block font-size="9.0pt" text-align="right">
                                          <fo:inline color="#000000" font-family="Times New Roman" font-size="9.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                <xsl:value-of select="amount"/>
                                          </fo:inline>
                                    </fo:block>
                              </fo:block>
                        </fo:table-cell>
                        <fo:table-cell border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt">
                              <fo:block border-color="#000000 #000000 #000000 #000000" border-style="solid solid solid solid" border-width="0.0pt 0.0pt 0.0pt 0.0pt" margin-left="0.0pt" margin-right="0.0pt" space-before="0.0pt">
                                    <xsl:attribute name="padding">2.0pt 2.0pt 0.0pt 2.0pt</xsl:attribute>
                                    <fo:block font-size="9.0pt" text-align="right">
                                          <fo:inline color="#000000" font-family="Times New Roman" font-size="9.0pt" font-style="normal" font-weight="normal" text-decoration=" no-line-through no-underline" white-space-collapse="false">
                                                <xsl:value-of select="taxable"/>
                                          </fo:inline>
                                    </fo:block>
                              </fo:block>
                        </fo:table-cell>
                        <!--<fo:table-cell padding="0.2cm 0 0 0" border-width=".001cm .001cm .001cm .001cm" border-style="solid" border-color="#000000">
                              <fo:block font-size="10pt">$<xsl:value-of select="format-number(rate, '####0.00')"/>
                              </fo:block>
                        </fo:table-cell>
                        <fo:table-cell padding="0.2cm 0 0 0">
                              <fo:block font-size="10pt" text-align="right">$<xsl:value-of select="format-number(hours*rate, '####0.00')"/>
                              </fo:block>
                        </fo:table-cell>-->
                  </fo:table-row>
            </xsl:for-each>
      </xsl:template>
</xsl:stylesheet>
0
 

Author Comment

by:siru2803
ID: 10982016
Right now, the page number is inside the block in a table cell in the last row . The table may run multiple pages. In that case, I may not get the page number on each page. I  need to place the page number so that I see it on each page. Sorry, there is a lot of superfluous code in the XSl part above as this XSL-FO was generated using Scriptura.

Thank you,
Sudheer.
0
 

Author Comment

by:siru2803
ID: 10998678
Dlelendik,

How do I place the page number at region-after. i have three page-after's . I am pasting  my layout-master-set
below.

Thanks


<fo:layout-master-set>
                        <fo:simple-page-master idprint:input-tray="0" idprint:output-tray="0" master-name="page0_first" page-height="841.85pt" page-width="595.25pt">
                              <fo:region-body margin-bottom="56.7pt" margin-left="56.7pt" margin-right="56.7pt" margin-top="54.7pt" region-name="reg-body"/>
                              <fo:region-before extent="54.7pt" precedence="true" region-name="page0_first_reg-before"/>
                              <fo:region-after extent="56.7pt" precedence="true" region-name="page0_first_reg-after"/>
                              <fo:region-start extent="56.7pt" region-name="page0_first_reg-start"/>
                              <fo:region-end extent="56.7pt" region-name="page0_first_reg-end"/>
                        </fo:simple-page-master>
                        <fo:simple-page-master idprint:input-tray="0" idprint:output-tray="0" master-name="page0_last" page-height="841.85pt" page-width="595.25pt">
                              <fo:region-body margin-bottom="56.7pt" margin-left="56.7pt" margin-right="56.7pt" margin-top="54.7pt" region-name="reg-body"/>
                              <fo:region-before extent="54.7pt" precedence="true" region-name="page0_last_reg-before"/>
                              <fo:region-after extent="56.7pt" precedence="true" region-name="page0_last_reg-after"/>
                              <fo:region-start extent="56.7pt" region-name="page0_last_reg-start"/>
                              <fo:region-end extent="56.7pt" region-name="page0_last_reg-end"/>
                        </fo:simple-page-master>
                        <fo:simple-page-master idprint:input-tray="0" idprint:output-tray="0" master-name="page0_any" page-height="841.85pt" page-width="595.25pt">
                              <fo:region-body margin-bottom="56.7pt" margin-left="56.7pt" margin-right="56.7pt" margin-top="54.7pt" region-name="reg-body"/>
                              <fo:region-before extent="54.7pt" precedence="true" region-name="page0_any_reg-before"/>
                              <fo:region-after extent="56.7pt" precedence="true" region-name="page0_any_reg-after"/>
                              <fo:region-start extent="56.7pt" region-name="page0_any_reg-start"/>
                              <fo:region-end extent="56.7pt" region-name="page0_any_reg-end"/>
                        </fo:simple-page-master>
                        <fo:page-sequence-master master-name="page-seq0">
                              <fo:repeatable-page-master-alternatives>
                                    <fo:conditional-page-master-reference master-reference="page0_first" page-position="first"/>
                                    <fo:conditional-page-master-reference master-reference="page0_last" page-position="last"/>
                                    <fo:conditional-page-master-reference master-reference="page0_any" page-position="any"/>
                              </fo:repeatable-page-master-alternatives>
                        </fo:page-sequence-master>
                  </fo:layout-master-set>
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now