<?xml version="1.0" standalone="no" ?>
<!DOCTYPE pdftemplate [
<!ENTITY ftr SYSTEM "examples/t3_footer.xml">
]>

<pdftemplate name="test">

  <pagedef pagesize="A4" landscape='1'>

   <always>
      <font size="24" face="Times-Italic"/>
      <textbox x="50" y="550" w="760" h="25" border='1' size="24" justify="center">T3: Loop Test</textbox>

      <!-- Table Header -->

      <font size="18" face="Times-Bold"/>
      <row h='25' y='475'>
         <textbox bgcolor='200,200,200' w="200" h='25' x='50'  border='1' justify='center'>Last Name</textbox>
         <textbox bgcolor='200,200,200' w="200" h='25' x='250'  border='1' justify='center'>First Name</textbox>
         <textbox bgcolor='200,200,200' w="200" h='25' x='450'  border='1' justify='right'>A Number</textbox>
      </row>
   </always>

   <font size="14" face="Times-Italic"/>

   <loop x='50' w='400' y='450' y2='120' name='DATA'>
      
      <row h='25'>

         <if name='__ODD__' is='TRUE'>
           <circle x='70' y='12' r='5' color='255,0,0' fillcolor='255,0,0'/>
           <textbox w="10" h='25' x='50'>hi</textbox>
         </if>

         <textbox w="200" h='25' x='50'  border='1' justify='center'><var name='LNAME'/></textbox>
         <textbox w="200" h='25' x='250'  border='1' justify='center'><var name='FNAME'/></textbox>
         <textbox w="200" h='25' x='450'  border='1' justify='right' rmargin='10'><var name='VAL'/></textbox>
      </row>
      
   </loop>

<page-break/>

   <!-- How about a maxiters loop now ? -->
   <loop x='50' w='400' y='450' y2='120' name='DATA2' maxiters='3'>
      
      <row h='25'>
         <textbox w="200" h='25' x='50'  border='1' justify='center' color='255,0,0'><var name='LNAME'/></textbox>
         <textbox w="200" h='25' x='250'  border='1' justify='center'><var name='FNAME'/></textbox>
         <textbox w="200" h='25' x='450'  border='1' justify='right' rmargin='10'><var name='VAL'/></textbox>
      </row>
      
   </loop>


   <!-- This is the footer.  It is in an always block so that it will appear
        on every page, not just the one after the lop ends.
     -->
     
   &ftr;
   
</pagedef>

</pdftemplate>
