<?xml version="1.0"?>
<!--   $Header: PON_SOURCING_XSLFO.xsl 115.1.11510.7 2005/01/11 13:29:14 sdewan ship $ --> 
<!--   dbdrv: none --> 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
                         xmlns:fo="http://www.w3.org/1999/XSL/Format" 
                         xmlns:fox="http://xml.apache.org/fop/extensions" version="1.0">

	<!-- Variable -->
	<xsl:variable name="ROW_OBJ" select="(/ROWSET/ROW)"/>
	
	<!-- Variable for document specific messages -->
	<xsl:variable name="DOCUMENT_SPECIFIC_MESSAGES_OBJ" select="($ROW_OBJ/DOCUMENT_SPECIFIC_MESSAGES)"/>
	
	<!-- Variables for generic specific messages -->
	<xsl:variable name="GENERIC_MESSAGES_OBJ" select="($ROW_OBJ/GENERIC_MESSAGES)"/>

	<!--Variables for document type rules -->
	<xsl:variable name="DOCUMENT_TYPE_RULES_OBJ" select="($ROW_OBJ/DOCUMENT_TYPE_RULES)"/>

        <xsl:variable name="BID_LIST_TYPE_OBJ" select="($DOCUMENT_TYPE_RULES_OBJ/DOCUMENT_TYPE_RULES_ROW[NAME = 'BID_LIST_TYPE'])[1]"/>
        <xsl:variable name="SHOW_BIDDER_NOTES_OBJ" select="($DOCUMENT_TYPE_RULES_OBJ/DOCUMENT_TYPE_RULES_ROW[NAME = 'SHOW_BIDDER_NOTES'])[1]"/>
        <xsl:variable name="ALLOW_MULTIPLE_ROUNDS_OBJ" select="($DOCUMENT_TYPE_RULES_OBJ/DOCUMENT_TYPE_RULES_ROW[NAME = 'ALLOW_MULTIPLE_ROUNDS'])[1]"/>
        <xsl:variable name="BID_SCOPE_OBJ" select="($DOCUMENT_TYPE_RULES_OBJ/DOCUMENT_TYPE_RULES_ROW[NAME = 'BID_SCOPE'])[1]"/>
        <xsl:variable name="BID_QUANTITY_SCOPE_OBJ" select="($DOCUMENT_TYPE_RULES_OBJ/DOCUMENT_TYPE_RULES_ROW[NAME = 'BID_QUANTITY_SCOPE'])[1]"/>
        <xsl:variable name="BID_FREQUENCY_OBJ" select="($DOCUMENT_TYPE_RULES_OBJ/DOCUMENT_TYPE_RULES_ROW[NAME = 'BID_FREQUENCY'])[1]"/>
        <xsl:variable name="MIN_BID_DECREMENT_OBJ" select="($DOCUMENT_TYPE_RULES_OBJ/DOCUMENT_TYPE_RULES_ROW[NAME = 'MIN_BID_DECREMENT'])[1]"/>
        <xsl:variable name="MANUAL_CLOSE_OBJ" select="($DOCUMENT_TYPE_RULES_OBJ/DOCUMENT_TYPE_RULES_ROW[NAME = 'MANUAL_CLOSE'])[1]"/>
        <xsl:variable name="MANUAL_EXTEND_OBJ" select="($DOCUMENT_TYPE_RULES_OBJ/DOCUMENT_TYPE_RULES_ROW[NAME = 'MANUAL_EXTEND'])[1]"/>
        <xsl:variable name="AUTO_EXTENSION_OBJ" select="($DOCUMENT_TYPE_RULES_OBJ/DOCUMENT_TYPE_RULES_ROW[NAME = 'AUTO_EXTENSION'])[1]"/>
	<!--End of Variables for document type rules -->
	
	<!--Variables for number of header attributes -->
	<xsl:variable name="HEADER_ATTRIBUTES_EXIST_OBJ" select="count($ROW_OBJ/GROUP_HEADER_ATTRIBUTES/GROUP_HEADER_ATTRIBUTES_ROW/HEADER_ATTRIBUTES_DETAILS/HEADER_ATTRIBUTES_DETAILS_ROW[1])"/>

	<!--Variable to determine if there are any lines in the negotiation -->
	<xsl:variable name="HAS_ITEMS_FLAG_OBJ" select="$ROW_OBJ/HAS_ITEMS_FLAG"/>
	
	<!--Variables to determine if note to bidders is to be shown. More that 0 indicates show note to bidders in header -->
	<xsl:variable name="NOTE_TO_BIDDERS_COUNT_OBJ" select="count($ROW_OBJ/NOTE_TO_BIDDERS[1])"/>
	
	<!--Variables to user auction currency code-->
	<xsl:variable name="CURRENCY_CODE_OBJ" select="($ROW_OBJ/CURRENCY_CODE)"/>
	
	<!--Variables to user auction currency name-->
	<xsl:variable name="CURRENCY_NAME_OBJ" select="($ROW_OBJ/CURRENCY_NAME)"/>
	
	<!--Variables to user flag that determines if rates are to be shown to the bidder-->
	<xsl:variable name="PUBLISH_RATES_TO_BIDDERS_FLAG_OBJ" select="$ROW_OBJ/PUBLISH_RATES_TO_BIDDERS_FLAG and $ROW_OBJ/PUBLISH_RATES_TO_BIDDERS_FLAG ='Y' and $ROW_OBJ/RATE_TYPE"/>
	
	<!--Variables to user flag that determines if weight label is to be shown for header attributes-->
	<xsl:variable name="DISPLAY_HEADER_SCORE_OBJ" select="$ROW_OBJ/HDR_ATTR_DISPLAY_SCORE and $ROW_OBJ/HDR_ATTR_DISPLAY_SCORE ='Y'"/>
	
	<!--Variables to user flag that determines if weight label is to be shown for header attributes-->
	<xsl:variable name="DISPLAY_HEADER_WEIGHT_OBJ" select="$ROW_OBJ/HDR_ATTR_ENABLE_WEIGHTS and $ROW_OBJ/HDR_ATTR_ENABLE_WEIGHTS ='Y'"/>
	
	<!--Variables for number of header attachments -->
	<xsl:variable name="HEADER_ATTACHMENTS_EXIST_OBJ" select="count($ROW_OBJ/ATTACHMENTS/ATTACHMENTS_ROW[ENTITY_NAME = 'PON_AUCTION_HEADERS_ALL'][1])"/>

	<!--Variables for number of price break location addresses to be displayed -->
	<xsl:variable name="PRICE_BREAK_LOCATIONS_EXIST_OBJ" select="count($ROW_OBJ/PRICE_BREAK_LOCATIONS/PRICE_BREAK_LOCATIONS_ROW[1])"/>
	
	<!--Variables to store 'Not Specifed' in user language as it is used at many places-->
	<xsl:variable name="NOT_SPECIFIED_OBJ" select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_NOT_SPECIFIED'][1]/MESSAGE_TEXT"/>
	
	<!--Variables to store 'Price' in user language as it is used at many places-->
	<xsl:variable name="PRICE_OBJ" select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_BIDS_PRICE'][1]/MESSAGE_TEXT"/>
	
	<!--Variables to store 'Discount %' in user language as it is used at many places-->
	<xsl:variable name="DISCOUNT_PERCENTAGE_OBJ" select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_DISCOUNT_PERCENTAGE'][1]/MESSAGE_TEXT"/>

      <!--Variable to determine whether or not we need to display the warning when contract terms are attached and non-mergeable -->
      <xsl:variable name="DISPLAY_CONTRACT_NONMERGE_OBJ" select="$ROW_OBJ/CONTRACT_ATTACHED_DOC='Y' and $ROW_OBJ/CONTRACT_NON_MERGEABLE='Y'"/>

	
        <!-- Title -->
        <xsl:attribute-set name="h1">
                <xsl:attribute name="font-size">16pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
                <xsl:attribute name="font-weight">bold</xsl:attribute>
                <xsl:attribute name="space-before">10pt</xsl:attribute>
                <xsl:attribute name="space-after">2pt</xsl:attribute>
                <xsl:attribute name="keep-with-next.within-page">always</xsl:attribute>
                <xsl:attribute name="color">#000000</xsl:attribute>                
        </xsl:attribute-set>
        <xsl:attribute-set name="h2">
                <xsl:attribute name="font-size">14pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
                <xsl:attribute name="font-weight">bold</xsl:attribute>
                <xsl:attribute name="font-style">italic</xsl:attribute>
                <xsl:attribute name="space-before">10pt</xsl:attribute>
                <xsl:attribute name="space-after">2pt</xsl:attribute>
                <xsl:attribute name="keep-with-next.within-page">always</xsl:attribute>
                <xsl:attribute name="color">#000000</xsl:attribute>                
        </xsl:attribute-set>
        <xsl:attribute-set name="h3">
                <xsl:attribute name="font-size">13pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
                <xsl:attribute name="font-weight">bold</xsl:attribute>
                <xsl:attribute name="space-before">10pt</xsl:attribute>
                <xsl:attribute name="space-after">2pt</xsl:attribute>
                <xsl:attribute name="keep-with-next.within-page">always</xsl:attribute>
        </xsl:attribute-set>
        <xsl:attribute-set name="h4">
                <xsl:attribute name="font-size">12pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
                <xsl:attribute name="font-weight">bold</xsl:attribute>
                <xsl:attribute name="space-before">5pt</xsl:attribute>
                <xsl:attribute name="space-after">5pt</xsl:attribute>
                <xsl:attribute name="keep-with-next.within-page">always</xsl:attribute>
        </xsl:attribute-set>
        <xsl:attribute-set name="h5">
                <xsl:attribute name="font-size">10pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
                <xsl:attribute name="font-weight">bold</xsl:attribute>
                <xsl:attribute name="space-before">3pt</xsl:attribute>
                <xsl:attribute name="space-after">3pt</xsl:attribute>
                <xsl:attribute name="keep-with-next.within-page">always</xsl:attribute>
        </xsl:attribute-set>
        <xsl:attribute-set name="page.header">
                <xsl:attribute name="font-size">10pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
                <xsl:attribute name="text-align">end</xsl:attribute> 
                <xsl:attribute name="color">#000000</xsl:attribute> 
        </xsl:attribute-set>
        <xsl:attribute-set name="page.footer">
                <xsl:attribute name="font-size">10pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
                <xsl:attribute name="text-align">center</xsl:attribute> 
                <xsl:attribute name="color">#000000</xsl:attribute> 
        </xsl:attribute-set>
        <xsl:attribute-set name="blank.row">
                <xsl:attribute name="height">4mm</xsl:attribute>
        </xsl:attribute-set>
        <xsl:attribute-set name="data.label">
                <xsl:attribute name="font-weight">bold</xsl:attribute>
                <xsl:attribute name="font-size">10pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
        </xsl:attribute-set>
        <xsl:attribute-set name="data.value">
                <xsl:attribute name="space-start">3pt</xsl:attribute>
                <xsl:attribute name="font-size">10pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
        </xsl:attribute-set>
        <xsl:attribute-set name="data.note">
                <xsl:attribute name="font-style">italic</xsl:attribute>
                <xsl:attribute name="font-size">10pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
        </xsl:attribute-set>
        <xsl:attribute-set name="data.align.label">
                <xsl:attribute name="font-size">10pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
                <xsl:attribute name="text-align">right</xsl:attribute>
                <xsl:attribute name="space-end">1mm</xsl:attribute>
        </xsl:attribute-set>
        <xsl:attribute-set name="data.align.value">
                <xsl:attribute name="font-weight">bold</xsl:attribute>
                <xsl:attribute name="space-start">3pt</xsl:attribute>
                <xsl:attribute name="font-size">10pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
                <xsl:attribute name="text-align">left</xsl:attribute>
                <xsl:attribute name="space-start">1mm</xsl:attribute>
        </xsl:attribute-set>
        <xsl:attribute-set name="data.align.note">
                <xsl:attribute name="font-size">10pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
                <xsl:attribute name="text-align">left</xsl:attribute>
        </xsl:attribute-set>
        <xsl:attribute-set name="note.label">
                <xsl:attribute name="font-weight">bold</xsl:attribute>
                <xsl:attribute name="font-style">italic</xsl:attribute>
                <xsl:attribute name="space-start">3pt</xsl:attribute>
                <xsl:attribute name="font-size">10pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
                <xsl:attribute name="text-align">left</xsl:attribute>
                <xsl:attribute name="space-start">1mm</xsl:attribute>
        </xsl:attribute-set>
        <xsl:attribute-set name="note.value">
                <xsl:attribute name="font-size">10pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
                <xsl:attribute name="text-align">left</xsl:attribute>
                <xsl:attribute name="space-end">1mm</xsl:attribute>
        </xsl:attribute-set>
        <xsl:attribute-set name="table.cell.data">
                <xsl:attribute name="space-start">3pt</xsl:attribute>
                <xsl:attribute name="font-size">10pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
        </xsl:attribute-set>
        <xsl:attribute-set name="table.cell.heading">
                <xsl:attribute name="space-start">3pt</xsl:attribute>
                <xsl:attribute name="font-size">10pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
        </xsl:attribute-set>
        <xsl:attribute-set name="table.cell.heading.style">
                <xsl:attribute name="border-style">solid</xsl:attribute>
                <xsl:attribute name="border-width">0.5pt</xsl:attribute>
                <xsl:attribute name="border-color">#808080</xsl:attribute>
                <xsl:attribute name="background-color">#E7E7E7</xsl:attribute>
        </xsl:attribute-set>
        <xsl:attribute-set name="table.cell.data.style">
                <xsl:attribute name="border-style">solid</xsl:attribute>
                <xsl:attribute name="border-width">0.5pt</xsl:attribute>
                <xsl:attribute name="border-color">#808080</xsl:attribute>
        </xsl:attribute-set>
        <xsl:attribute-set name="table.cell.note">
                <xsl:attribute name="font-style">italic</xsl:attribute>
                <xsl:attribute name="font-size">10pt</xsl:attribute>
                <xsl:attribute name="font-family">Times</xsl:attribute>
                <xsl:attribute name="space-start">3pt</xsl:attribute>
        </xsl:attribute-set>
	<xsl:attribute-set name="invitation.letter.heading">
	          <xsl:attribute name="font-family">Times</xsl:attribute>
		  <xsl:attribute name="text-align">center</xsl:attribute>
		  <xsl:attribute name="space-before">10pt</xsl:attribute>
		  <xsl:attribute name="space-after">10pt</xsl:attribute>
		  <xsl:attribute name="font-size">12pt</xsl:attribute>
		  <xsl:attribute name="font-weight">bold</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="toc.header">
	          <xsl:attribute name="font-family">Times</xsl:attribute>
		  <xsl:attribute name="text-align">center</xsl:attribute>
		  <xsl:attribute name="space-before">5pt</xsl:attribute>
		  <xsl:attribute name="space-after">5pt</xsl:attribute>
		  <xsl:attribute name="font-size">10pt</xsl:attribute>
		  <xsl:attribute name="font-weight">bold</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="toc.level1">
	          <xsl:attribute name="font-family">Times</xsl:attribute>
		  <xsl:attribute name="text-align">justify</xsl:attribute>
		  <xsl:attribute name="space-before">5pt</xsl:attribute>
		  <xsl:attribute name="font-size">10pt</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="toc.level2">
	          <xsl:attribute name="font-family">Times</xsl:attribute>
		  <xsl:attribute name="text-align">justify</xsl:attribute>
		  <xsl:attribute name="space-before">5pt</xsl:attribute>
		  <xsl:attribute name="space-after">5pt</xsl:attribute>
		  <xsl:attribute name="font-size">10pt</xsl:attribute>
		  <xsl:attribute name="margin-left">5mm</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="toc.level3">
	          <xsl:attribute name="font-family">Times</xsl:attribute>
		  <xsl:attribute name="text-align">justify</xsl:attribute>
		  <xsl:attribute name="space-before">5pt</xsl:attribute>
		  <xsl:attribute name="space-after">5pt</xsl:attribute>
		  <xsl:attribute name="font-size">10pt</xsl:attribute>
		  <xsl:attribute name="margin-left">5mm</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="table.cell.one">
	          <xsl:attribute name="column-width">20%</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="table.cell.two">
	          <xsl:attribute name="column-width">27%</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="table.cell.three">
	          <xsl:attribute name="column-width">19%</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="table.cell.four">
	          <xsl:attribute name="column-width">34%</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="toc.space">
		  <xsl:attribute name="space-before">2mm</xsl:attribute>
	</xsl:attribute-set>


  <xsl:template match="/ROWSET">
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

      <fo:layout-master-set>

        <fo:simple-page-master master-name="A4"
           page-height="11in" page-width="8.5in"
           margin-top="0.3in"  margin-bottom="0in"
           margin-left="1.25in" margin-right="1.25in">
	  <!--fo:region-before extent="1.5cm"/>
	  <fo:region-body margin-bottom="1.5cm" margin-top="1.0cm"/>
	  <fo:region-after extent="1.0cm"/-->
	  <fo:region-before extent="0.5in"/>
	  <fo:region-body margin-bottom="0.5in" margin-top="0.8in"/>
	  <fo:region-after extent="0.5in"/>
        </fo:simple-page-master>

      </fo:layout-master-set>
      
      <fox:outline internal-destination="secTOC">
        <fox:label><xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_TABLE_OF_CONTENTS_C'][1]/MESSAGE_TEXT"/></fox:label>
      </fox:outline>

      <fox:outline internal-destination="secHeaderInformation">
        <!--PART I: HEADER INFORMATION-->
        <fox:label><xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCT_PART_I_HEADER_INFO_C'][1]/MESSAGE_TEXT"/></fox:label>
        <fox:outline internal-destination="secGeneralInformation">
          <fox:label> 1.1 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PRN_GENERAL_INFO'][1]/MESSAGE_TEXT"/></fox:label>
        </fox:outline>
        <fox:outline internal-destination="secTerms">
          <fox:label> 1.2 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PRN_TERMS'][1]/MESSAGE_TEXT"/></fox:label>
        </fox:outline>
        <xsl:if test="$HEADER_ATTRIBUTES_EXIST_OBJ &gt; 0">
          <fox:outline internal-destination="secHeaderAttributes">
            <fox:label>1.3 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_HEADER_ATTRIBUTES'][1]/MESSAGE_TEXT"/></fox:label>
          </fox:outline>
        </xsl:if>
        <xsl:if test="$HEADER_ATTACHMENTS_EXIST_OBJ &gt; 0">
          <fox:outline internal-destination="secHeaderAttachments">
            <fox:label>
              <xsl:choose>
                <xsl:when test="$HEADER_ATTRIBUTES_EXIST_OBJ &gt; 0">
                  1.4
                </xsl:when>
                <xsl:otherwise>
                  1.3
                </xsl:otherwise>
              </xsl:choose>
              <!--Attachments-->
              <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_ATTACHMENTS'][1]/MESSAGE_TEXT"/>
            </fox:label>
          </fox:outline>
        </xsl:if>
        <fox:outline internal-destination="secResponseRules">
          <fox:label>
            <xsl:if test="$HEADER_ATTRIBUTES_EXIST_OBJ &gt; 0 and $HEADER_ATTACHMENTS_EXIST_OBJ &gt; 0">
              1.5
            </xsl:if>
            <xsl:if test="(($HEADER_ATTRIBUTES_EXIST_OBJ &gt; 0 and $HEADER_ATTACHMENTS_EXIST_OBJ = 0) or ($HEADER_ATTRIBUTES_EXIST_OBJ = 0 and $HEADER_ATTACHMENTS_EXIST_OBJ &gt; 0))">
              1.4
            </xsl:if>
            <xsl:if test="$HEADER_ATTRIBUTES_EXIST_OBJ = 0 and $HEADER_ATTACHMENTS_EXIST_OBJ = 0">
              1.3
            </xsl:if>
            <!--Response Rules-->
            <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_RESPONSE_RULES'][1]/MESSAGE_TEXT"/>
          </fox:label>
        </fox:outline>
      </fox:outline>
	
    <xsl:if test="$HAS_ITEMS_FLAG_OBJ and $HAS_ITEMS_FLAG_OBJ = 'Y'">
      <fox:outline internal-destination="secPriceSchedule">
        <fox:label><xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PRN_PRICE_SCHEDULE'][1]/MESSAGE_TEXT"/></fox:label>
        <fox:outline internal-destination="secLineInformation">
          <fox:label>
            2.1 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PRN_LINE_INFO'][1]/MESSAGE_TEXT"/>
          </fox:label>
        </fox:outline>
        <fox:outline internal-destination="secLineDetails">
          <fox:label> 2.2 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_ITEM_DETAILS'][1]/MESSAGE_TEXT"/></fox:label>
          <xsl:call-template name="LINES_ROW.BOOKMARK"/>
        </fox:outline>
        <xsl:if test="$PRICE_BREAK_LOCATIONS_EXIST_OBJ &gt; 0">
          <fox:outline internal-destination="secShipToAddresses">
            <fox:label>
              2.3 <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_SHIP_TO_LOC'][1]/MESSAGE_TEXT"/>
            </fox:label>
          </fox:outline>
        </xsl:if>
      </fox:outline>
   </xsl:if>

      <fo:page-sequence master-reference="A4">
	 <fo:static-content flow-name="xsl-region-before">
           <fo:block xsl:use-attribute-sets="page.header">
             <xsl:value-of select="$ROW_OBJ/PAGE_HEADING_MSG"/>
           </fo:block>
	 </fo:static-content>
	 
	 <fo:static-content flow-name="xsl-region-after">
	   <fo:block xsl:use-attribute-sets="page.footer">
             <fo:table table-layout="fixed">
               <fo:table-column column-width="2.25in"/>
               <fo:table-column column-width="1.65in"/>
               <fo:table-column column-width="2.25in"/>
               <fo:table-body>
                 <fo:table-row>
                   <fo:table-cell text-align="left">
                     <fo:block>
	     	       <fo:inline font-size="10pt" font-family="Times">
	                 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_FO_PROPRIETARY_INFORMATION'][1]/MESSAGE_TEXT"/>
	               </fo:inline>
                     </fo:block>
                   </fo:table-cell>
                   <fo:table-cell text-align="center">
                     <fo:block>
                       <!--xsl:copy-of select="$CenterBottom"/-->
                     </fo:block>
                   </fo:table-cell>
                   <fo:table-cell text-align="right">
                     <fo:block>
	               <xsl:call-template name="pageFooterRight"/>
                     </fo:block>
                   </fo:table-cell>
                 </fo:table-row>
               </fo:table-body>
             </fo:table>

	   </fo:block>
	 </fo:static-content>
        <xsl:call-template name="INVITATION_LETTER"/>
      </fo:page-sequence>
      
      <fo:page-sequence master-reference="A4">
	 <fo:static-content flow-name="xsl-region-before">
           <fo:block xsl:use-attribute-sets="page.header">
             <xsl:value-of select="$ROW_OBJ/PAGE_HEADING_MSG"/>
           </fo:block>
	 </fo:static-content>
	 
	 <fo:static-content flow-name="xsl-region-after">
	   <fo:block xsl:use-attribute-sets="page.footer">
             <fo:table table-layout="fixed">
               <fo:table-column column-width="2.25in"/>
               <fo:table-column column-width="1.65in"/>
               <fo:table-column column-width="2.25in"/>
               <fo:table-body>
                 <fo:table-row>
                   <fo:table-cell text-align="left">
                     <fo:block>
	     	       <fo:inline font-size="10pt" font-family="Times">
	                 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_FO_PROPRIETARY_INFORMATION'][1]/MESSAGE_TEXT"/>
	               </fo:inline>
                     </fo:block>
                   </fo:table-cell>
                   <fo:table-cell text-align="center">
                     <fo:block>
                       <!--xsl:copy-of select="$CenterBottom"/-->
                     </fo:block>
                   </fo:table-cell>
                   <fo:table-cell text-align="right">
                     <fo:block>
				<xsl:call-template name="pageFooterRight"/>

                     </fo:block>
                   </fo:table-cell>
                 </fo:table-row>
               </fo:table-body>
             </fo:table>

	   </fo:block>
	 </fo:static-content>

        <xsl:call-template name="TOC"/>
      </fo:page-sequence>
      
      <fo:page-sequence master-reference="A4">

	 <fo:static-content flow-name="xsl-region-before">
           <fo:block xsl:use-attribute-sets="page.header">
             <xsl:value-of select="$ROW_OBJ/PAGE_HEADING_MSG"/>
           </fo:block>
	 </fo:static-content>
	 
	 <fo:static-content flow-name="xsl-region-after">
	   <fo:block xsl:use-attribute-sets="page.footer">
             <fo:table table-layout="fixed">
               <fo:table-column column-width="2.25in"/>
               <fo:table-column column-width="1.65in"/>
               <fo:table-column column-width="2.25in"/>
               <fo:table-body>
                 <fo:table-row>
                   <fo:table-cell text-align="left">
                     <fo:block>
	     	       <fo:inline font-size="10pt" font-family="Times">
	                 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_FO_PROPRIETARY_INFORMATION'][1]/MESSAGE_TEXT"/>
	               </fo:inline>
                     </fo:block>
                   </fo:table-cell>
                   <fo:table-cell text-align="center">
                     <fo:block>
                       <!--xsl:copy-of select="$CenterBottom"/-->
                     </fo:block>
                   </fo:table-cell>
                   <fo:table-cell text-align="right">
                     <fo:block>
				<xsl:call-template name="pageFooterRight"/>
                     </fo:block>
                   </fo:table-cell>
                 </fo:table-row>
               </fo:table-body>
             </fo:table>

	   </fo:block>
	 </fo:static-content>
	 
        <fo:flow flow-name="xsl-region-body">
          <xsl:apply-templates select="/ROWSET/ROW">
          </xsl:apply-templates>
          <xsl:if test="$HAS_ITEMS_FLAG_OBJ and $HAS_ITEMS_FLAG_OBJ = 'N'">
            <xsl:call-template name="endofdocument"/>  <!-- this signifies the EOF -->
          </xsl:if>
        </fo:flow>

      </fo:page-sequence>
      
    <xsl:if test="$HAS_ITEMS_FLAG_OBJ and $HAS_ITEMS_FLAG_OBJ = 'Y'">
      <fo:page-sequence master-reference="A4">

	 <fo:static-content flow-name="xsl-region-before">
           <fo:block xsl:use-attribute-sets="page.header">
             <xsl:value-of select="$ROW_OBJ/PAGE_HEADING_MSG"/>
           </fo:block>
	 </fo:static-content>
	 
	 <fo:static-content flow-name="xsl-region-after">
	   <fo:block xsl:use-attribute-sets="page.footer">
             <fo:table table-layout="fixed">
               <fo:table-column column-width="2.25in"/>
               <fo:table-column column-width="1.65in"/>
               <fo:table-column column-width="2.25in"/>
               <fo:table-body>
                 <fo:table-row>
                   <fo:table-cell text-align="left">
                     <fo:block>
	     	       <fo:inline font-size="10pt" font-family="Times">
	                 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_FO_PROPRIETARY_INFORMATION'][1]/MESSAGE_TEXT"/>
	               </fo:inline>
                     </fo:block>
                   </fo:table-cell>
                   <fo:table-cell text-align="center">
                     <fo:block>
                       <!--xsl:copy-of select="$CenterBottom"/-->
                     </fo:block>
                   </fo:table-cell>
                   <fo:table-cell text-align="right">
                     <fo:block>
				<xsl:call-template name="pageFooterRight"/>
                     </fo:block>
                   </fo:table-cell>
                 </fo:table-row>
               </fo:table-body>
             </fo:table>

	   </fo:block>
	 </fo:static-content>
	 
        <fo:flow flow-name="xsl-region-body">
            <xsl:apply-templates select="$ROW_OBJ/LINES">
            </xsl:apply-templates>
          <xsl:call-template name="endofdocument"/>  <!-- this signifies the EOF -->
        </fo:flow>

      </fo:page-sequence>
  </xsl:if>

    </fo:root>
  </xsl:template>
  
  <xsl:template name="endofdocument"> 
   <fo:block id="last-paragraph" text-align="left"> 
   </fo:block> 
  </xsl:template> 

  <xsl:template match="ROW">
    <fo:block id="secHeaderInformation">
      <fo:table>
        <fo:table-column column-width="6%"/>
        <fo:table-column column-width="94%"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell number-columns-spanned="2">
              <fo:block space-before.optimum="16pt">
                <fo:block xsl:use-attribute-sets="h5">
                  <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_HEADER_INFORMATION'][1]/MESSAGE_TEXT"/>
                </fo:block>
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell number-columns-spanned="2">
              <fo:block xsl:use-attribute-sets="h5">
                <!-- General Information -->
                <fo:block id="secGeneralInformation">
                  1.1 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PRN_GENERAL_INFO'][1]/MESSAGE_TEXT"/>
                </fo:block>
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell number-columns-spanned="2">
              <fo:table>
                <fo:table-column xsl:use-attribute-sets="table.cell.one"/>
                <fo:table-column xsl:use-attribute-sets="table.cell.two"/>
                <fo:table-column xsl:use-attribute-sets="table.cell.three"/>
                <fo:table-column xsl:use-attribute-sets="table.cell.four"/>
                <fo:table-body>
                  <fo:table-row>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.label">
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_TITLE'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell number-columns-spanned="3">
                      <fo:block xsl:use-attribute-sets="data.align.value">
                        <xsl:value-of select="AUCTION_TITLE"/>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  
                  <xsl:if test = "AUCTION_HEADER_ID_PREV_AMEND and AUCTION_HEADER_ID_PREV_AMEND != ''">
                    <fo:table-row>
                      <fo:table-cell xsl:use-attribute-sets="data.align.label">
                        <fo:block>
                          <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AMEND_DATE'][1]/MESSAGE_TEXT"/>
                        </fo:block>
                      </fo:table-cell>
                      <fo:table-cell number-columns-spanned="3">
                        <fo:block xsl:use-attribute-sets="data.align.value">
                          <xsl:value-of select="PUBLISH_DATE"/>
                        </fo:block>
                      </fo:table-cell>
                    </fo:table-row>
                    <fo:table-row>
                      <fo:table-cell>
                        <fo:block xsl:use-attribute-sets="data.align.label">
                          <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AMEND_DESCRIPTION'][1]/MESSAGE_TEXT"/>
                        </fo:block>
                      </fo:table-cell>
                      <fo:table-cell number-columns-spanned="3">
                        <fo:block xsl:use-attribute-sets="data.align.value">
                          <xsl:value-of select="AMENDMENT_DESCRIPTION"/>
                        </fo:block>
                      </fo:table-cell>
                    </fo:table-row>
                    <fo:table-row>
                      <fo:table-cell number-columns-spanned="4">
                        <fo:block xsl:use-attribute-sets="blank.row"/>
                      </fo:table-cell>
                    </fo:table-row>
                  </xsl:if>
                  
                  <fo:table-row>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.label">
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PREVIEW'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.value">
                        <xsl:choose>
                          <xsl:when test="VIEW_BY_DATE and VIEW_BY_DATE != ''">
                            <xsl:value-of select="VIEW_BY_DATE"/>
                          </xsl:when>
                          <xsl:otherwise>
                            <xsl:value-of select="$NOT_SPECIFIED_OBJ"/>
                          </xsl:otherwise>
                        </xsl:choose>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.label">
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_OPEN'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.value">
                        <xsl:value-of select="OPEN_BIDDING_DATE"/>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.label">
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_CLOSE'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.value">
                        <xsl:value-of select="CLOSE_BIDDING_DATE"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <!-- Award date will not be displayed for RFI -->
                      <xsl:if test="INTERNAL_NAME != 'REQUEST_FOR_INFORMATION'">
                      <fo:block xsl:use-attribute-sets="data.align.label">
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_AWARD'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                      </xsl:if>
                    </fo:table-cell>
                    <fo:table-cell>
                      <!-- Award date will not be displayed for RFI -->
                      <xsl:if test="INTERNAL_NAME != 'REQUEST_FOR_INFORMATION'">
                      <fo:block xsl:use-attribute-sets="data.align.value">
                        <xsl:choose>
                          <xsl:when test="AWARD_BY_DATE and AWARD_BY_DATE != ''">
                            <xsl:value-of select="AWARD_BY_DATE"/>
                          </xsl:when>
                          <xsl:otherwise>
                            <xsl:value-of select="$NOT_SPECIFIED_OBJ"/>
                          </xsl:otherwise>
                        </xsl:choose>
                      </fo:block>
                      </xsl:if>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.label">
                        <!-- Time Zone -->
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_TIME_ZONE'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.value">
                        <!-- Time Zone -->
                        <xsl:value-of select="$ROW_OBJ/DISPLAY_TIME_ZONE"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.label">
                        <!-- Buyer -->
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_ACCTS_BUYER'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.value">
                        <!-- Buyer -->
                        <xsl:value-of select="AUCTIONEER_DISPLAY_NAME"/>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.label">
                        <!-- Style -->
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_STYLE'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.value">
                        <!-- Style -->
                        <xsl:value-of select="PON_BID_VISIBILITY_DISPLAY"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <xsl:if test="EVENT_TITLE and EVENT_TITLE != ''">
                        <fo:block xsl:use-attribute-sets="data.align.label">
                          <!-- Event -->
                          <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_AUCTION_EVENT'][1]/MESSAGE_TEXT"/>
                        </fo:block>
                      </xsl:if>
                    </fo:table-cell>
                    <fo:table-cell>
                      <xsl:if test="EVENT_TITLE and EVENT_TITLE != ''">
                        <fo:block xsl:use-attribute-sets="data.align.value">
                          <!-- Event -->
                          <xsl:value-of select="EVENT_TITLE"/>
                        </fo:block>
                      </xsl:if>
                    </fo:table-cell>
                   </fo:table-row>
                   
                   <fo:table-row>
                     <fo:table-cell>
                       <fo:block xsl:use-attribute-sets="data.align.label">
                         <!-- Email -->
                         <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_EMAIL'][1]/MESSAGE_TEXT"/>
                       </fo:block>
                     </fo:table-cell>
                     <fo:table-cell number-columns-spanned="3">
                       <fo:block xsl:use-attribute-sets="data.align.value">
                         <!-- Email -->
                         <xsl:value-of select="$ROW_OBJ/EMAIL"/>
                       </fo:block>
                     </fo:table-cell>
                   </fo:table-row>
                   
                   <fo:table-row>
                     <fo:table-cell number-columns-spanned="4">
                       <fo:block space-before.optimum="6mm">
                       </fo:block>
                     </fo:table-cell>
                   </fo:table-row>
                   
                 </fo:table-body>
               </fo:table>
             </fo:table-cell>
           </fo:table-row>
        </fo:table-body>
      </fo:table>
    </fo:block>
      <!-- Start Of Terms Heading -->
    <fo:block space-before.optimum="16pt" id="secTerms">
      <fo:table>
        <fo:table-column column-width="6%"/>
        <fo:table-column column-width="94%"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell number-columns-spanned="2">
              <fo:block>
                <fo:block xsl:use-attribute-sets="h5">
                  1.2 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PRN_TERMS'][1]/MESSAGE_TEXT"/>
                </fo:block>
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell number-columns-spanned="2">
              <fo:table>
                <fo:table-column xsl:use-attribute-sets="table.cell.one"/>
                <fo:table-column xsl:use-attribute-sets="table.cell.two"/>
                <fo:table-column xsl:use-attribute-sets="table.cell.three"/>
                <fo:table-column xsl:use-attribute-sets="table.cell.four"/>
                <fo:table-body>
                  <!-- Effective Start Date and Effective End Date is to be shown only for BPA/CPA -->
                  <xsl:if test = "CONTRACT_TYPE = 'BLANKET' or CONTRACT_TYPE = 'CONTRACT'">
                  <fo:table-row>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.label">
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_EFFECTIVE_START_DATE'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.value">
                        <xsl:choose>
                          <xsl:when test="PO_START_DATE and PO_START_DATE != ''">
                            <xsl:value-of select="PO_START_DATE"/>
                          </xsl:when>
                          <xsl:otherwise>
                            <xsl:value-of select="$NOT_SPECIFIED_OBJ"/>
                          </xsl:otherwise>
                        </xsl:choose>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.label">
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_EFFECTIVE_END_DATE'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.value">
                        <xsl:choose>
                          <xsl:when test="PO_END_DATE and PO_END_DATE != ''">
                            <xsl:value-of select="PO_END_DATE"/>
                          </xsl:when>
                          <xsl:otherwise>
                            <xsl:value-of select="$NOT_SPECIFIED_OBJ"/>
                          </xsl:otherwise>
                        </xsl:choose>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  </xsl:if>
                  <fo:table-row>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.label">
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_SHIP_TO'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.value">
                        <xsl:call-template name="ADDRESS_TEMPLATE">
                          <xsl:with-param name="ADDRESS_NAME_VAR" select="SHIP_ADDRESS_NAME"/>
                          <xsl:with-param name="TERRITORY_NAME_VAR" select="SHIP_COUNTRY_NAME"/>
                          <xsl:with-param  name="ADDRESS_1_VAR" select="SHIP_ADDRESS1"/>
                          <xsl:with-param  name="ADDRESS_2_VAR" select="SHIP_ADDRESS2"/>
                          <xsl:with-param  name="CITY_VAR" select="SHIP_CITY"/>
                          <xsl:with-param  name="STATE_VAR" select="SHIP_STATE"/>
                          <xsl:with-param  name="PROVINCE_OR_REGION_VAR" select="SHIP_PROVINCE_OR_REGION"/>
                          <xsl:with-param  name="ZIP_CODE_VAR" select="SHIP_ZIP_CODE"/>
                          <xsl:with-param  name="POSTAL_CODE_VAR" select="SHIP_POSTAL_CODE"/>
                          <xsl:with-param  name="COUNTRY_VAR" select="SHIP_COUNTRY"/>
                          <xsl:with-param  name="COUNTY_VAR" select="SHIP_COUNTY"/>
                        </xsl:call-template>
                      </fo:block>
                    </fo:table-cell>
                  
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.label">
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_PRN_BILL_TO_ADDRESS'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.value">
                        <xsl:call-template name="ADDRESS_TEMPLATE">
                          <xsl:with-param name="ADDRESS_NAME_VAR" select="BILL_ADDRESS_NAME"/>
                          <xsl:with-param name="TERRITORY_NAME_VAR" select="BILL_COUNTRY_NAME"/>
                          <xsl:with-param  name="ADDRESS_1_VAR" select="BILL_ADDRESS1"/>
                          <xsl:with-param  name="ADDRESS_2_VAR" select="BILL_ADDRESS2"/>
                          <xsl:with-param  name="CITY_VAR" select="BILL_CITY"/>
                          <xsl:with-param  name="STATE_VAR" select="BILL_STATE"/>
                          <xsl:with-param  name="PROVINCE_OR_REGION_VAR" select="BILL_PROVINCE_OR_REGION"/>
                          <xsl:with-param  name="ZIP_CODE_VAR" select="BILL_ZIP_CODE"/>
                          <xsl:with-param  name="POSTAL_CODE_VAR" select="BILL_POSTAL_CODE"/>
                          <xsl:with-param  name="COUNTRY_VAR" select="BILL_COUNTRY"/>
                          <xsl:with-param  name="COUNTY_VAR" select="BILL_COUNTY"/>
                        </xsl:call-template>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.label">
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PAYMENT_TERMS'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.value">
                        <xsl:value-of select="PAYMENT_TERMS"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.label">
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_CARRIER'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.value">
                        <xsl:value-of select="CARRIER"/>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.label">
                       <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_FOB'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.value">
                       <xsl:value-of select="FOB"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.label">
                       <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_FREIGHT_TERMS'][1]/MESSAGE_TEXT"/>
                     </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.value">
                       <xsl:value-of select="FREIGHT_TERMS"/>
                     </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <xsl:if test="ALLOW_OTHER_BID_CURRENCY_FLAG = 'N'">
                  <fo:table-row>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.label">
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTION_CURRENCY'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.value">
                        <xsl:value-of select="$CURRENCY_CODE_OBJ"/> (<xsl:value-of select="$CURRENCY_NAME_OBJ"/>)
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                       <fo:block xsl:use-attribute-sets="data.align.label">
                       <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PRICE_PREC'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block xsl:use-attribute-sets="data.align.value">
                        <xsl:choose>
                          <xsl:when test="NUMBER_PRICE_DECIMALS = '10000'">
                            <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_ANY'][1]/MESSAGE_TEXT"/>
                          </xsl:when>
                          <xsl:otherwise>
                            <xsl:value-of select="NUMBER_PRICE_DECIMALS"/>
                          </xsl:otherwise>
                        </xsl:choose>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  </xsl:if>
                  <!-- Total Agreement Amount is to be shown only for BPA/CPA -->
                  <xsl:if test = "CONTRACT_TYPE = 'BLANKET' or CONTRACT_TYPE = 'CONTRACT'">
                    <fo:table-row>
                      <fo:table-cell>
                        <fo:block xsl:use-attribute-sets="data.align.label">
                          <xsl:value-of select="$ROW_OBJ/AGREEMENT_AMOUNT_MSG"/>
                        </fo:block>
                      </fo:table-cell>
                      <fo:table-cell>
                        <fo:block xsl:use-attribute-sets="data.align.value">
                          <xsl:choose>
                            <xsl:when test="PO_AGREED_AMOUNT and PO_AGREED_AMOUNT != ''">
                              <xsl:value-of select="PO_AGREED_AMOUNT"/>
                            </xsl:when>
                            <xsl:otherwise>
                              <xsl:value-of select="$NOT_SPECIFIED_OBJ"/>
                            </xsl:otherwise>
                          </xsl:choose>
                        </fo:block>
                      </fo:table-cell>
                      <xsl:if test = "CONTRACT_TYPE = 'BLANKET'">
                       <fo:table-cell>
                        <fo:block xsl:use-attribute-sets="data.align.label">
                          <xsl:value-of select="$ROW_OBJ/MIN_RELEASE_AMT_MSG"/>
                         </fo:block>
                       </fo:table-cell>
                       <fo:table-cell>
                        <fo:block xsl:use-attribute-sets="data.align.value">
                          <xsl:choose>
                            <xsl:when test="PO_MIN_REL_AMOUNT and PO_MIN_REL_AMOUNT != ''">
                              <xsl:value-of select="PO_MIN_REL_AMOUNT"/>
                            </xsl:when>
                            <xsl:otherwise>
                              <xsl:value-of select="$NOT_SPECIFIED_OBJ"/>
                            </xsl:otherwise>
                         </xsl:choose>
                       </fo:block>
                      </fo:table-cell>
                     </xsl:if>
                    </fo:table-row>
                  </xsl:if>
                </fo:table-body>
              </fo:table>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
    </fo:block>
    <!-- Display Multi Currency Table Only if Multiple Currencies are allowed -->
    <xsl:if test="ALLOW_OTHER_BID_CURRENCY_FLAG = 'Y'">
    <xsl:apply-templates select="CURRENCY">
    </xsl:apply-templates>
    </xsl:if>
    <!-- End Of calling Multi Currency Table -->
    
    <!-- Start of Header Attributes Template Call -->
    <xsl:if test="$HEADER_ATTRIBUTES_EXIST_OBJ &gt; 0">
    <xsl:apply-templates select="GROUP_HEADER_ATTRIBUTES">
    </xsl:apply-templates>
    </xsl:if>
    <!-- End of Header Template Call -->
    
    <xsl:if test="$NOTE_TO_BIDDERS_COUNT_OBJ &gt; 0">
      <fo:block space-before.optimum="16pt" space-start.optimum="0.5in">
        <fo:table>
          <fo:table-column column-width="10%"/>
          <fo:table-column column-width="90%"/>
          <fo:table-body>
            <fo:table-row>
              <fo:table-cell>
                <fo:block>
                  <fo:block xsl:use-attribute-sets="note.label">
                    <!-- Note -->
                    <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_NOTE_TO_SUPPLIER'][1]/MESSAGE_TEXT"/>
                  </fo:block>
                </fo:block>
              </fo:table-cell>
              <fo:table-cell>
                <fo:block xsl:use-attribute-sets="note.value">
                  <xsl:value-of select="$ROW_OBJ/NOTE_TO_BIDDERS"/>
                </fo:block>
              </fo:table-cell>
            </fo:table-row>
          </fo:table-body>
        </fo:table>
      </fo:block>
    </xsl:if>
    
    <xsl:if test="$HEADER_ATTACHMENTS_EXIST_OBJ &gt; 0">
      <fo:block space-before.optimum="16pt">
        <fo:block xsl:use-attribute-sets="h5" id="secHeaderAttachments">
          <xsl:choose>
            <xsl:when test="$HEADER_ATTRIBUTES_EXIST_OBJ &gt; 0">
              1.4
            </xsl:when>
            <xsl:otherwise>
              1.3
            </xsl:otherwise>
          </xsl:choose>
          <!--Attachments-->
          <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_ATTACHMENTS'][1]/MESSAGE_TEXT"/>
        </fo:block>
      </fo:block>
      <fo:block>
        <xsl:call-template name="DISPLAY_HEADER_ATTACHMENTS"/>
      </fo:block>
    </xsl:if>
      
      <xsl:call-template name="RESPONSE_RULES"/>
      <!-- End Of Terms Heading -->
   </xsl:template>
  
  <!-- Currency Table -->  
  <xsl:template match="CURRENCY">
    <fo:block space-before.optimum="15pt">
      <fo:table>
        <fo:table-column column-width="6%"/>
        <fo:table-column column-width="94%"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block xsl:use-attribute-sets="data.label">
                <!-- Eligible Response Currencies -->
                <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_ELIGIBLE_RESP_CURR'][1]/MESSAGE_TEXT"/>
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block xsl:use-attribute-sets="data.note">
                <!-- Check the one currency in which you will enter your response. -->
                <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_CHECK_RESP_CURR'][1]/MESSAGE_TEXT"/>
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell>
            </fo:table-cell>
            <fo:table-cell>
              <fo:table>
                <fo:table-column column-width="5%"/>
                <xsl:choose>
                  <xsl:when test="$PUBLISH_RATES_TO_BIDDERS_FLAG_OBJ">
                    <fo:table-column column-width="15%"/>
                    <fo:table-column column-width="30%"/>
                    <fo:table-column column-width="30%"/>
                    <fo:table-column column-width="20%"/>
                  </xsl:when>
                  <xsl:otherwise>
                    <fo:table-column column-width="30%"/>
                    <fo:table-column column-width="35%"/>
                    <fo:table-column column-width="30%"/>
                  </xsl:otherwise>
                </xsl:choose>
                <fo:table-header>
                  <fo:table-row>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                    </fo:table-cell>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                     <fo:block xsl:use-attribute-sets="table.cell.heading">
                       <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTION_CURRENCY'][1]/MESSAGE_TEXT"/>
                     </fo:block>
                    </fo:table-cell>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                     <fo:block xsl:use-attribute-sets="table.cell.heading">
                       <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_CURRENCY_DESCRIPTION'][1]/MESSAGE_TEXT"/>
                     </fo:block>
                    </fo:table-cell>
                    <xsl:if test="$PUBLISH_RATES_TO_BIDDERS_FLAG_OBJ">
                      <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                        <fo:block xsl:use-attribute-sets="table.cell.heading">
                          <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_EXCHANGE_RATE'][1]/MESSAGE_TEXT"/>
                        </fo:block>
                      </fo:table-cell>
                    </xsl:if>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                      <fo:block xsl:use-attribute-sets="table.cell.heading">
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PRICE_PREC'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                </fo:table-header>
                <fo:table-body>
                  <fo:table-row>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                      <fo:block space-start.optimum="4pt" space-before.optimum="2pt">
                        <xsl:call-template name="unCheckedBox"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                      <fo:block xsl:use-attribute-sets="table.cell.data"><xsl:value-of select="$CURRENCY_CODE_OBJ"/></fo:block>
                    </fo:table-cell>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                      <fo:block xsl:use-attribute-sets="table.cell.data"><xsl:value-of select="$CURRENCY_NAME_OBJ"/></fo:block>
                    </fo:table-cell>
                    <xsl:if test="$PUBLISH_RATES_TO_BIDDERS_FLAG_OBJ">
                      <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                      </fo:table-cell>
                    </xsl:if>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                      <fo:block xsl:use-attribute-sets="table.cell.data">
                        <xsl:choose>
                          <xsl:when test="$ROW_OBJ/NUMBER_PRICE_DECIMALS = '10000'">
                            <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_ANY'][1]/MESSAGE_TEXT"/>
                          </xsl:when>
                          <xsl:otherwise>
                            <xsl:value-of select="$ROW_OBJ/NUMBER_PRICE_DECIMALS"/>
                          </xsl:otherwise>
                        </xsl:choose>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>

                  <xsl:for-each select="CURRENCY_ROW">
                  <fo:table-row>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                      <fo:block space-start.optimum="4pt" space-before.optimum="2pt">
                        <xsl:call-template name="unCheckedBox"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                      <fo:block xsl:use-attribute-sets="table.cell.data"><xsl:value-of select="BID_CURRENCY_CODE"/></fo:block>
                    </fo:table-cell>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                      <fo:block xsl:use-attribute-sets="table.cell.data"><xsl:value-of select="BID_CURRENCY_NAME"/></fo:block>
                    </fo:table-cell>
                    <xsl:if test="$PUBLISH_RATES_TO_BIDDERS_FLAG_OBJ">
                      <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                        <fo:block xsl:use-attribute-sets="table.cell.data"> <xsl:value-of select="DISPLAY_RATE"/> </fo:block>
                      </fo:table-cell>
                    </xsl:if>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                      <fo:block xsl:use-attribute-sets="table.cell.data">
                        <xsl:choose>
                          <xsl:when test="NUMBER_PRICE_DECIMALS = '10000'">
                            <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_ANY'][1]/MESSAGE_TEXT"/>
                          </xsl:when>
                          <xsl:otherwise>
                            <xsl:value-of select="NUMBER_PRICE_DECIMALS"/>
                          </xsl:otherwise>
                        </xsl:choose>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  </xsl:for-each>
                </fo:table-body>
              </fo:table>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
    </fo:block>
  </xsl:template>
  <!-- End Of Currency Table -->
    

  <!-- Start of Header Attributes Heading -->
  <xsl:template match="GROUP_HEADER_ATTRIBUTES">
    <fo:block space-before.optimum="16pt" id="secHeaderAttributes">
      <fo:table>
        <fo:table-column column-width="100%"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell>
              <fo:block>
                <fo:block xsl:use-attribute-sets="h5">1.3 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_HEADER_ATTRIBUTES'][1]/MESSAGE_TEXT"/></fo:block>
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell>
              <fo:table>
                <fo:table-column column-width="100%"/>
                <fo:table-body>
                  <fo:table-row>
                    <fo:table-cell>

                      <xsl:for-each select="$ROW_OBJ/GROUP_HEADER_ATTRIBUTES/GROUP_HEADER_ATTRIBUTES_ROW">
                        <xsl:if test="count(HEADER_ATTRIBUTES_DETAILS/HEADER_ATTRIBUTES_DETAILS_ROW[1]) &gt; 0">
                        <fo:table>
                        <fo:table-column column-width="100%"/>
                        <fo:table-header>
                          <fo:table-row>
                            <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                               <fo:block xsl:use-attribute-sets="data.align.value"><xsl:value-of select="MEANING"/></fo:block>
                               <xsl:choose>
                                 <xsl:when test="$DISPLAY_HEADER_WEIGHT_OBJ and $DISPLAY_HEADER_SCORE_OBJ">
                                   <fo:block xsl:use-attribute-sets="table.cell.heading">
                                     <!--Group Weight -->
                                     <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_GROUP_WEIGHT'][1]/MESSAGE_TEXT"/>
                                     <fo:inline xsl:use-attribute-sets="data.align.value">
                                       <xsl:value-of select="WEIGHT"/>
                                     </fo:inline>
                                   </fo:block>
                                 </xsl:when>
                                 <xsl:when test="not($DISPLAY_HEADER_WEIGHT_OBJ) and $DISPLAY_HEADER_SCORE_OBJ">
                                   <fo:block xsl:use-attribute-sets="table.cell.heading">
                                     <!--Maximum Score -->
                                     <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_MAX_SCORE'][1]/MESSAGE_TEXT"/>
                                     <fo:inline xsl:use-attribute-sets="data.align.value">
                                       <xsl:value-of select="SCORE"/>
                                     </fo:inline>
                                   </fo:block>
                                 </xsl:when>
                               </xsl:choose>
                            </fo:table-cell>
                          </fo:table-row>
                        </fo:table-header>
                        <fo:table-body>
                        <xsl:for-each select="HEADER_ATTRIBUTES_DETAILS/HEADER_ATTRIBUTES_DETAILS_ROW">
                          <fo:table-row>
                            <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                              <xsl:if test="$DISPLAY_HEADER_WEIGHT_OBJ and $DISPLAY_HEADER_SCORE_OBJ and DISPLAY_ONLY_FLAG != 'Y'">
                                <fo:block xsl:use-attribute-sets="table.cell.data">
                                  <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_WEIGHT'][1]/MESSAGE_TEXT"/>
                                  <fo:inline xsl:use-attribute-sets="data.align.value">
                                    <xsl:value-of select="WEIGHT"/>
                                  </fo:inline>
                                </fo:block>
                              </xsl:if>
                              <xsl:if test="not($DISPLAY_HEADER_WEIGHT_OBJ) and $DISPLAY_HEADER_SCORE_OBJ and DISPLAY_ONLY_FLAG != 'Y'">
                                <fo:block xsl:use-attribute-sets="table.cell.data">
                                  <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_MAX_SCORE'][1]/MESSAGE_TEXT"/>  
                                  <fo:inline xsl:use-attribute-sets="data.align.value">
                                    <xsl:choose>
                                      <xsl:when test="ATTR_MAX_SCORE">
                                        <xsl:value-of select="ATTR_MAX_SCORE"/>
                                      </xsl:when>
                                      <xsl:otherwise>
                                        0
                                      </xsl:otherwise>
                                    </xsl:choose>
                                  </fo:inline>
                                </fo:block>
                              </xsl:if>
                              <fo:block xsl:use-attribute-sets="table.cell.data"><xsl:value-of select="ATTRIBUTE_NAME"/></fo:block>
                              <xsl:if test="VALUE and VALUE!='' and DISPLAY_TARGET_FLAG and DISPLAY_TARGET_FLAG = 'Y'">
                                <fo:block xsl:use-attribute-sets="table.cell.data">
                                  <!--Target Value-->
                                  <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_TARGET_VALUE'][1]/MESSAGE_TEXT"/><xsl:value-of select="' '"/>
                                  <xsl:value-of select="VALUE"/>
                                </fo:block>
                              </xsl:if>

                                <xsl:choose>
                                  <xsl:when test = "DISPLAY_ONLY_FLAG = 'Y'">
                                    <fo:block xsl:use-attribute-sets="table.cell.note">
                                      <!--This requires no response.-->
                                      <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_REQUIRES_NO_RESP'][1]/MESSAGE_TEXT"/>
                                    </fo:block>
                                  </xsl:when>
                                  <xsl:otherwise>

                                    <xsl:if test="MANDATORY_FLAG != 'Y'">
                                      <fo:block xsl:use-attribute-sets="table.cell.note">
                                        <!-- It is optional for you to provide a response.-->
                                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_OPTIONAL_RESP'][1]/MESSAGE_TEXT"/>
                                      </fo:block>
                                    </xsl:if>

                                    <xsl:choose>
                                      <xsl:when test="DATATYPE = 'NUM'">
                                        <fo:block xsl:use-attribute-sets="table.cell.note">
                                          <!-- The response must be numeric value -->
                                          <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_RESP_MUST_BE_NUMERIC'][1]/MESSAGE_TEXT"/>
                                        </fo:block>
                                      </xsl:when>
                                      <xsl:when test="DATATYPE = 'DAT'">
                                        <fo:block xsl:use-attribute-sets="table.cell.note">
                                          <!-- The response must be a date value. -->
                                          <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_RESP_MUST_BE_DATE'][1]/MESSAGE_TEXT"/>
                                        </fo:block>
                                      </xsl:when>
                                      <xsl:when test="DATATYPE = 'URL'">
                                        <fo:block xsl:use-attribute-sets="table.cell.note">
                                          <!-- The response must be an URL value. -->
                                          <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_RESP_MUST_BE_URL'][1]/MESSAGE_TEXT"/>
                                        </fo:block>
                                      </xsl:when>
                                      <xsl:otherwise>
                                      </xsl:otherwise>
                                    </xsl:choose>

                                  </xsl:otherwise>
                                </xsl:choose>
                                <xsl:if test = "DISPLAY_ONLY_FLAG != 'Y'">
                                  <fo:block xsl:use-attribute-sets="blank.row"/>
                                  <fo:block xsl:use-attribute-sets="blank.row"/>
                                  <fo:block xsl:use-attribute-sets="blank.row"/>
                                  <fo:block xsl:use-attribute-sets="blank.row"/>
                                  <fo:block xsl:use-attribute-sets="blank.row"/>
                                  <fo:block xsl:use-attribute-sets="blank.row"/>
                                </xsl:if>
                             </fo:table-cell>
                           </fo:table-row>
                          </xsl:for-each>
                          <fo:table-row>
                            <fo:table-cell>
                              <fo:block space-before.optimum="16pt"></fo:block>
                            </fo:table-cell>
                          </fo:table-row>
                        </fo:table-body>
                        </fo:table>
                        </xsl:if>
                      </xsl:for-each>

                    </fo:table-cell>
                  </fo:table-row>
                </fo:table-body>
              </fo:table>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
    </fo:block>
  </xsl:template>
  <!-- End of Header Attributes Heading -->
  
  
  <!-- Start of Response Rules -->
  <xsl:template name="RESPONSE_RULES">
    <fo:block space-before.optimum="16pt">
      <fo:table>
        <fo:table-column column-width="100%"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell>
              <fo:block id="secResponseRules">
                <fo:block xsl:use-attribute-sets="h5">
                  <xsl:if test="$HEADER_ATTRIBUTES_EXIST_OBJ &gt; 0 and $HEADER_ATTACHMENTS_EXIST_OBJ &gt; 0">
                    1.5
                  </xsl:if>
                  <xsl:if test="(($HEADER_ATTRIBUTES_EXIST_OBJ &gt; 0 and $HEADER_ATTACHMENTS_EXIST_OBJ = 0) or ($HEADER_ATTRIBUTES_EXIST_OBJ = 0 and $HEADER_ATTACHMENTS_EXIST_OBJ &gt; 0))">
                    1.4
                  </xsl:if>
                  <xsl:if test="$HEADER_ATTRIBUTES_EXIST_OBJ = 0 and $HEADER_ATTACHMENTS_EXIST_OBJ = 0">
                    1.3
                  </xsl:if>
                  <!--Response Rules-->
                  <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_RESPONSE_RULES'][1]/MESSAGE_TEXT"/>
                </fo:block>
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell>
              <fo:table>
                <fo:table-column column-width="6%"/>
                <fo:table-column column-width="94%"/>
                <fo:table-body>
                  <fo:table-row>
                    <fo:table-cell>
                      <fo:block></fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:table>
                        <fo:table-column column-width="5%"/>
                        <fo:table-column column-width="95%"/>
                        <fo:table-body>
                         <fo:table-row>
                           <fo:table-cell number-columns-spanned="2">
                             <fo:block xsl:use-attribute-sets="data.note" space-after.optimum="5pt">
                               <!-- These rules are for your reference. Please do not check any checkboxes. -->
                               <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_RULES_FOR_REFERENCE'][1]/MESSAGE_TEXT"/>
                             </fo:block>
                            </fo:table-cell>
                          </fo:table-row>
                          <xsl:if test="$BID_LIST_TYPE_OBJ and $BID_LIST_TYPE_OBJ/DISPLAY_FLAG = 'Y' and $BID_LIST_TYPE_OBJ/VALIDITY_FLAG = 'Y'">                        
                          <fo:table-row>
                            <fo:table-cell space-start.optimum="9pt" space-before.optimum="2pt">
                              <xsl:choose>
                                <xsl:when test="$ROW_OBJ/BID_LIST_TYPE = 'PRIVATE_BID_LIST'">
                                  <xsl:call-template name="checkedBox"/>
                                </xsl:when>
                                <xsl:otherwise>
                                  <xsl:call-template name="unCheckedBox"/>
                                </xsl:otherwise>
                              </xsl:choose>
                            </fo:table-cell>
                            <fo:table-cell>
                              <fo:block xsl:use-attribute-sets="data.value">
                                <!--Negotiation is restricted to invited suppliers-->
                                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_NR_CONTROL_MSG_1'][1]/MESSAGE_TEXT"/>
                              </fo:block>
                            </fo:table-cell>
                          </fo:table-row>
                          </xsl:if>
                          <xsl:if test="$SHOW_BIDDER_NOTES_OBJ and $SHOW_BIDDER_NOTES_OBJ/DISPLAY_FLAG = 'Y' and $SHOW_BIDDER_NOTES_OBJ/VALIDITY_FLAG = 'Y' and $ROW_OBJ/BID_VISIBILITY_CODE != 'SEALED_BIDDING'">
                          <fo:table-row>
                            <fo:table-cell space-start.optimum="9pt" space-before.optimum="2pt">
                              <xsl:choose>
                                <xsl:when test="$ROW_OBJ/SHOW_BIDDER_NOTES = 'Y'">
                                  <xsl:call-template name="checkedBox"/>
                                </xsl:when>
                                <xsl:otherwise>
                                  <xsl:call-template name="unCheckedBox"/>
                                </xsl:otherwise>
                              </xsl:choose>
                            </fo:table-cell>
                            <fo:table-cell>
                              <fo:block xsl:use-attribute-sets="data.value">
                                  <!--Suppliers are allowed to view other suppliers' notes and attachments-->
                                  <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_NR_CONTROL_MSG_2'][1]/MESSAGE_TEXT"/>
                              </fo:block>
                            </fo:table-cell>
                          </fo:table-row>
                          </xsl:if>
                          <xsl:if test="$ALLOW_MULTIPLE_ROUNDS_OBJ and $ALLOW_MULTIPLE_ROUNDS_OBJ/DISPLAY_FLAG = 'Y' and $ALLOW_MULTIPLE_ROUNDS_OBJ/VALIDITY_FLAG = 'Y'">
                          <fo:table-row>
                            <fo:table-cell space-start.optimum="9pt" space-before.optimum="2pt">
                              <xsl:choose>
                                <xsl:when test="$ROW_OBJ/MULTIPLE_ROUNDS_FLAG = 'Y'">
                                  <xsl:call-template name="checkedBox"/>
                                </xsl:when>
                                <xsl:otherwise>
                                  <xsl:call-template name="unCheckedBox"/>
                                </xsl:otherwise>
                              </xsl:choose>
                            </fo:table-cell>
                            <fo:table-cell>
                              <fo:block xsl:use-attribute-sets="data.value">
                                <!--Buyer may create multiple rounds of negotiations-->
                                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_NR_CONTROL_MSG_9'][1]/MESSAGE_TEXT"/>
                              </fo:block>
                            </fo:table-cell>
                          </fo:table-row>
                          </xsl:if>
                          <xsl:if test="$BID_SCOPE_OBJ and $BID_SCOPE_OBJ/DISPLAY_FLAG = 'Y' and $BID_SCOPE_OBJ/VALIDITY_FLAG = 'Y' and $HAS_ITEMS_FLAG_OBJ and $HAS_ITEMS_FLAG_OBJ = 'Y'">
                          <fo:table-row>
                            <fo:table-cell space-start.optimum="9pt" space-before.optimum="2pt">
                              <xsl:choose>
                                <xsl:when test="$ROW_OBJ/BID_SCOPE_CODE = 'LINE_LEVEL_BIDDING'">
                                  <xsl:call-template name="checkedBox"/>
                                </xsl:when>
                                <xsl:otherwise>
                                  <xsl:call-template name="unCheckedBox"/>
                                </xsl:otherwise>
                              </xsl:choose>
                            </fo:table-cell>
                            <fo:table-cell>
                              <fo:block xsl:use-attribute-sets="data.value">
                                <!--Suppliers are allowed to respond to selected lines -->
                                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_NR_CONTROL_MSG_3'][1]/MESSAGE_TEXT"/>
                              </fo:block>
                            </fo:table-cell>
                          </fo:table-row>
                          </xsl:if>
                          <xsl:if test="$BID_QUANTITY_SCOPE_OBJ and $BID_QUANTITY_SCOPE_OBJ/DISPLAY_FLAG = 'Y' and $BID_QUANTITY_SCOPE_OBJ/VALIDITY_FLAG = 'Y' and $ROW_OBJ/CONTRACT_TYPE != 'BLANKET' and $ROW_OBJ/CONTRACT_TYPE != 'CONTRACT'">
                          <fo:table-row>
                            <fo:table-cell space-start.optimum="9pt" space-before.optimum="2pt">
                              <xsl:choose>
                                <xsl:when test="$ROW_OBJ/FULL_QUANTITY_BID_CODE = 'FULL_QTY_BIDS_REQD'">
                                  <xsl:call-template name="checkedBox"/>
                                </xsl:when>
                                <xsl:otherwise>
                                  <xsl:call-template name="unCheckedBox"/>
                                </xsl:otherwise>
                              </xsl:choose>
                            </fo:table-cell>
                            <fo:table-cell>
                              <fo:block xsl:use-attribute-sets="data.value">
                                <!--Suppliers are required to respond with full quantity on each line-->
                                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_NR_CONTROL_MSG_4'][1]/MESSAGE_TEXT"/>
                              </fo:block>
                            </fo:table-cell>
                          </fo:table-row>
                          </xsl:if>
                          <xsl:if test="$BID_FREQUENCY_OBJ and $BID_FREQUENCY_OBJ/DISPLAY_FLAG = 'Y' and $BID_FREQUENCY_OBJ/VALIDITY_FLAG = 'Y'">
                          <fo:table-row>
                            <fo:table-cell space-start.optimum="9pt" space-before.optimum="2pt">
                              <xsl:choose>
                                <xsl:when test="$ROW_OBJ/BID_FREQUENCY_CODE = 'MULTIPLE_BIDS_ALLOWED'">
                                  <xsl:call-template name="checkedBox"/>
                                </xsl:when>
                                <xsl:otherwise>
                                  <xsl:call-template name="unCheckedBox"/>
                                </xsl:otherwise>
                              </xsl:choose>
                            </fo:table-cell>
                            <fo:table-cell>
                              <fo:block xsl:use-attribute-sets="data.value">
                                <!--Allow multiple responses-->
                                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_NR_CONTROL_MSG_5'][1]/MESSAGE_TEXT"/>
                              </fo:block>
                            </fo:table-cell>
                          </fo:table-row>
                          </xsl:if>
                          <xsl:if test="$MIN_BID_DECREMENT_OBJ and $MIN_BID_DECREMENT_OBJ/DISPLAY_FLAG = 'Y' and $MIN_BID_DECREMENT_OBJ/VALIDITY_FLAG = 'Y' and $ROW_OBJ/BID_RANKING != 'MULTI_ATTRIBUTE_SCORING'and $ROW_OBJ/BID_FREQUENCY_CODE = 'MULTIPLE_BIDS_ALLOWED' and $HAS_ITEMS_FLAG_OBJ and $HAS_ITEMS_FLAG_OBJ = 'Y'">
                          <fo:table-row>
                            <fo:table-cell space-start.optimum="9pt" space-before.optimum="2pt">
                              <xsl:choose>
                                <xsl:when test="$ROW_OBJ/PRICE_DRIVEN_AUCTION_FLAG = 'Y'">
                                  <xsl:call-template name="checkedBox"/>
                                </xsl:when>
                                <xsl:otherwise>
                                  <xsl:call-template name="unCheckedBox"/>
                                </xsl:otherwise>
                              </xsl:choose>
                            </fo:table-cell>
                            <fo:table-cell>
                              <fo:block xsl:use-attribute-sets="data.value">
                                <!--Suppliers are required to lower the line price when submitting a revised response -->
                                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_NR_CONTROL_MSG_11'][1]/MESSAGE_TEXT"/>
                              </fo:block>
                            </fo:table-cell>
                          </fo:table-row>
                          </xsl:if>
                          <xsl:if test="$MANUAL_CLOSE_OBJ and $MANUAL_CLOSE_OBJ/DISPLAY_FLAG = 'Y' and $MANUAL_CLOSE_OBJ/VALIDITY_FLAG = 'Y'">
                          <fo:table-row>
                            <fo:table-cell space-start.optimum="9pt" space-before.optimum="2pt">
                              <xsl:choose>
                                <xsl:when test="$ROW_OBJ/MANUAL_CLOSE_FLAG = 'Y'">
                                  <xsl:call-template name="checkedBox"/>
                                </xsl:when>
                                <xsl:otherwise>
                                  <xsl:call-template name="unCheckedBox"/>
                                </xsl:otherwise>
                              </xsl:choose>
                            </fo:table-cell>
                            <fo:table-cell>
                              <fo:block xsl:use-attribute-sets="data.value">
                                <!--Buyer may close the negotiation before the Close Date -->
                                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_NR_CONTROL_MSG_7'][1]/MESSAGE_TEXT"/>
                              </fo:block>
                            </fo:table-cell>
                          </fo:table-row>
                          </xsl:if>
                          <xsl:if test="$MANUAL_EXTEND_OBJ and $MANUAL_EXTEND_OBJ/DISPLAY_FLAG = 'Y' and $MANUAL_EXTEND_OBJ/VALIDITY_FLAG = 'Y'">
                          <fo:table-row>
                            <fo:table-cell space-start.optimum="9pt" space-before.optimum="2pt">
                              <xsl:choose>
                                <xsl:when test="$ROW_OBJ/MANUAL_EXTEND_FLAG = 'Y'">
                                  <xsl:call-template name="checkedBox"/>
                                </xsl:when>
                                <xsl:otherwise>
                                  <xsl:call-template name="unCheckedBox"/>
                                </xsl:otherwise>
                              </xsl:choose>
                            </fo:table-cell>
                            <fo:table-cell>
                              <fo:block xsl:use-attribute-sets="data.value">
                                <!--Buyer may manually extend the negotiation while it is open -->
                                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_PRN_ALLOW_MANUAL_EXT'][1]/MESSAGE_TEXT"/>
                              </fo:block>
                            </fo:table-cell>
                          </fo:table-row>
                          </xsl:if>
                        </fo:table-body>
                      </fo:table>
                    </fo:table-cell>
                  </fo:table-row>
                </fo:table-body>
              </fo:table>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
    </fo:block>
  </xsl:template>
  <!-- End of Response Rules -->

  <!-- Start of Lines Printing -->
  <xsl:template match="LINES">
    <fo:block id="secPriceSchedule">
      <fo:table>
        <fo:table-column column-width="6%"/>
        <fo:table-column column-width="94%"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell number-columns-spanned="2">
              <fo:block>
                <fo:block xsl:use-attribute-sets="h5">
                  <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PRN_PRICE_SCHEDULE'][1]/MESSAGE_TEXT"/>
                </fo:block>
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell number-columns-spanned="2">
              <fo:block space-before.optimum="10pt" id="secLineInformation">
                <fo:block xsl:use-attribute-sets="h5">
                       <!-- Lines Information -->
                  2.1 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PRN_LINE_INFO'][1]/MESSAGE_TEXT"/>
                </fo:block>
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell number-columns-spanned="2">
              <fo:table>
                <xsl:choose>
                  <xsl:when test="$ROW_OBJ/CONTRACT_TYPE = 'BLANKET' or  $ROW_OBJ/CONTRACT_TYPE = 'CONTRACT'">
                    <fo:table-column column-width="5%"/>
                    <fo:table-column column-width="15%"/>
                    <fo:table-column column-width="30%"/>
                    <fo:table-column column-width="12.5%"/><!--Number of Units-->
                    <fo:table-column column-width="12.5%"/><!--UOM-->
                    <fo:table-column column-width="12.5%"/><!--Unit Price-->
                    <fo:table-column column-width="12.5%"/><!--Amount-->
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:choose>
                      <xsl:when test="$ROW_OBJ/FULL_QUANTITY_BID_CODE = 'FULL_QTY_BIDS_REQD'">
                        <fo:table-column column-width="5%"/>
                        <fo:table-column column-width="15%"/>
                        <fo:table-column column-width="30%"/>
                        <fo:table-column column-width="10%"/><!--Number of Units-->
                        <fo:table-column column-width="10%"/><!--UOM-->
                        <fo:table-column column-width="10%"/><!--Unit Price-->
                        <fo:table-column column-width="10%"/><!--Amount-->
                        <fo:table-column column-width="10%"/><!--Promise Date-->
                      </xsl:when>
                      <xsl:otherwise>
                        <fo:table-column column-width="5%"/>
                        <fo:table-column column-width="10%"/>
                        <fo:table-column column-width="25%"/>
                        <fo:table-column column-width="10%"/><!--Number of Units-->
                        <fo:table-column column-width="7%"/><!--UOM-->
                        <fo:table-column column-width="10%"/><!--Number of Units-->
                        <fo:table-column column-width="10%"/><!--Unit Price-->
                        <fo:table-column column-width="10%"/><!--Amount-->
                        <fo:table-column column-width="13%"/><!--Promise Date-->
                      </xsl:otherwise>
                    </xsl:choose>
                  </xsl:otherwise>
                </xsl:choose>
                <fo:table-header>
                  <fo:table-row>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                      <fo:block xsl:use-attribute-sets="table.cell.heading">
                        <!--Line No.-->
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_LINE_NO'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                      <fo:block xsl:use-attribute-sets="table.cell.heading">
                        <xsl:choose>
                          <xsl:when test="$ROW_OBJ/GLOBAL_AGREEMENT_FLAG and $ROW_OBJ/GLOBAL_AGREEMENT_FLAG='Y' and ($ROW_OBJ/CONTRACT_TYPE = 'BLANKET' or $ROW_OBJ/CONTRACT_TYPE = 'CONTRACT' ) and $ROW_OBJ/IS_SERVICES_ENABLED and $ROW_OBJ/IS_SERVICES_ENABLED = 'Y'">
                            <!--Item, Rev / Job-->
                            <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_ITEM_REV_JOB'][1]/MESSAGE_TEXT"/>
                          </xsl:when>
                          <xsl:otherwise>
                            <!--Item, Rev-->
                            <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_ITEM_REV'][1]/MESSAGE_TEXT"/>
                          </xsl:otherwise>
                        </xsl:choose>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                      <fo:block xsl:use-attribute-sets="table.cell.heading">
                        <!--Description-->
                        <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_ITEM_DESC'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                      <fo:block xsl:use-attribute-sets="table.cell.heading">
                        <!--Number of Units-->
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_NUMBER_OF_UNITS'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                      <fo:block xsl:use-attribute-sets="table.cell.heading">
                        <!--UOM-->
                        <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_UOM'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <xsl:if test="$ROW_OBJ/FULL_QUANTITY_BID_CODE != 'FULL_QTY_BIDS_REQD' and $ROW_OBJ/CONTRACT_TYPE != 'BLANKET' and $ROW_OBJ/CONTRACT_TYPE != 'CONTRACT'">
                      <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                        <fo:block xsl:use-attribute-sets="table.cell.heading">
                          <!--Number of Units-->
                          <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_NUMBER_OF_UNITS'][1]/MESSAGE_TEXT"/>
                        </fo:block>
                      </fo:table-cell>
                      </xsl:if>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                      <fo:block xsl:use-attribute-sets="table.cell.heading">
                        <!--Unit Price-->
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_UNIT_PRICE'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                      <fo:block xsl:use-attribute-sets="table.cell.heading">
                        <!--Amount-->
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_INTEL_AMOUNT'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <xsl:if test="$ROW_OBJ/INTERNAL_NAME = 'REQUEST_FOR_INFORMATION' or $ROW_OBJ/CONTRACT_TYPE = 'STANDARD'">
                      <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                        <fo:block xsl:use-attribute-sets="table.cell.heading">
                          <!--Promise Date-->
                          <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTION_PROMISE_DATE'][1]/MESSAGE_TEXT"/>
                        </fo:block>
                      </fo:table-cell>
                    </xsl:if>
                  </fo:table-row>
                </fo:table-header>
                <fo:table-body>
                  <xsl:for-each select="LINES_ROW">
                    <fo:table-row>
                      <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                        <fo:block xsl:use-attribute-sets="table.cell.data"><xsl:value-of select="DOCUMENT_DISP_LINE_NUMBER"/></fo:block>
                      </fo:table-cell>
                      <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                        <fo:block xsl:use-attribute-sets="table.cell.data"><xsl:value-of select="ITEM"/></fo:block>
                      </fo:table-cell>
                      <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                        <fo:block xsl:use-attribute-sets="table.cell.data"><xsl:value-of select="ITEM_DESCRIPTION"/></fo:block>
                      </fo:table-cell>
                      <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                        <fo:block xsl:use-attribute-sets="table.cell.data"><xsl:value-of select="QUANTITY"/></fo:block>
                      </fo:table-cell>
                      <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                        <fo:block xsl:use-attribute-sets="table.cell.data"><xsl:value-of select="UNIT_OF_MEASURE_TL"/></fo:block>
                      </fo:table-cell>
                      <xsl:if test="$ROW_OBJ/FULL_QUANTITY_BID_CODE != 'FULL_QTY_BIDS_REQD' and $ROW_OBJ/CONTRACT_TYPE != 'BLANKET'  and $ROW_OBJ/CONTRACT_TYPE != 'CONTRACT'">
                        <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                          <fo:block xsl:use-attribute-sets="table.cell.note">
                            <xsl:choose>
                              <xsl:when test="PURCHASE_BASIS and PURCHASE_BASIS = 'SERVICES'">
                                <!--Leave blank-->
                                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_LEAVE_BLANK'][1]/MESSAGE_TEXT"/>
                              </xsl:when>
                              <xsl:otherwise>
                                <xsl:if test="IS_QUANTITY_SCORED and IS_QUANTITY_SCORED='Y'">
                                  <!--Enter in the Attributes Table below-->
                                  <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_ENTER_IN_ATTR_TABLE'][1]/MESSAGE_TEXT"/>
                                </xsl:if>
                              </xsl:otherwise>
                            </xsl:choose>
                          </fo:block>
                        </fo:table-cell>
                      </xsl:if>
                      <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                        <fo:block><!-- User will input Unit Price here --></fo:block>
                      </fo:table-cell>
                      <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                        <fo:block><!-- User will input Amount here --></fo:block>
                      </fo:table-cell>
                      <xsl:if test="$ROW_OBJ/INTERNAL_NAME = 'REQUEST_FOR_INFORMATION' or $ROW_OBJ/CONTRACT_TYPE = 'STANDARD'">
                        <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                          <fo:block xsl:use-attribute-sets="table.cell.note">
                            <xsl:if test="IS_NEED_BY_DATE_SCORED and IS_NEED_BY_DATE_SCORED='Y'">
                              <!--Enter in the Attributes Table below-->
                              <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_ENTER_IN_ATTR_TABLE'][1]/MESSAGE_TEXT"/>
                            </xsl:if>
                          </fo:block>
                        </fo:table-cell>
                      </xsl:if>
                    </fo:table-row>
                  </xsl:for-each>
                </fo:table-body>
              </fo:table>
            </fo:table-cell>
          </fo:table-row>
          
          <!-- Line Details -->
          <fo:table-row>
            <fo:table-cell number-columns-spanned="2">
              <fo:block space-before.optimum="15pt" id="secLineDetails">
                <fo:block xsl:use-attribute-sets="h5"> 2.2 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_ITEM_DETAILS'][1]/MESSAGE_TEXT"/></fo:block>
              </fo:block>
            </fo:table-cell>
          </fo:table-row>

          <xsl:for-each select="LINES_ROW[GROUP_TYPE != 'GROUP']">

          <xsl:variable name="LINE_NUMBER_OBJ" select="(LINE_NUMBER)"/>
          
          <xsl:variable name="RATE_BASED_TEMP_LABOR_OBJ" select="($ROW_OBJ/CONTRACT_TYPE = 'BLANKET' or $ROW_OBJ/CONTRACT_TYPE = 'CONTRACT') and PURCHASE_BASIS and PURCHASE_BASIS = 'TEMP LABOR' and ORDER_TYPE_LOOKUP_CODE and ORDER_TYPE_LOOKUP_CODE = 'RATE'"/>
          
          <xsl:variable name="FIXED_PRICE_TEMP_LABOR_OBJ" select="($ROW_OBJ/CONTRACT_TYPE = 'BLANKET' or $ROW_OBJ/CONTRACT_TYPE = 'CONTRACT') and PURCHASE_BASIS and PURCHASE_BASIS = 'TEMP LABOR' and ORDER_TYPE_LOOKUP_CODE and ORDER_TYPE_LOOKUP_CODE = 'FIXED PRICE'"/>
          
          <fo:table-row>
            <fo:table-cell number-columns-spanned="2">
              <fo:block space-before.optimum="2pt"/>
              <fo:block xsl:use-attribute-sets="h5" id="{generate-id()}">
                <!--Line No.-->
                2.2.<xsl:number value="position()" format="1"/><xsl:value-of select="' '"/><xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_LINE_NO'][1]/MESSAGE_TEXT"/><xsl:value-of select="' '"/><xsl:value-of select="DOCUMENT_DISP_LINE_NUMBER"/><xsl:text> </xsl:text><xsl:value-of select="ITEM_DESCRIPTION"/>
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          
          <fo:table-row>
            <fo:table-cell>
            </fo:table-cell>
            <fo:table-cell>
            
               <fo:table>
                <fo:table-column column-width="100%"/>
                <fo:table-body>
                  <xsl:if test="GROUP_TYPE='LOT_LINE'">
                    <fo:table-row>
                      <fo:table-cell>
                        <fo:block xsl:use-attribute-sets="data.note" space-after.optimum="5pt">
                          <!-- It is optional for you to bid on this line.-->
                          <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_LINE_BID_OPTIONAL'][1]/MESSAGE_TEXT"/>
                        </fo:block>
                      </fo:table-cell>
                    </fo:table-row>
                  </xsl:if>

                  <fo:table-row>
                    <fo:table-cell>
                      <fo:block keep-together.within-page="always">

                        <fo:table>
                        <fo:table-column xsl:use-attribute-sets="table.cell.one"/>
                        <fo:table-column xsl:use-attribute-sets="table.cell.two"/>
                        <fo:table-column xsl:use-attribute-sets="table.cell.three"/>
                        <fo:table-column xsl:use-attribute-sets="table.cell.four"/>
                         <fo:table-body>

                           <xsl:if test="GROUP_TYPE='LOT_LINE' or GROUP_TYPE='GROUP_LINE'">
                           <fo:table-row>
                             <fo:table-cell>
                               <fo:block xsl:use-attribute-sets="data.align.label">
                               <xsl:choose>
                                 <xsl:when test="GROUP_TYPE='LOT_LINE'">
                                   <!-- Lot -->
                                   <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTION_LOT'][1]/MESSAGE_TEXT"/>
                                 </xsl:when>
                                 <xsl:otherwise>
                                   <!-- Group -->
                                   <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTION_GROUP'][1]/MESSAGE_TEXT"/>
                                 </xsl:otherwise>
                               </xsl:choose>
                               </fo:block>
                             </fo:table-cell>
                             <fo:table-cell number-columns-spanned="3">
                               <fo:block xsl:use-attribute-sets="data.align.value">
                                 <!-- Parent Line Description -->
                                 <xsl:value-of select="PARENT_LINE_DESCRIPTION"/>
                               </fo:block>
                             </fo:table-cell>
                           </fo:table-row>
                           </xsl:if>
 
                           <fo:table-row>
                             <fo:table-cell>
                               <fo:block xsl:use-attribute-sets="data.align.label">
                                 <!-- Category -->
                                 <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_CATEGORY'][1]/MESSAGE_TEXT"/>
                               </fo:block>
                             </fo:table-cell>
                             <fo:table-cell>
                               <fo:block xsl:use-attribute-sets="data.align.value">
                                 <!-- Category -->
                                 <xsl:value-of select="CATEGORY_NAME"/>
                               </fo:block>
                             </fo:table-cell>
                             <fo:table-cell>
                               <!-- Display Label and value of Start Price only if tag exists and document type is not RFI-->
                               <xsl:if test="$ROW_OBJ/INTERNAL_NAME != 'REQUEST_FOR_INFORMATION'">
                               <fo:block xsl:use-attribute-sets="data.align.label">
                                 <!-- Start Price -->
                                 <xsl:value-of select="$ROW_OBJ/START_PRICE_MSG"/>
                               </fo:block>
                               </xsl:if>
                             </fo:table-cell>
                             <fo:table-cell>
                               <!-- Display Label and value of Start Price only if tag exists and document type is not RFI-->
                               <xsl:if test="$ROW_OBJ/INTERNAL_NAME != 'REQUEST_FOR_INFORMATION'">
                               <fo:block xsl:use-attribute-sets="data.align.value">
                                 <xsl:choose>
                                   <xsl:when test="BID_START_PRICE and BID_START_PRICE !=''">
                                     <xsl:value-of select="BID_START_PRICE"/>
                                   </xsl:when>
                                   <xsl:otherwise>
                                     <xsl:value-of select="$NOT_SPECIFIED_OBJ"/>
                                   </xsl:otherwise>
                                 </xsl:choose>
                               </fo:block>
                               </xsl:if>
                             </fo:table-cell>
                           </fo:table-row>
                           <fo:table-row>
                             <xsl:choose>
                               <xsl:when test = "$ROW_OBJ/CONTRACT_TYPE = 'BLANKET' or $ROW_OBJ/CONTRACT_TYPE = 'CONTRACT'">
                             
                                 <fo:table-cell>
                                   <fo:block xsl:use-attribute-sets="data.align.label">
                                     <!-- Estimated Total Amount -->
                                     <xsl:value-of select="$ROW_OBJ/ESTIMATED_AMT_MSG"/>
                                   </fo:block>
                                 </fo:table-cell>
                                 <fo:table-cell>
                                   <fo:block xsl:use-attribute-sets="data.align.value">
                                     <!-- Estimated Total Amount -->
                                     <xsl:choose>
                                       <xsl:when test="PO_AGREED_AMOUNT and PO_AGREED_AMOUNT !=''">
                                         <xsl:value-of select="PO_AGREED_AMOUNT"/>
                                       </xsl:when>
                                       <xsl:otherwise>
                                         <xsl:value-of select="$NOT_SPECIFIED_OBJ"/>
                                       </xsl:otherwise>
                                     </xsl:choose>
                                   </fo:block>
                                 </fo:table-cell>
                               </xsl:when>
                               <xsl:otherwise>
                                 <fo:table-cell>
                                   <fo:block xsl:use-attribute-sets="data.align.label">
                                     <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_SHIP_TO'][1]/MESSAGE_TEXT"/>
                                   </fo:block>
                                 </fo:table-cell>
                                 <fo:table-cell>
                                    <fo:block xsl:use-attribute-sets="data.align.value">
                                      <xsl:choose>
                                        <xsl:when test="SHIP_TO_LOCATION_ID">
                                          <xsl:call-template name="ADDRESS_TEMPLATE">
                                            <xsl:with-param name="ADDRESS_NAME_VAR" select="ADDRESS_NAME"/>
                                            <xsl:with-param name="TERRITORY_NAME_VAR" select="COUNTRY_NAME"/>
                                            <xsl:with-param  name="ADDRESS_1_VAR" select="ADDRESS1"/>
                                            <xsl:with-param  name="ADDRESS_2_VAR" select="ADDRESS2"/>
                                            <xsl:with-param  name="CITY_VAR" select="CITY"/>
                                            <xsl:with-param  name="STATE_VAR" select="STATE"/>
                                            <xsl:with-param  name="PROVINCE_OR_REGION_VAR" select="PROVINCE_OR_REGION"/>
                                            <xsl:with-param  name="ZIP_CODE_VAR" select="ZIP_CODE"/>
                                            <xsl:with-param  name="POSTAL_CODE_VAR" select="POSTAL_CODE"/>
                                            <xsl:with-param  name="COUNTRY_VAR" select="COUNTRY"/>
                                            <xsl:with-param  name="COUNTY_VAR" select="COUNTY"/>
                                          </xsl:call-template>
                                        </xsl:when>
                                        <xsl:otherwise>
                                          <xsl:value-of select="$NOT_SPECIFIED_OBJ"/>
                                        </xsl:otherwise>
                                      </xsl:choose>
                                    </fo:block>
                                 </fo:table-cell>
                               </xsl:otherwise>
                             </xsl:choose>
                                 
                             <fo:table-cell>
                               <!-- Target Price -->
                               <fo:block xsl:use-attribute-sets="data.align.label">
                                 <xsl:value-of select="$ROW_OBJ/TARGET_PRICE_MSG"/>
                               </fo:block>
                             </fo:table-cell>
                             <fo:table-cell>
                               <!-- Target Price -->
                               <fo:block xsl:use-attribute-sets="data.align.value">
                                 <xsl:choose>
                                   <xsl:when test="TARGET_PRICE and TARGET_PRICE !='' and DISPLAY_TARGET_PRICE_FLAG and DISPLAY_TARGET_PRICE_FLAG='Y'">
                                     <xsl:value-of select="TARGET_PRICE"/>
                                   </xsl:when>
                                   <xsl:otherwise>
                                     <xsl:value-of select="$NOT_SPECIFIED_OBJ"/>
                                   </xsl:otherwise>
                                 </xsl:choose>
                               </fo:block>
                             </fo:table-cell>
                                 
                           </fo:table-row>
                           <xsl:if test="$ROW_OBJ/CONTRACT_TYPE = 'STANDARD' or $ROW_OBJ/INTERNAL_NAME = 'REQUEST_FOR_INFORMATION'">
                             <fo:table-row>
                               <!-- Display Need-By Date only if the document type is not RFI and outcome is SPO-->
                               <fo:table-cell>
                                 <fo:block xsl:use-attribute-sets="data.align.label">
                                   <!-- Need-By Date -->
                                   <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_NEED_BY_DATE'][1]/MESSAGE_TEXT"/>
                                 </fo:block>
                               </fo:table-cell>
                               <!-- Display Need-By Date only if the document type is not RFI and outcome is SPO-->
                               <fo:table-cell number-columns-spanned="3">
                                 <fo:block xsl:use-attribute-sets="data.align.value">
                                   <!-- Need-By Date -->
                                   <xsl:choose>
                                     <xsl:when test="NEED_BY_DATES_TO_PRINT and NEED_BY_DATES_TO_PRINT !=''">
                                       <xsl:value-of select="NEED_BY_DATES_TO_PRINT"/>
                                     </xsl:when>
                                     <xsl:otherwise>
                                       <xsl:value-of select="$NOT_SPECIFIED_OBJ"/>
                                     </xsl:otherwise>
                                   </xsl:choose>
                                 </fo:block>
                               </fo:table-cell>
                             </fo:table-row>
                           </xsl:if>
                           
                           <xsl:if test="$ROW_OBJ/CONTRACT_TYPE = 'BLANKET' or $ROW_OBJ/CONTRACT_TYPE = 'CONTRACT'">
                           <fo:table-row>
                             <xsl:if test="$RATE_BASED_TEMP_LABOR_OBJ or $FIXED_PRICE_TEMP_LABOR_OBJ">
                               <fo:table-cell>
                                 <!--Job Details-->
                                 <fo:block xsl:use-attribute-sets="data.align.label">
                                   <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_JOB_DETAILS'][1]/MESSAGE_TEXT"/>
                                 </fo:block>
                               </fo:table-cell>
                               <fo:table-cell>
                                 <!--Job Details-->
                                 <fo:block xsl:use-attribute-sets="data.align.value">
                                   <xsl:choose>
                                     <xsl:when test="ADDITIONAL_JOB_DETAILS and ADDITIONAL_JOB_DETAILS !=''">
                                       <xsl:value-of select="ADDITIONAL_JOB_DETAILS"/>
                                     </xsl:when>
                                     <xsl:otherwise>
                                       <xsl:value-of select="$NOT_SPECIFIED_OBJ"/>
                                     </xsl:otherwise>
                                   </xsl:choose>
                                 </fo:block>
                               </fo:table-cell>
                             </xsl:if>
                             <fo:table-cell>
                               <!-- Minimum Release Amount -->
                               <fo:block xsl:use-attribute-sets="data.align.label">
                                 <xsl:value-of select="$ROW_OBJ/MIN_RELEASE_AMT_MSG"/>
                               </fo:block>
                             </fo:table-cell>
                             <fo:table-cell>
                               <!-- Minimum Release Amount -->
                               <fo:block xsl:use-attribute-sets="data.align.value">
                                 <xsl:choose>
                                   <xsl:when test="PO_MIN_REL_AMOUNT and PO_MIN_REL_AMOUNT !=''">
                                     <xsl:value-of select="PO_MIN_REL_AMOUNT"/>
                                   </xsl:when>
                                   <xsl:otherwise>
                                     <xsl:value-of select="$NOT_SPECIFIED_OBJ"/>
                                   </xsl:otherwise>
                                 </xsl:choose>
                               </fo:block>
                             </fo:table-cell>
                             <xsl:if test="$RATE_BASED_TEMP_LABOR_OBJ and $FIXED_PRICE_TEMP_LABOR_OBJ">
                               <fo:table-cell/>
                               <fo:table-cell/>
                             </xsl:if>
                           </fo:table-row>
                           </xsl:if>
                         </fo:table-body>
                        </fo:table>

                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  
                  <xsl:if test="NOTE_TO_BIDDERS">
                    <fo:table-row>
                      <fo:table-cell>
                        <fo:block space-before.optimum="10pt" space-start.optimum="0.5in">
                          <fo:table>
                            <fo:table-column column-width="10%"/>
                            <fo:table-column column-width="90%"/>
                            <fo:table-body>
                              <fo:table-row>
                                <fo:table-cell>
                                  <fo:block>
                                    <fo:block xsl:use-attribute-sets="note.label">
                                      <!-- Note -->
                                      <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_NOTE_TO_SUPPLIER'][1]/MESSAGE_TEXT"/>
                                    </fo:block>
                                  </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                  <fo:block xsl:use-attribute-sets="note.value">
                                    <xsl:value-of select="NOTE_TO_BIDDERS"/>
                                  </fo:block>
                                </fo:table-cell>
                              </fo:table-row>
                            </fo:table-body>
                          </fo:table>
                        </fo:block>
                      </fo:table-cell>
                    </fo:table-row>
                  </xsl:if>

                  <xsl:if test="count($ROW_OBJ/LINE_ATTRIBUTES/LINE_ATTRIBUTES_ROW[LINE_NUMBER=$LINE_NUMBER_OBJ][1]) &gt; 0">
                  <fo:table-row>
                    <fo:table-cell>
                      <fo:block>
                        <xsl:call-template name="DISPLAY_LINE_ATTRIBUTE_GROUP">
                          <xsl:with-param name="ATTR_GROUP_SEQ_NUMBER_VAR" select="($ROW_OBJ/LINE_ATTRIBUTES/LINE_ATTRIBUTES_ROW[LINE_NUMBER=$LINE_NUMBER_OBJ])[1]/ATTR_GROUP_SEQ_NUMBER"/>
                          <xsl:with-param name="LINE_NUMBER_VAR" select="$LINE_NUMBER_OBJ"/>
                          <xsl:with-param name="NEED_BY_DATES_TO_PRINT_VAR" select="NEED_BY_DATES_TO_PRINT"/>
                        </xsl:call-template>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  </xsl:if>
                  
                  <xsl:if test="HAS_SHIPMENTS_FLAG and HAS_SHIPMENTS_FLAG='Y'">
                    <fo:table-row>
                      <fo:table-cell>
                        <fo:block space-before.optimum="10pt" space-after.optimum="5pt" xsl:use-attribute-sets="data.label">
                          <!-- Price Breaks -->
                          <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PRICE_BREAKS'][1]/MESSAGE_TEXT"/>
                        </fo:block>
                      </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row>
                      <fo:table-cell>
                        <fo:block>
                          <fo:block xsl:use-attribute-sets="data.note" space-after.optimum="5pt">
                            <xsl:choose>
                              <xsl:when test="PRICE_BREAK_NEG_FLAG = 'Y'">
                                <!-- It is optional for you to enter a price for each line in the table. You may propose price breaks in the space provided or on a separate sheet of paper.-->
                                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_OPTIONAL_PB'][1]/MESSAGE_TEXT"/>
                              </xsl:when>
                              <xsl:otherwise>
                                <!-- You must enter a price for each line in the table.-->
                                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_REQUIRED_PB'][1]/MESSAGE_TEXT"/>
                              </xsl:otherwise>
                            </xsl:choose>
                            <xsl:choose>
                              <xsl:when test="PRICE_BREAK_TYPE = 'CUMULATIVE'">
                                <!-- The break quantity is cumulative.-->
                                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_CUMULATIVE_PB'][1]/MESSAGE_TEXT"/>
                              </xsl:when>
                              <xsl:otherwise>
                                <xsl:if test="PRICE_BREAK_TYPE = 'NON-CUMULATIVE'">
                                  <!-- The break quantity is non-cumulative.-->
                                  <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_NON_CUMULATVE_PB'][1]/MESSAGE_TEXT"/>
                                </xsl:if>
                              </xsl:otherwise>
                            </xsl:choose>
                            <!-- To view Ship-To addresses, refer to section 2.3.-->
                            <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_PB_VIEW_SHIP_TO'][1]/MESSAGE_TEXT"/>
                          </fo:block>
                          <xsl:call-template name="DISPLAY_LINE_PRICE_BREAKS">
                            <xsl:with-param name="LINE_NUMBER_VAR" select="$LINE_NUMBER_OBJ"/>
                            <xsl:with-param name="PRICE_BREAK_NEG_FLAG_VAR" select="PRICE_BREAK_NEG_FLAG"/>
                            <xsl:with-param name="PRICE_BREAK_TYPE_VAR" select="PRICE_BREAK_TYPE"/>
                            <xsl:choose>
                              <xsl:when test = "$RATE_BASED_TEMP_LABOR_OBJ">
                                <xsl:with-param name="RATE_BASED_TEMP_LABOR_VAR" select="'Y'"/>
                              </xsl:when>
                              <xsl:otherwise>
                                <xsl:with-param name="RATE_BASED_TEMP_LABOR_VAR" value="'N'"/>
                              </xsl:otherwise>
                            </xsl:choose>
                            <xsl:with-param name="UNIT_OF_MEASURE_TL_VAR" select="UNIT_OF_MEASURE_TL"/>
                          </xsl:call-template>
                        </fo:block>
                      </fo:table-cell>
                    </fo:table-row>
                  </xsl:if>

                  <xsl:if test="count($ROW_OBJ/ATTACHMENTS/ATTACHMENTS_ROW[ENTITY_NAME = 'PON_AUCTION_ITEM_PRICES_ALL' and PK2_VALUE = $LINE_NUMBER_OBJ][1]) &gt; 0">                  
                  <fo:table-row keep-together.within-page="always">
                    <fo:table-cell>
                      <fo:block space-before.optimum="10pt" space-after.optimum="5pt" xsl:use-attribute-sets="data.label">
                        <!--Attachments-->
                        <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_ATTACHMENTS'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                      <fo:block>
                        <xsl:call-template name="DISPLAY_LINE_ATTACHMENTS">
                          <xsl:with-param name="LINE_NUMBER_VAR" select="$LINE_NUMBER_OBJ"/>
                        </xsl:call-template>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  </xsl:if>
                  
                </fo:table-body>
              </fo:table>

            </fo:table-cell>
          </fo:table-row>
          </xsl:for-each>
          
          <xsl:if test="$PRICE_BREAK_LOCATIONS_EXIST_OBJ &gt; 0">
          <!--2.3 Ship-To Addresses -->
          <fo:table-row>
            <fo:table-cell number-columns-spanned="2">
              <fo:block space-before.optimum="15pt" id="secShipToAddresses">
                <fo:block xsl:use-attribute-sets="h5"> 
                  <!--Ship-To Addresses-->
                  2.3 <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_SHIP_TO_LOC'][1]/MESSAGE_TEXT"/>
                </fo:block>
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell/>
            <fo:table-cell>
              <xsl:call-template name="DISPLAY_SHIP_TO_ADDRESSES"/>
            </fo:table-cell>
          </fo:table-row>
          </xsl:if>

        </fo:table-body>
      </fo:table>
    </fo:block>
  </xsl:template>
  <!-- End of Lines Printing -->
  
  
  <!-- Start Of Invitation Letter -->
  <xsl:template name="INVITATION_LETTER">
    <fo:flow flow-name="xsl-region-body">
      <fo:block>
        <fo:block xsl:use-attribute-sets="invitation.letter.heading">
          <xsl:value-of select="$ROW_OBJ/PAGE_HEADING_MSG"/>
        </fo:block>
        <fo:block>
          <fo:table>
                <fo:table-column xsl:use-attribute-sets="table.cell.one"/>
                <fo:table-column xsl:use-attribute-sets="table.cell.two"/>
                <fo:table-column xsl:use-attribute-sets="table.cell.three"/>
                <fo:table-column xsl:use-attribute-sets="table.cell.four"/>
            <fo:table-body>
              <fo:table-row>
                <fo:table-cell>
                  <fo:block xsl:use-attribute-sets="data.align.label">
                    <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_TITLE'][1]/MESSAGE_TEXT"/>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell number-columns-spanned="3">
                  <fo:block xsl:use-attribute-sets="data.align.value">
                    <xsl:value-of select="$ROW_OBJ/AUCTION_TITLE"/>
                  </fo:block>
                </fo:table-cell>
              </fo:table-row>
              
              <xsl:if test = "$ROW_OBJ/AUCTION_HEADER_ID_PREV_AMEND and $ROW_OBJ/AUCTION_HEADER_ID_PREV_AMEND != ''">
                <fo:table-row>
                  <fo:table-cell>
                    <fo:block xsl:use-attribute-sets="data.align.label">
                      <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AMEND_DATE'][1]/MESSAGE_TEXT"/>
                    </fo:block>
                  </fo:table-cell>
                  <fo:table-cell number-columns-spanned="3">
                    <fo:block xsl:use-attribute-sets="data.align.value">
                      <xsl:value-of select="$ROW_OBJ/PUBLISH_DATE"/>
                    </fo:block>
                  </fo:table-cell>
                </fo:table-row>
                <fo:table-row>
                  <fo:table-cell>
                    <fo:block xsl:use-attribute-sets="data.align.label">
                      <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AMEND_DESCRIPTION'][1]/MESSAGE_TEXT"/>
                    </fo:block>
                  </fo:table-cell>
                  <fo:table-cell number-columns-spanned="3">
                    <fo:block xsl:use-attribute-sets="data.align.value">
                      <xsl:value-of select="$ROW_OBJ/AMENDMENT_DESCRIPTION"/>
                    </fo:block>
                  </fo:table-cell>
                </fo:table-row>
                <fo:table-row>
                  <fo:table-cell number-columns-spanned="4">
                    <fo:block xsl:use-attribute-sets="blank.row"/>
                  </fo:table-cell>
                </fo:table-row>
              </xsl:if>
              
              <fo:table-row>
                <fo:table-cell>
                  <fo:block xsl:use-attribute-sets="data.align.label">
                    <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PREVIEW'][1]/MESSAGE_TEXT"/>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell>
                  <fo:block xsl:use-attribute-sets="data.align.value">
                    <xsl:choose>
                      <xsl:when test="$ROW_OBJ/VIEW_BY_DATE and $ROW_OBJ/VIEW_BY_DATE != ''">
                        <xsl:value-of select="$ROW_OBJ/VIEW_BY_DATE"/>
                      </xsl:when>
                      <xsl:otherwise>
                        <xsl:value-of select="$NOT_SPECIFIED_OBJ"/>
                      </xsl:otherwise>
                    </xsl:choose>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell>
                  <fo:block xsl:use-attribute-sets="data.align.label">
                    <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_OPEN'][1]/MESSAGE_TEXT"/>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell>
                  <fo:block xsl:use-attribute-sets="data.align.value">
                    <xsl:value-of select="$ROW_OBJ/OPEN_BIDDING_DATE"/>
                  </fo:block>
                </fo:table-cell>
              </fo:table-row>
              <fo:table-row>
                <fo:table-cell>
                  <fo:block xsl:use-attribute-sets="data.align.label">
                    <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_CLOSE'][1]/MESSAGE_TEXT"/>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell>
                  <fo:block xsl:use-attribute-sets="data.align.value">
                    <xsl:value-of select="$ROW_OBJ/CLOSE_BIDDING_DATE"/>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell>
                  <!-- Award date will not be displayed for RFI -->
                  <xsl:if test="$ROW_OBJ/INTERNAL_NAME != 'REQUEST_FOR_INFORMATION'">
                  <fo:block xsl:use-attribute-sets="data.align.label">
                    <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_AWARD'][1]/MESSAGE_TEXT"/>
                  </fo:block>
                  </xsl:if>
                </fo:table-cell>
                <fo:table-cell>
                  <!-- Award date will not be displayed for RFI -->
                  <xsl:if test="$ROW_OBJ/INTERNAL_NAME != 'REQUEST_FOR_INFORMATION'">
                  <fo:block xsl:use-attribute-sets="data.align.value">
                    
                      <xsl:choose>
                        <xsl:when test="$ROW_OBJ/AWARD_BY_DATE and $ROW_OBJ/AWARD_BY_DATE != ''">
                          <xsl:value-of select="$ROW_OBJ/AWARD_BY_DATE"/>
                        </xsl:when>
                        <xsl:otherwise>
                          <xsl:value-of select="$NOT_SPECIFIED_OBJ"/>
                        </xsl:otherwise>
                      </xsl:choose>
                    
                  </fo:block>
                  </xsl:if>
                </fo:table-cell>
              </fo:table-row>
              <fo:table-row>
                <fo:table-cell>
                  <fo:block xsl:use-attribute-sets="data.align.label">
                    <!-- Time Zone -->
                    <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_TIME_ZONE'][1]/MESSAGE_TEXT"/>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell>
                  <fo:block xsl:use-attribute-sets="data.align.value">
                    <!-- Time Zone -->
                    <xsl:value-of select="$ROW_OBJ/DISPLAY_TIME_ZONE"/>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell>
                  <xsl:if test="EVENT_TITLE and EVENT_TITLE != ''">
                    <fo:block xsl:use-attribute-sets="data.align.label">
                      <!-- Event -->
                      <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_AUCTION_EVENT'][1]/MESSAGE_TEXT"/>
                    </fo:block>
                  </xsl:if>
                </fo:table-cell>
                <fo:table-cell>
                  <xsl:if test="EVENT_TITLE and EVENT_TITLE != ''">
                    <fo:block xsl:use-attribute-sets="data.align.value">
                      <!-- Event -->
                      <xsl:value-of select="EVENT_TITLE"/>
                    </fo:block>
                  </xsl:if>
                </fo:table-cell>
              </fo:table-row>
              
              <fo:table-row>
                <fo:table-cell number-columns-spanned="4">
                  <fo:block xsl:use-attribute-sets="blank.row"/>
                </fo:table-cell>
              </fo:table-row>
              
              <xsl:if test="$NOTE_TO_BIDDERS_COUNT_OBJ &gt; 0">
                <fo:table-row>
                  <fo:table-cell>
                    <fo:block xsl:use-attribute-sets="data.align.label">
                      <!-- Note -->
                      <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_NOTE_TO_SUPPLIER'][1]/MESSAGE_TEXT"/>
                    </fo:block>
                  </fo:table-cell>
                  <fo:table-cell number-columns-spanned="3">
                    <fo:block xsl:use-attribute-sets="data.align.value">
                      <!-- Note -->
                      <xsl:value-of select="$ROW_OBJ/NOTE_TO_BIDDERS"/>
                    </fo:block>
                  </fo:table-cell>
                </fo:table-row>
                
                <fo:table-row>
                  <fo:table-cell number-columns-spanned="4">
                    <fo:block xsl:use-attribute-sets="blank.row"/>
                  </fo:table-cell>
                </fo:table-row>
              </xsl:if>
              
              <fo:table-row>
                <fo:table-cell number-columns-spanned="4">
                  <fo:block xsl:use-attribute-sets="blank.row"/>
                  <fo:block xsl:use-attribute-sets="data.note">
                    <!-- Please submit your response to: -->
                    <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_SUBMIT_UR_RESPOSE_TO'][1]/MESSAGE_TEXT"/>
                  </fo:block>
                  <fo:block xsl:use-attribute-sets="blank.row"/>
                </fo:table-cell>
              </fo:table-row>
              
              <fo:table-row>
                <fo:table-cell>
                  <fo:block xsl:use-attribute-sets="data.align.label">
                    <!-- Company -->
                    <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_COMPANY'][1]/MESSAGE_TEXT"/>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell number-columns-spanned="3">
                  <fo:block xsl:use-attribute-sets="data.align.value">
                    <!-- Company -->
                    <xsl:value-of select="$ROW_OBJ/ENTITY"/>
                  </fo:block>
                </fo:table-cell>
              </fo:table-row>

              <fo:table-row>
                <fo:table-cell>
                  <fo:block xsl:use-attribute-sets="data.align.label">
                    <!-- Buyer -->
                    <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_ACCTS_BUYER'][1]/MESSAGE_TEXT"/>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell number-columns-spanned="3">
                  <fo:block xsl:use-attribute-sets="data.align.value">
                    <!-- Buyer -->
                    <xsl:value-of select="$ROW_OBJ/AUCTIONEER_DISPLAY_NAME"/>
                  </fo:block>
                </fo:table-cell>
              </fo:table-row>
              
              <fo:table-row>
                <fo:table-cell>
                  <fo:block xsl:use-attribute-sets="data.align.label">
                    <!-- Location -->
                    <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_LOCATION'][1]/MESSAGE_TEXT"/>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell number-columns-spanned="3">
                  <fo:block xsl:use-attribute-sets="data.align.value">
                    <!-- Location -->
                    <xsl:call-template name="ADDRESS_TEMPLATE">
                      <xsl:with-param name="ADDRESS_NAME_VAR" select="$ROW_OBJ/ENTITY"/>
                      <xsl:with-param name="TERRITORY_NAME_VAR" select="$ROW_OBJ/ENTITY_COUNTRY"/>
                      <xsl:with-param name="ADDRESS_1_VAR" select="$ROW_OBJ/ENTITY_ADDRESS_LINE_1"/>
                      <xsl:with-param name="ADDRESS_2_VAR" select="$ROW_OBJ/ENTITY_ADDRESS_LINE_2"/>
                      <xsl:with-param name="CITY_VAR" select="$ROW_OBJ/ENTITY_CITY"/>
                      <xsl:with-param name="STATE_VAR" select="$ROW_OBJ/ENTITY_REGION_2"/>
                      <xsl:with-param name="PROVINCE_OR_REGION_VAR" select="$ROW_OBJ/ENTITY_REGION_3"/>
                      <xsl:with-param name="ZIP_CODE_VAR" select="$ROW_OBJ/ENTITY_POSTAL_CODE"/>
                      <xsl:with-param name="POSTAL_CODE_VAR" select="' '"/>
                      <xsl:with-param name="COUNTRY_VAR" select="$ROW_OBJ/ENTITY_COUNTRY_CODE"/>
                      <xsl:with-param name="COUNTY_VAR" select="$ROW_OBJ/ENTITY_REGION_1"/>
                    </xsl:call-template>
                  </fo:block>
                </fo:table-cell>
              </fo:table-row>
              
              <fo:table-row>
                <fo:table-cell>
                  <fo:block xsl:use-attribute-sets="data.align.label">
                    <!-- Phone -->
                    <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PHONE'][1]/MESSAGE_TEXT"/>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell number-columns-spanned="3">
                  <fo:block xsl:use-attribute-sets="data.align.value">
                    <!-- Phone -->
                    <xsl:value-of select="$ROW_OBJ/PHONE_NUMBER"/>
                  </fo:block>
                </fo:table-cell>
              </fo:table-row>
              
              <fo:table-row>
                <fo:table-cell>
                  <fo:block xsl:use-attribute-sets="data.align.label">
                    <!-- Email -->
                    <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_EMAIL'][1]/MESSAGE_TEXT"/>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell number-columns-spanned="3">
                  <fo:block xsl:use-attribute-sets="data.align.value">
                    <!-- Email -->
                    <xsl:value-of select="$ROW_OBJ/EMAIL"/>
                  </fo:block>
                </fo:table-cell>
              </fo:table-row>
              
              <fo:table-row>
                <fo:table-cell number-columns-spanned="4">
                  <fo:block space-before.optimum="6mm">
                  </fo:block>
                </fo:table-cell>
              </fo:table-row>
              
            </fo:table-body>
          </fo:table>
        </fo:block>
        <fo:block xsl:use-attribute-sets="blank.row"/>
        <fo:block space-start.optimum="2mm" xsl:use-attribute-sets="data.note">
           <!--When submitting your response, please include the following information-->
           <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_INCLD_FOLLOWING_INFO'][1]/MESSAGE_TEXT"/>
        </fo:block>
        <fo:block xsl:use-attribute-sets="blank.row"/>

        <fo:block>
          <fo:table>
            <fo:table-column column-width="20%"/>
            <fo:table-column column-width="80%"/>
            <fo:table-body>
              <fo:table-row>
                <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                  <fo:block xsl:use-attribute-sets="data.align.label">
                     <!--Your Company Name-->
                     <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_YOUR_COMPANY_NAME'][1]/MESSAGE_TEXT"/>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell xsl:use-attribute-sets="table.cell.data.style"/>
              </fo:table-row>
              <fo:table-row>
                <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                  <fo:block xsl:use-attribute-sets="data.align.label">
                     <!-- Address -->
                     <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_BIDDER_ADDRESS'][1]/MESSAGE_TEXT"/>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell xsl:use-attribute-sets="table.cell.data.style"/>
              </fo:table-row>
              <fo:table-row>
                <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                  <fo:block xsl:use-attribute-sets="data.align.label">
                     <!-- Contact Details -->
                     <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_CONTACT_DETAILS'][1]/MESSAGE_TEXT"/>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell xsl:use-attribute-sets="table.cell.data.style"/>
              </fo:table-row>
              <fo:table-row>
                <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                  <fo:block xsl:use-attribute-sets="data.align.label">
                     <!-- Response Valid Until -->
                     <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_BID_VALID_UNTIL'][1]/MESSAGE_TEXT"/>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell xsl:use-attribute-sets="table.cell.data.style"/>
              </fo:table-row>
            </fo:table-body>
          </fo:table>
        </fo:block>

        <xsl:if test="$ROW_OBJ/PRINT_WARNING_FLAG = 'Y'">
          <fo:block space-start.optimum="2mm" xsl:use-attribute-sets="data.align.note">
            <!-- Note: This document does not include Contract Terms because the buyer does not have permission to view them. -->
            <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_PRN_CONTRACT_WARNING'][1]/MESSAGE_TEXT"/>
          </fo:block>
        </xsl:if>
        
        <fo:block xsl:use-attribute-sets="blank.row"/>
        <fo:block space-start.optimum="2mm" xsl:use-attribute-sets="data.value">
           <!-- This document has important legal consequences. The information contained in this document is proprietary of &LEGAL_ENTITY_NAME. It shall not be used, reproduced, or disclosed to others without the express and written consent of &LEGAL_ENTITY_NAME. -->
           <xsl:value-of select="$ROW_OBJ/LEGAL_CONSEQUENCES_MSG"/>
        </fo:block>
        
        <xsl:if test="$DISPLAY_CONTRACT_NONMERGE_OBJ">
          <fo:block space-start.optimum="2mm" xsl:use-attribute-sets="data.align.note">
            <!--Note: There are contract terms associated to the RFQ that are not included in this document. The contract terms are an inseparable part of this RFQ.-->
            <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_CONT_MERGE_WARNING'][1]/MESSAGE_TEXT"/>
          </fo:block>
        </xsl:if>
      </fo:block>
    </fo:flow>
  </xsl:template>
  <!-- End Of Invitation Letter -->
  
  
  <!-- Start Of Table Of Contents -->
  <xsl:template name="TOC">
    <fo:flow flow-name="xsl-region-body">
      <fo:block id="secTOC">
        <fo:block xsl:use-attribute-sets="toc.header">
          <!--Table of Contents-->
          <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_TABLE_OF_CONTENTS_C'][1]/MESSAGE_TEXT"/>
        </fo:block>
        <fo:block xsl:use-attribute-sets="toc.level1">
          <fo:basic-link internal-destination="secHeaderInformation">
            <!--1 Header Information-->
            <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_PART_I_HEADER_INFO_C'][1]/MESSAGE_TEXT"/>
          </fo:basic-link>
          <fo:leader leader-pattern="dots"/>
          <fo:page-number-citation ref-id="secHeaderInformation"/>          
          <fo:block xsl:use-attribute-sets="toc.space"><xsl:value-of select="' '"/></fo:block>
          <fo:block xsl:use-attribute-sets="toc.level2">
            <fo:basic-link internal-destination="secGeneralInformation">
              1.1 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PRN_GENERAL_INFO'][1]/MESSAGE_TEXT"/>
            </fo:basic-link>				
            <fo:leader leader-pattern="dots"/>
            <fo:page-number-citation ref-id="secGeneralInformation"/>	       		   
	  </fo:block>
          <fo:block xsl:use-attribute-sets="toc.level2">	
            <fo:basic-link internal-destination="secTerms">
              1.2 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PRN_TERMS'][1]/MESSAGE_TEXT"/>
            </fo:basic-link>				
            <fo:leader leader-pattern="dots"/>
            <fo:page-number-citation ref-id="secTerms"/>	       		   
	  </fo:block>
	  <xsl:if test="$HEADER_ATTRIBUTES_EXIST_OBJ &gt; 0">
          <fo:block xsl:use-attribute-sets="toc.level2">	
            <fo:basic-link internal-destination="secHeaderAttributes">
              1.3 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_HEADER_ATTRIBUTES'][1]/MESSAGE_TEXT"/>
            </fo:basic-link>				
            <fo:leader leader-pattern="dots"/>
            <fo:page-number-citation ref-id="secHeaderAttributes"/>	       		   
	  </fo:block>
	  </xsl:if>
	  <xsl:if test="$HEADER_ATTACHMENTS_EXIST_OBJ &gt; 0">
            <fo:block xsl:use-attribute-sets="toc.level2">	
              <fo:basic-link internal-destination="secHeaderAttachments">
                <xsl:if test="$HEADER_ATTRIBUTES_EXIST_OBJ &gt; 0">
                  1.4
                </xsl:if>
                <xsl:if test="$HEADER_ATTRIBUTES_EXIST_OBJ = 0">
                  1.3
                </xsl:if>
                <!--Attachments-->
                <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_ATTACHMENTS'][1]/MESSAGE_TEXT"/>
              </fo:basic-link>				
              <fo:leader leader-pattern="dots"/>
              <fo:page-number-citation ref-id="secHeaderAttachments"/>	       		   
	    </fo:block>
	  </xsl:if>
          <fo:block xsl:use-attribute-sets="toc.level2">	
            <fo:basic-link internal-destination="secResponseRules">
              <xsl:if test="$HEADER_ATTRIBUTES_EXIST_OBJ &gt; 0 and $HEADER_ATTACHMENTS_EXIST_OBJ &gt; 0">
                1.5
              </xsl:if>
              <xsl:if test="(($HEADER_ATTRIBUTES_EXIST_OBJ &gt; 0 and $HEADER_ATTACHMENTS_EXIST_OBJ = 0) or ($HEADER_ATTRIBUTES_EXIST_OBJ = 0 and $HEADER_ATTACHMENTS_EXIST_OBJ &gt; 0))">
                1.4
              </xsl:if>
              <xsl:if test="$HEADER_ATTRIBUTES_EXIST_OBJ = 0 and $HEADER_ATTACHMENTS_EXIST_OBJ = 0">
                1.3
              </xsl:if>
              <!--Response Rules-->
              <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_RESPONSE_RULES'][1]/MESSAGE_TEXT"/>
            </fo:basic-link>				
            <fo:leader leader-pattern="dots"/>
            <fo:page-number-citation ref-id="secResponseRules"/>	       		   
	  </fo:block>
        </fo:block>
        <xsl:if test="$HAS_ITEMS_FLAG_OBJ and $HAS_ITEMS_FLAG_OBJ = 'Y'">
          <fo:block xsl:use-attribute-sets="toc.level1">
            <fo:basic-link internal-destination="secPriceSchedule">
              <!--2 Price Schedule-->
              <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_PRN_PRICE_SCHEDULE_C'][1]/MESSAGE_TEXT"/>
            </fo:basic-link>
            <fo:leader leader-pattern="dots"/>
            <fo:page-number-citation ref-id="secPriceSchedule"/>
            <fo:block xsl:use-attribute-sets="toc.space"><xsl:value-of select="' '"/></fo:block>
            <fo:block xsl:use-attribute-sets="toc.level2">	
              <fo:basic-link internal-destination="secLineInformation">
                2.1 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_PRN_LINE_INFO'][1]/MESSAGE_TEXT"/>
              </fo:basic-link>				
              <fo:leader leader-pattern="dots"/>
              <fo:page-number-citation ref-id="secLineInformation"/>	       		   
	    </fo:block>
            <fo:block xsl:use-attribute-sets="toc.level2">	
              <fo:basic-link internal-destination="secLineDetails">
                <!--2.2 Line Details-->
                2.2 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_ITEM_DETAILS'][1]/MESSAGE_TEXT"/>
              </fo:basic-link>				
              <fo:leader leader-pattern="dots"/>
              <fo:page-number-citation ref-id="secLineDetails"/>	       		   
              <fo:block xsl:use-attribute-sets="toc.space"><xsl:value-of select="' '"/></fo:block>
              <xsl:call-template name="LINES_ROW.TOC"/>
	    </fo:block>
	    <xsl:if test="$PRICE_BREAK_LOCATIONS_EXIST_OBJ &gt; 0">
            <fo:block xsl:use-attribute-sets="toc.level2">	
              <fo:basic-link internal-destination="secShipToAddresses">
                2.3 <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_SHIP_TO_LOC'][1]/MESSAGE_TEXT"/>
              </fo:basic-link>				
              <fo:leader leader-pattern="dots"/>
              <fo:page-number-citation ref-id="secShipToAddresses"/>	       		   
	    </fo:block>
	    </xsl:if>
          </fo:block>
         </xsl:if>
       </fo:block>
    </fo:flow>
  </xsl:template>
  <!-- End Of Table Of Contents -->
  
  <xsl:template name="LINES_ROW.TOC">
    <xsl:for-each select="$ROW_OBJ/LINES/LINES_ROW[GROUP_TYPE != 'GROUP']">
      <fo:block xsl:use-attribute-sets="toc.level3">
        <fo:basic-link>
          <xsl:attribute name="internal-destination">
            <xsl:value-of select="generate-id()"/>
          </xsl:attribute>
          2.2.<xsl:number value="position()" format="1"/><xsl:value-of select="' '"/><xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_LINE_NO'][1]/MESSAGE_TEXT"/><xsl:value-of select="' '"/><xsl:value-of select="DOCUMENT_DISP_LINE_NUMBER"/>
        </fo:basic-link>
        <fo:leader leader-pattern="dots"/>
        <fo:page-number-citation ref-id="{generate-id()}"/>	       		   
      </fo:block>
    </xsl:for-each>
  </xsl:template>
  
  <xsl:template name="LINES_ROW.BOOKMARK">
    <xsl:for-each select="$ROW_OBJ/LINES/LINES_ROW[GROUP_TYPE != 'GROUP']">
      <fox:outline>
          <xsl:attribute name="internal-destination">
            <xsl:value-of select="generate-id()"/>
          </xsl:attribute>
          <fox:label>
            2.2.<xsl:number value="position()" format="1"/><xsl:value-of select="' '"/><xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_LINE_NO'][1]/MESSAGE_TEXT"/><xsl:value-of select="' '"/><xsl:value-of select="DOCUMENT_DISP_LINE_NUMBER"/>
          </fox:label>
       </fox:outline>
    </xsl:for-each>
  </xsl:template>
  
  <xsl:template name="DISPLAY_LINE_ATTRIBUTE_GROUP">
    <xsl:param name="ATTR_GROUP_SEQ_NUMBER_VAR"/>
    <xsl:param name="LINE_NUMBER_VAR"/>
    <xsl:param name="NEED_BY_DATES_TO_PRINT_VAR"/>
    <fo:block space-before.optimum="10pt">
      <fo:table>
        <fo:table-column column-width="25%"/>
        <fo:table-column column-width="25%"/>
        <xsl:choose>
          <xsl:when test="$ROW_OBJ/BID_RANKING = 'MULTI_ATTRIBUTE_SCORING' and $ROW_OBJ/SHOW_BIDDER_SCORES = 'SCORE_WEIGHT'">
            <fo:table-column column-width="25%"/>
            <fo:table-column column-width="25%"/>
          </xsl:when>
          <xsl:otherwise>
            <fo:table-column column-width="50%"/>
          </xsl:otherwise>
        </xsl:choose>
        
        <fo:table-header>
          <fo:table-row>
            <xsl:choose>
              <xsl:when test="$ROW_OBJ/BID_RANKING = 'MULTI_ATTRIBUTE_SCORING' and $ROW_OBJ/SHOW_BIDDER_SCORES = 'SCORE_WEIGHT'">
                <fo:table-cell number-columns-spanned="4">
                  <fo:block xsl:use-attribute-sets="data.align.value">
                    <xsl:value-of select="($ROW_OBJ/LINE_ATTRIBUTES/LINE_ATTRIBUTES_ROW[LINE_NUMBER = $LINE_NUMBER_VAR and ATTR_GROUP_SEQ_NUMBER = $ATTR_GROUP_SEQ_NUMBER_VAR])[1]/MEANING"/>
                  </fo:block>
               </fo:table-cell>
              </xsl:when>
              <xsl:otherwise>
                <fo:table-cell number-columns-spanned="3">
                  <fo:block xsl:use-attribute-sets="data.align.value">
                    <xsl:value-of select="($ROW_OBJ/LINE_ATTRIBUTES/LINE_ATTRIBUTES_ROW[LINE_NUMBER = $LINE_NUMBER_VAR and ATTR_GROUP_SEQ_NUMBER = $ATTR_GROUP_SEQ_NUMBER_VAR])[1]/MEANING"/>
                  </fo:block>
                </fo:table-cell>
              </xsl:otherwise>
            </xsl:choose>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
              <fo:block xsl:use-attribute-sets="table.cell.heading">
                <!--Description-->
                <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_ITEM_DESC'][1]/MESSAGE_TEXT"/>
              </fo:block>
            </fo:table-cell>
            <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
              <fo:block xsl:use-attribute-sets="table.cell.heading">
                <!--Target Value-->
                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_TARGET_VALUE'][1]/MESSAGE_TEXT"/>
              </fo:block>
            </fo:table-cell>

            <xsl:if test="$ROW_OBJ/BID_RANKING = 'MULTI_ATTRIBUTE_SCORING' and $ROW_OBJ/SHOW_BIDDER_SCORES = 'SCORE_WEIGHT'">
              <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                <fo:block xsl:use-attribute-sets="table.cell.heading">
                  <!-- Acceptable Values -->
                  <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_ACCEPTABLE_VALUES'][1]/MESSAGE_TEXT"/>
                </fo:block>
                <fo:block xsl:use-attribute-sets="table.cell.heading">
                  <!-- (Score for the response) -->
                  <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_SCORE_FOR_RESPONSE'][1]/MESSAGE_TEXT"/>
                </fo:block>
              </fo:table-cell>
            </xsl:if>

            <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
              <fo:block xsl:use-attribute-sets="table.cell.heading">
                <!--Response Value-->
                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_RESPONSE_VALUE'][1]/MESSAGE_TEXT"/>
              </fo:block>
            </fo:table-cell>
          </fo:table-row>

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

          <xsl:for-each select="$ROW_OBJ/LINE_ATTRIBUTES/LINE_ATTRIBUTES_ROW[LINE_NUMBER = $LINE_NUMBER_VAR and ATTR_GROUP_SEQ_NUMBER = $ATTR_GROUP_SEQ_NUMBER_VAR]">
          <xsl:variable name="SEQUENCE_NUMBER_VAR" select="SEQUENCE_NUMBER"/>
          <fo:table-row keep-together.within-page="always">

            <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
            <fo:block>
              <fo:block xsl:use-attribute-sets="table.cell.data">
                <xsl:choose>
                  <xsl:when test="SEQUENCE_NUMBER != -20">
                    <xsl:value-of select="ATTRIBUTE_NAME"/>
                  </xsl:when>
                  <xsl:otherwise>
                    <!--Number of Units-->
                    <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_NUMBER_OF_UNITS'][1]/MESSAGE_TEXT"/>
                  </xsl:otherwise>
                </xsl:choose>
              </fo:block>
              <xsl:if test="$ROW_OBJ/BID_RANKING = 'MULTI_ATTRIBUTE_SCORING' and WEIGHT and WEIGHT &gt; 0">
                <fo:block xsl:use-attribute-sets="table.cell.note">
                  <!--Weight-->
                  <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_WEIGHT'][1]/MESSAGE_TEXT"/> 
                  <xsl:value-of select="WEIGHT"/>
                </fo:block>  
              </xsl:if>
              
              <fo:block>
                <xsl:choose>
                  <xsl:when test="DISPLAY_ONLY_FLAG = 'Y'">
                    <fo:block xsl:use-attribute-sets="table.cell.note">
                      <!--This requires no response.-->
                      <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_REQUIRES_NO_RESP'][1]/MESSAGE_TEXT"/>
                    </fo:block>
                  </xsl:when>
                  <xsl:otherwise>
                    <!-- if attribute is not display only -->

                    <xsl:if test="MANDATORY_FLAG != 'Y'">
                      <fo:block xsl:use-attribute-sets="table.cell.note">
                        <!-- The response is optional. -->
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_OPTIONAL_RESP'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </xsl:if>

                    <xsl:choose>
                      <xsl:when test="DATATYPE = 'NUM'">
                        <fo:block xsl:use-attribute-sets="table.cell.note">
                          <!-- The response must be numeric value -->
                          <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_RESP_MUST_BE_NUMERIC'][1]/MESSAGE_TEXT"/>
                        </fo:block>
                      </xsl:when>
                      <xsl:when test="DATATYPE = 'DAT'">
                        <fo:block xsl:use-attribute-sets="table.cell.note">
                          <!-- The response must be a date value. -->
                          <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_RESP_MUST_BE_DATE'][1]/MESSAGE_TEXT"/>
                        </fo:block>
                      </xsl:when>
                      <xsl:when test="DATATYPE = 'URL'">
                        <fo:block xsl:use-attribute-sets="table.cell.note">
                          <!-- The response must be an URL value. -->
			  <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_RESP_MUST_BE_URL'][1]/MESSAGE_TEXT"/>
                        </fo:block>
                      </xsl:when>
                      <xsl:otherwise>
                      </xsl:otherwise>
                    </xsl:choose>

                  </xsl:otherwise>
                </xsl:choose>
              </fo:block>
            </fo:block>
            </fo:table-cell>

            <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
              <fo:block xsl:use-attribute-sets="table.cell.data">
                <xsl:if test="DISPLAY_TARGET_FLAG and DISPLAY_TARGET_FLAG ='Y'">
                  <xsl:choose>
                    <xsl:when test="SEQUENCE_NUMBER != -10">
                      <xsl:if test="VALUE">
                        <xsl:value-of select="VALUE"/>
                      </xsl:if>
                    </xsl:when>
                    <xsl:otherwise>
                      <xsl:if test="$NEED_BY_DATES_TO_PRINT_VAR and $NEED_BY_DATES_TO_PRINT_VAR != ''">
                        <xsl:value-of select="$NEED_BY_DATES_TO_PRINT_VAR"/>
                      </xsl:if>
                    </xsl:otherwise>
                  </xsl:choose>
                </xsl:if>
              </fo:block>
            </fo:table-cell>

            <xsl:if test="$ROW_OBJ/BID_RANKING = 'MULTI_ATTRIBUTE_SCORING' and $ROW_OBJ/SHOW_BIDDER_SCORES = 'SCORE_WEIGHT'">
              <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                <fo:block xsl:use-attribute-sets="table.cell.data">
                  <xsl:for-each select="$ROW_OBJ/LINE_ATTRIBUTE_SCORES/LINE_ATTRIBUTE_SCORES_ROW[LINE_NUMBER = $LINE_NUMBER_VAR and ATTRIBUTE_SEQUENCE_NUMBER = $SEQUENCE_NUMBER_VAR]">
                    <fo:block xsl:use-attribute-sets="table.cell.data">
                      <xsl:value-of select="DISPLAY_SCORE"/>
                    </fo:block>
                  </xsl:for-each>
                </fo:block>
              </fo:table-cell>
            </xsl:if>

            <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
              <fo:block>
                <xsl:choose>
                  <xsl:when test="SCORING_TYPE = 'LOV'">
                    <fo:block xsl:use-attribute-sets="table.cell.note">
                      <!--Circle one from the response values below:-->
                      <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_CICRLE_RESP_BELOW'][1]/MESSAGE_TEXT"/>
                    </fo:block>
                    <xsl:for-each select="$ROW_OBJ/LINE_ATTRIBUTE_SCORES/LINE_ATTRIBUTE_SCORES_ROW[LINE_NUMBER = $LINE_NUMBER_VAR and ATTRIBUTE_SEQUENCE_NUMBER = $SEQUENCE_NUMBER_VAR]">
                      <fo:block xsl:use-attribute-sets="table.cell.data">
                        <xsl:value-of select="VALUE"/>
                      </fo:block>
                      <fo:block/>
                    </xsl:for-each>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:if test="DISPLAY_ONLY_FLAG != 'Y'">
                      <fo:block xsl:use-attribute-sets="blank.row"/>
                      <fo:block xsl:use-attribute-sets="blank.row"/>
                      <fo:block xsl:use-attribute-sets="blank.row"/>
                      <fo:block xsl:use-attribute-sets="blank.row"/>
                      <fo:block xsl:use-attribute-sets="blank.row"/>
                    </xsl:if>
                  </xsl:otherwise>
                </xsl:choose>
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          </xsl:for-each>
        </fo:table-body>
      </fo:table>
    </fo:block>
      
    <xsl:if test="count($ROW_OBJ/LINE_ATTRIBUTES/LINE_ATTRIBUTES_ROW[ATTR_GROUP_SEQ_NUMBER &gt; $ATTR_GROUP_SEQ_NUMBER_VAR and LINE_NUMBER=$LINE_NUMBER_VAR][1]) &gt; 0">
      <xsl:call-template name="DISPLAY_LINE_ATTRIBUTE_GROUP">
        <xsl:with-param name="ATTR_GROUP_SEQ_NUMBER_VAR" select="($ROW_OBJ/LINE_ATTRIBUTES/LINE_ATTRIBUTES_ROW[ATTR_GROUP_SEQ_NUMBER &gt; $ATTR_GROUP_SEQ_NUMBER_VAR and LINE_NUMBER=$LINE_NUMBER_VAR])[1]/ATTR_GROUP_SEQ_NUMBER"/>
        <xsl:with-param name="LINE_NUMBER_VAR" select="$LINE_NUMBER_VAR"/>
      </xsl:call-template>
    </xsl:if>
  </xsl:template>
  
  <xsl:template name="DISPLAY_HEADER_ATTACHMENTS">
    <fo:block>
      <fo:table>
        <fo:table-column column-width="6%"/>
        <fo:table-column column-width="94%"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell>
            </fo:table-cell>
            <fo:table-cell>
              <fo:table>
                <fo:table-column column-width="45%"/>
                <fo:table-column column-width="10%"/>
                <fo:table-column column-width="45%"/>
                <fo:table-body>
                  <fo:table-row>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                      <fo:block xsl:use-attribute-sets="table.cell.heading">
                        <!--File-->
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_NAME'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                       <fo:block xsl:use-attribute-sets="table.cell.heading">
                         <!--Data Type-->
                         <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_DATA_TYPE'][1]/MESSAGE_TEXT"/>
                       </fo:block>
                    </fo:table-cell>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
                      <fo:block xsl:use-attribute-sets="table.cell.heading">
                        <!--Description-->
                        <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_DESCRIPTION'][1]/MESSAGE_TEXT"/>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <xsl:for-each select="$ROW_OBJ/ATTACHMENTS/ATTACHMENTS_ROW[ENTITY_NAME = 'PON_AUCTION_HEADERS_ALL']">
                  <fo:table-row>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                      <fo:block xsl:use-attribute-sets="table.cell.data">
                        <xsl:choose>
                          <xsl:when test="FILE_NAME">
                            <xsl:value-of select="FILE_NAME"/>
                          </xsl:when>
                          <xsl:otherwise>
                            <!--Undefined-->
                            <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_UNDEFINED'][1]/MESSAGE_TEXT"/>
                          </xsl:otherwise>
                        </xsl:choose>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                       <fo:block xsl:use-attribute-sets="table.cell.data">
                        <xsl:value-of select="DATATYPE_NAME"/>
                       </fo:block>
                    </fo:table-cell>
                    <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
                      <fo:block xsl:use-attribute-sets="table.cell.data">
                        <xsl:value-of select="DESCRIPTION"/>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  </xsl:for-each>
                </fo:table-body>
              </fo:table>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
    </fo:block>
  </xsl:template>
  

  <xsl:template name="DISPLAY_LINE_PRICE_BREAKS">
    <xsl:param name="LINE_NUMBER_VAR"/>
    <xsl:param name="PRICE_BREAK_NEG_FLAG_VAR"/>
    <xsl:param name="PRICE_BREAK_TYPE_VAR"/>
    <xsl:param name="RATE_BASED_TEMP_LABOR_VAR"/>
    <xsl:param name="UNIT_OF_MEASURE_TL_VAR"/>
    <xsl:variable name="SHIP_TO_EXIST_OBJ" select="count($ROW_OBJ/ITEM_PRICE_BREAKS/ITEM_PRICE_BREAKS_ROW[LINE_NUMBER = $LINE_NUMBER_VAR]/SHIP_TO[1])"/>
    <xsl:variable name="QUANTITY_EXIST_OBJ" select="count($ROW_OBJ/ITEM_PRICE_BREAKS/ITEM_PRICE_BREAKS_ROW[LINE_NUMBER = $LINE_NUMBER_VAR]/QUANTITY[1])"/>
    <xsl:variable name="EFFECTIVE_FROM_EXIST_OBJ" select="count($ROW_OBJ/ITEM_PRICE_BREAKS/ITEM_PRICE_BREAKS_ROW[LINE_NUMBER = $LINE_NUMBER_VAR]/EFFECTIVE_START_DATE[1])"/>
    <xsl:variable name="EFFECTIVE_TO_EXIST_OBJ" select="count($ROW_OBJ/ITEM_PRICE_BREAKS/ITEM_PRICE_BREAKS_ROW[LINE_NUMBER = $LINE_NUMBER_VAR]/EFFECTIVE_END_DATE[1])"/>
    <fo:block>
      <fo:table>
        <xsl:if test="$SHIP_TO_EXIST_OBJ &gt; 0">
          <fo:table-column/>
        </xsl:if>
        <xsl:if test="$RATE_BASED_TEMP_LABOR_VAR != 'Y' and (($QUANTITY_EXIST_OBJ &gt; 0 and $PRICE_BREAK_NEG_FLAG_VAR='N') or $PRICE_BREAK_NEG_FLAG_VAR='Y')">
          <fo:table-column/>
        </xsl:if>
        <fo:table-column/>
        <xsl:if test="$RATE_BASED_TEMP_LABOR_VAR != 'Y'">
          <fo:table-column/>
        </xsl:if>
        <fo:table-column/>
        <xsl:if test="$PRICE_BREAK_TYPE_VAR != 'CUMULATIVE' and (($EFFECTIVE_FROM_EXIST_OBJ &gt; 0 and $PRICE_BREAK_NEG_FLAG_VAR='N') or $PRICE_BREAK_NEG_FLAG_VAR='Y')">
          <fo:table-column/>
        </xsl:if>
        <xsl:if test="$PRICE_BREAK_TYPE_VAR != 'CUMULATIVE' and (($EFFECTIVE_TO_EXIST_OBJ &gt; 0 and $PRICE_BREAK_NEG_FLAG_VAR='N') or $PRICE_BREAK_NEG_FLAG_VAR='Y')">
          <fo:table-column/>
        </xsl:if>
        <fo:table-header>
          <fo:table-row>
            <xsl:if test="$SHIP_TO_EXIST_OBJ &gt; 0">
            <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
              <fo:block xsl:use-attribute-sets="table.cell.heading">
                <!--Ship To-->
                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_SHIP_TO'][1]/MESSAGE_TEXT"/>
              </fo:block>
            </fo:table-cell>
            </xsl:if>
            <xsl:if test="$RATE_BASED_TEMP_LABOR_VAR != 'Y' and (($QUANTITY_EXIST_OBJ &gt; 0 and $PRICE_BREAK_NEG_FLAG_VAR='N') or $PRICE_BREAK_NEG_FLAG_VAR='Y')">
            <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
               <fo:block xsl:use-attribute-sets="table.cell.heading">
                 <!--Quantity (uom)-->
                 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTION_QUANTITY'][1]/MESSAGE_TEXT"/> (<xsl:value-of select="$UNIT_OF_MEASURE_TL_VAR"/>)
               </fo:block>
            </fo:table-cell>
            </xsl:if>
            <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
              <fo:block xsl:use-attribute-sets="table.cell.heading">
                <!--Target Price-->
                <xsl:value-of select="$DOCUMENT_SPECIFIC_MESSAGES_OBJ/DOCUMENT_SPECIFIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_TARGET_PRICE'][1]/MESSAGE_TEXT"/>
              </fo:block>
            </fo:table-cell>
            <xsl:if test="$RATE_BASED_TEMP_LABOR_VAR != 'Y'">
            <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
              <fo:block xsl:use-attribute-sets="table.cell.heading">
                <!--Price Type (Circle one value)-->
                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_PRICE_TYPE_CIRCLE_VAL'][1]/MESSAGE_TEXT"/>
              </fo:block>
            </fo:table-cell>
            </xsl:if>
            <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
               <fo:block xsl:use-attribute-sets="table.cell.heading">
                 <!--Unit Price-->
                 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_UNIT_PRICE'][1]/MESSAGE_TEXT"/>
               </fo:block>
            </fo:table-cell>
            <xsl:if test="$PRICE_BREAK_TYPE_VAR != 'CUMULATIVE' and (($EFFECTIVE_FROM_EXIST_OBJ &gt; 0 and $PRICE_BREAK_NEG_FLAG_VAR='N') or $PRICE_BREAK_NEG_FLAG_VAR='Y')">
            <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
              <fo:block xsl:use-attribute-sets="table.cell.heading">
                <!--Effective From Date-->
                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_EFFECTIVE_FROM_DATE'][1]/MESSAGE_TEXT"/>
              </fo:block>
            </fo:table-cell>
            </xsl:if>
            <xsl:if test="$PRICE_BREAK_TYPE_VAR != 'CUMULATIVE' and (($EFFECTIVE_TO_EXIST_OBJ &gt; 0 and $PRICE_BREAK_NEG_FLAG_VAR='N') or $PRICE_BREAK_NEG_FLAG_VAR='Y')">
            <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
              <fo:block xsl:use-attribute-sets="table.cell.heading">
                <!--Effective To Date-->
                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_EFFECTIVE_TO_DATE'][1]/MESSAGE_TEXT"/>
              </fo:block>
            </fo:table-cell>
            </xsl:if>
          </fo:table-row>
        </fo:table-header>
        <fo:table-body>
          <xsl:for-each select="$ROW_OBJ/ITEM_PRICE_BREAKS/ITEM_PRICE_BREAKS_ROW[LINE_NUMBER = $LINE_NUMBER_VAR]">
          <fo:table-row>
            <xsl:if test="$SHIP_TO_EXIST_OBJ &gt; 0">
            <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
               <fo:block xsl:use-attribute-sets="table.cell.data">
                <xsl:value-of select="SHIP_TO"/>
               </fo:block>
            </fo:table-cell>
            </xsl:if>
            <xsl:if test="$RATE_BASED_TEMP_LABOR_VAR != 'Y' and (($QUANTITY_EXIST_OBJ &gt; 0 and $PRICE_BREAK_NEG_FLAG_VAR='N') or $PRICE_BREAK_NEG_FLAG_VAR='Y')">
            <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
               <fo:block xsl:use-attribute-sets="table.cell.data">
                <xsl:value-of select="QUANTITY"/>
               </fo:block>
            </fo:table-cell>
            </xsl:if>
            <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
              <fo:block xsl:use-attribute-sets="table.cell.data">
                <xsl:value-of select="PRICE"/>
              </fo:block>
            </fo:table-cell>
            <xsl:if test="$RATE_BASED_TEMP_LABOR_VAR != 'Y'">
            <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
              <fo:block xsl:use-attribute-sets="table.cell.data">
                <!--Price-->
                <xsl:value-of select="$PRICE_OBJ"/>
              </fo:block>
              <fo:block xsl:use-attribute-sets="table.cell.data">
                <!--Discount %-->
                <xsl:value-of select="$DISCOUNT_PERCENTAGE_OBJ"/>
              </fo:block>
            </fo:table-cell>
            </xsl:if>
            <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
            </fo:table-cell>
            <xsl:if test="$PRICE_BREAK_TYPE_VAR != 'CUMULATIVE' and (($EFFECTIVE_FROM_EXIST_OBJ &gt; 0 and $PRICE_BREAK_NEG_FLAG_VAR='N') or $PRICE_BREAK_NEG_FLAG_VAR='Y')">
            <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
              <fo:block xsl:use-attribute-sets="table.cell.data">
                <xsl:value-of select="EFFECTIVE_START_DATE"/>
              </fo:block>
            </fo:table-cell>
            </xsl:if>
            <xsl:if test="$PRICE_BREAK_TYPE_VAR != 'CUMULATIVE' and (($EFFECTIVE_TO_EXIST_OBJ &gt; 0 and $PRICE_BREAK_NEG_FLAG_VAR='N') or $PRICE_BREAK_NEG_FLAG_VAR='Y')">
            <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
              <fo:block xsl:use-attribute-sets="table.cell.data">
                <xsl:value-of select="EFFECTIVE_END_DATE"/>
              </fo:block>
            </fo:table-cell>
            </xsl:if>
          </fo:table-row>
          </xsl:for-each>
          
        </fo:table-body>
      </fo:table>
    </fo:block>
  </xsl:template>
  
  
  <xsl:template name="DISPLAY_SHIP_TO_ADDRESSES">
    <fo:block>
      <fo:table>
        <fo:table-column column-width="30%"/>
        <fo:table-column column-width="70%"/>
        <fo:table-header>
          <fo:table-row>
            <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
              <fo:block xsl:use-attribute-sets="table.cell.heading">
                <!--Ship To-->
                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_SHIP_TO'][1]/MESSAGE_TEXT"/>
              </fo:block>
            </fo:table-cell>
            <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
               <fo:block xsl:use-attribute-sets="table.cell.heading">
                 <!--Address-->
                 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_ADDRESS'][1]/MESSAGE_TEXT"/>
               </fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-header>
        <fo:table-body>
          <xsl:for-each select="$ROW_OBJ/PRICE_BREAK_LOCATIONS/PRICE_BREAK_LOCATIONS_ROW">
          <fo:table-row keep-together.within-page="always">
            <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
              <fo:block xsl:use-attribute-sets="table.cell.data">
                <xsl:value-of select="NAME"/>
              </fo:block>
            </fo:table-cell>
            <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
               <fo:block xsl:use-attribute-sets="data.align.value">
                 <xsl:call-template name="ADDRESS_TEMPLATE">
                   <xsl:with-param name="ADDRESS_NAME_VAR" select="ADDRESS_NAME"/>
                   <xsl:with-param name="TERRITORY_NAME_VAR" select="COUNTRY_NAME"/>
                   <xsl:with-param  name="ADDRESS_1_VAR" select="ADDRESS1"/>
                   <xsl:with-param  name="ADDRESS_2_VAR" select="ADDRESS2"/>
                   <xsl:with-param  name="CITY_VAR" select="CITY"/>
                   <xsl:with-param  name="STATE_VAR" select="STATE"/>
                   <xsl:with-param  name="PROVINCE_OR_REGION_VAR" select="PROVINCE_OR_REGION"/>
                   <xsl:with-param  name="ZIP_CODE_VAR" select="ZIP_CODE"/>
                   <xsl:with-param  name="POSTAL_CODE_VAR" select="POSTAL_CODE"/>
                   <xsl:with-param  name="COUNTRY_VAR" select="COUNTRY"/>
                   <xsl:with-param  name="COUNTY_VAR" select="COUNTY"/>
                 </xsl:call-template>
               </fo:block>
            </fo:table-cell>
          </fo:table-row>
          </xsl:for-each>
        </fo:table-body>
      </fo:table>
    </fo:block>
  </xsl:template>
  
  <xsl:template name="DISPLAY_LINE_ATTACHMENTS">
    <xsl:param name="LINE_NUMBER_VAR"/>
    <fo:block>
      <fo:table>
        <fo:table-column column-width="45%"/>
        <fo:table-column column-width="10%"/>
        <fo:table-column column-width="45%"/>
        <fo:table-header>
          <fo:table-row>
            <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
              <fo:block xsl:use-attribute-sets="table.cell.heading">
                <!--File-->
                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_NAME'][1]/MESSAGE_TEXT"/>
              </fo:block>
            </fo:table-cell>
            <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
               <fo:block xsl:use-attribute-sets="table.cell.heading">
                 <!--Data Type-->
                 <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_DATA_TYPE'][1]/MESSAGE_TEXT"/>
               </fo:block>
            </fo:table-cell>
            <fo:table-cell xsl:use-attribute-sets="table.cell.heading.style">
              <fo:block xsl:use-attribute-sets="table.cell.heading">
                <!--Description-->
                <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUCTS_DESCRIPTION'][1]/MESSAGE_TEXT"/>
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-header>
        <fo:table-body>
          <xsl:for-each select="$ROW_OBJ/ATTACHMENTS/ATTACHMENTS_ROW[ENTITY_NAME = 'PON_AUCTION_ITEM_PRICES_ALL' and PK2_VALUE = $LINE_NUMBER_VAR]">
          <fo:table-row>
            <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
              <fo:block xsl:use-attribute-sets="table.cell.data">
                <xsl:choose>
                  <xsl:when test="FILE_NAME">
                    <xsl:value-of select="FILE_NAME"/>
                  </xsl:when>
                  <xsl:otherwise>
                    <!--Undefined-->
                    <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_AUC_UNDEFINED'][1]/MESSAGE_TEXT"/>
                  </xsl:otherwise>
                </xsl:choose>
              </fo:block>
            </fo:table-cell>
            <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
               <fo:block xsl:use-attribute-sets="table.cell.data">
                <xsl:value-of select="DATATYPE_NAME"/>
               </fo:block>
            </fo:table-cell>
            <fo:table-cell xsl:use-attribute-sets="table.cell.data.style">
              <fo:block xsl:use-attribute-sets="table.cell.data">
                <xsl:value-of select="DESCRIPTION"/>
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          </xsl:for-each>
        </fo:table-body>
      </fo:table>
    </fo:block>
  </xsl:template>
  
  <xsl:template name="ADDRESS_TEMPLATE">
    <xsl:param name="TERRITORY_NAME_VAR"/>
    <xsl:param name="ADDRESS_NAME_VAR"/>
    <xsl:param name="ADDRESS_1_VAR"/>
    <xsl:param name="ADDRESS_2_VAR"/>
    <xsl:param name="CITY_VAR"/>
    <xsl:param name="STATE_VAR"/>
    <xsl:param name="PROVINCE_OR_REGION_VAR"/>
    <xsl:param name="ZIP_CODE_VAR"/>
    <xsl:param name="POSTAL_CODE_VAR"/>
    <xsl:param name="COUNTRY_VAR"/>
    <xsl:param name="COUNTY_VAR"/>
    <fo:block>
     <xsl:if test="$ADDRESS_NAME_VAR and $ADDRESS_NAME_VAR != ''">
       <fo:block>
         <xsl:value-of select="$ADDRESS_NAME_VAR"/>
       </fo:block>
     </xsl:if>
     <xsl:choose>
       <xsl:when test="$COUNTRY_VAR = 'JP'">
         <!--format address for japan countries -->
         <fo:block>
           <xsl:value-of select="$TERRITORY_NAME_VAR"/>
         </fo:block>

         <xsl:choose>
           <xsl:when test="$POSTAL_CODE_VAR != ''">
             <fo:block>
               <xsl:value-of select="$POSTAL_CODE_VAR"/>
             </fo:block>
           </xsl:when>
           <xsl:otherwise>
             <xsl:if test="$ZIP_CODE_VAR != ''">
               <fo:block>
                 <xsl:value-of select="$ZIP_CODE_VAR"/>
               </fo:block>
             </xsl:if>
           </xsl:otherwise>
         </xsl:choose>

         <xsl:if test="$PROVINCE_OR_REGION_VAR != ''">
           <fo:block>
             <xsl:value-of select="$PROVINCE_OR_REGION_VAR"/>
           </fo:block>
         </xsl:if>
         
         <xsl:if test="$CITY_VAR != ''">
           <fo:block>
             <xsl:value-of select="$CITY_VAR"/>
           </fo:block>
         </xsl:if>
         
         <fo:block>
           <xsl:value-of select="$ADDRESS_1_VAR"/>
         </fo:block>
         
         <xsl:if test="$ADDRESS_2_VAR != ''">
           <fo:block>
             <xsl:value-of select="$ADDRESS_2_VAR"/>
           </fo:block>
         </xsl:if>
         
       </xsl:when>
       <xsl:otherwise>
         <!--format address for non japan countries-->
         

         <fo:block>
           <xsl:value-of select="$ADDRESS_1_VAR"/>
         </fo:block>
         
         <xsl:if test="$ADDRESS_2_VAR != ''">
           <fo:block>
             <xsl:value-of select="$ADDRESS_2_VAR"/>
           </fo:block>
         </xsl:if>
         
         <fo:block>
           <xsl:value-of select="$CITY_VAR"/>
           
           <xsl:choose>
             <xsl:when test="$COUNTRY_VAR = 'US'">
               <xsl:if test="$STATE_VAR != ''">
                 ,<xsl:value-of select="$STATE_VAR"/><xsl:value-of select="' '"/>
               </xsl:if>
               <xsl:choose>
                 <xsl:when test="$POSTAL_CODE_VAR != ''">
                   <xsl:value-of select="$POSTAL_CODE_VAR"/>
                 </xsl:when>
                 <xsl:otherwise>
                   <xsl:if test="$ZIP_CODE_VAR != ''">
                     <xsl:value-of select="$ZIP_CODE_VAR"/>
                   </xsl:if>
                 </xsl:otherwise>
               </xsl:choose>
             </xsl:when>
             <xsl:otherwise>
               <xsl:choose>
                 <xsl:when test="$PROVINCE_OR_REGION_VAR != ''">
                   <fo:block>
                     <xsl:value-of select="$PROVINCE_OR_REGION_VAR"/><xsl:value-of select="' '"/>
                     <xsl:choose>
                       <xsl:when test="$POSTAL_CODE_VAR != ''">
                         <xsl:value-of select="$POSTAL_CODE_VAR"/>
                       </xsl:when>
                       <xsl:otherwise>
                         <xsl:if test="$ZIP_CODE_VAR != ''">
                           <xsl:value-of select="$ZIP_CODE_VAR"/>
                         </xsl:if>
                       </xsl:otherwise>
                     </xsl:choose>
                   </fo:block>
                 </xsl:when>
                 <xsl:otherwise>
                   <xsl:choose>
                     <xsl:when test="$POSTAL_CODE_VAR != ''">
                       <xsl:value-of select="' '"/><xsl:value-of select="$POSTAL_CODE_VAR"/>
                     </xsl:when>
                     <xsl:otherwise>
                       <xsl:if test="$ZIP_CODE_VAR != ''">
                         <xsl:value-of select="' '"/><xsl:value-of select="$ZIP_CODE_VAR"/>
                       </xsl:if>
                     </xsl:otherwise>
                   </xsl:choose>
                 </xsl:otherwise>
               </xsl:choose>
             </xsl:otherwise>
           </xsl:choose>

         </fo:block>   
           
         <fo:block>
           <xsl:value-of select="$TERRITORY_NAME_VAR"/>
         </fo:block>

       </xsl:otherwise>
     </xsl:choose>
   </fo:block>
  </xsl:template>
 
  <xsl:template name="checkedBox">
    <fo:table table-layout="fixed">
      <fo:table-column column-width="1pt"/>
      <fo:table-column column-width="10pt"/>
      <fo:table-body>
        <fo:table-row>
          <fo:table-cell/>
          <fo:table-cell display-align="center" 
            padding="0pt">
            <fo:block font-family="Times" 
              font-size="8pt" 
              font-weight="normal" 
              text-align="center"
              border="0.5pt solid black">X</fo:block>
          </fo:table-cell>
        </fo:table-row>
      </fo:table-body>
    </fo:table>
  </xsl:template>
  
  <xsl:template name="unCheckedBox">
    <fo:table table-layout="fixed">
      <fo:table-column column-width="1pt"/>
      <fo:table-column column-width="10pt"/>
      <fo:table-body>
        <fo:table-row>
          <fo:table-cell/>
          <fo:table-cell display-align="center" 
            padding="0pt">
            <fo:block font-family="Times" 
              font-size="8pt" 
              font-weight="normal" 
              text-align="center"
              border="0.5pt solid black">&#xA0;</fo:block>
          </fo:table-cell>
        </fo:table-row>
      </fo:table-body>
    </fo:table>
  </xsl:template>
  <xsl:template name="pageFooterRight"> 
    <xsl:variable name="pon_page"> 
      <xsl:value-of select="$GENERIC_MESSAGES_OBJ/GENERIC_MESSAGES_ROW[MESSAGE_NAME='PON_PAGE'][1]/MESSAGE_TEXT"/> 
    </xsl:variable> 
    <!-- Get the String before the PAGE_NUM token --> 
    <xsl:variable name="string_before_page_num"> 
      <xsl:value-of select="substring-before($pon_page,'&amp;PAGE_NUM')"/> 
    </xsl:variable> 
    <!-- Get the String after the PAGE_NUM token --> 
    <xsl:variable name="string_after_page_num"> 
      <xsl:value-of select="substring-after($pon_page,'&amp;PAGE_NUM')"/> 
    </xsl:variable> 
    <!-- If the String after PAGE_NUM token contains the the token END_PAGE --> 
    <xsl:if test="contains($string_after_page_num,'&amp;END_PAGE')"> 
      <xsl:variable name="string_before_end_page"> 
        <xsl:value-of select="substring-before($string_after_page_num,'&amp;END_PAGE')"/> 
      </xsl:variable> 
      <xsl:variable name="string_after_end_page"> 
        <xsl:value-of select="substring-after($string_after_page_num,'&amp;END_PAGE')"/> 
      </xsl:variable> 
      <xsl:value-of select="$string_before_page_num"/><fo:page-number/> 
      <xsl:value-of select="$string_before_end_page"/> 
      <xsl:choose> 
        <xsl:when test="$ROW_OBJ/NEG_PRINTED_WITH_CONTRACTS='N'"> 
          <fo:page-number-citation ref-id="last-paragraph"/>  
        </xsl:when> 
        <xsl:otherwise> 
          <fo:page-number-citation ref-id="eod"/>  
        </xsl:otherwise> 
      </xsl:choose> 
      <xsl:value-of select="$string_after_end_page"/> 
    </xsl:if> 
    <!-- If the String before PAGE_NUM token contains the the token END_PAGE --> 
    <xsl:if test="contains($string_before_page_num,'&amp;END_PAGE')"> 
      <xsl:variable name="string_before_end_page"> 
        <xsl:value-of select="substring-before($string_before_page_num,'&amp;END_PAGE')"/> 
      </xsl:variable> 
      <xsl:variable name="string_after_end_page"> 
        <xsl:value-of select="substring-after($string_before_page_num,'&amp;END_PAGE')"/> 
               </xsl:variable> 
               <xsl:value-of select="$string_before_end_page"/> 
               <xsl:choose> 
                   <xsl:when test="$ROW_OBJ/NEG_PRINTED_WITH_CONTRACTS='N'"> 
                       <fo:page-number-citation ref-id="last-paragraph"/>  
                   </xsl:when> 
                   <xsl:otherwise> 
                       <fo:page-number-citation ref-id="eod"/>  
                   </xsl:otherwise> 
               </xsl:choose> 
               <xsl:value-of select="$string_after_end_page"/> 
               <fo:page-number/><xsl:value-of select="$string_after_page_num"/> 
         </xsl:if>  
   </xsl:template>
  </xsl:stylesheet>
