<Section Size="Letter"> <Site>
<Group Left="20" Top="20" Height="500px" Width="750px">
<!-- Approved Beneficiaries-->
<Borders>
<Left Color="Black" Width="5" />
<Right Color="Black" Width="5"/>
<Top Color="Black" Width="5"/>
<Bottom Color="Black" Width="5"/>
</Borders>
</Group>
<Group Top="24" Left ="24" Height="489px" Width="739px">
<Borders>
<Left Color="Black" Width="1" />
<Right Color="Black" Width="1"/>
<Top Color="Black" Width="1"/>
<Bottom Color="Black" Width="1"/>
</Borders>
</Group>
<Text Top="30" Left="60" Style="SectionLabel">Approved Beneficiaries</Text>
<Group Top="55" Left ="54.5" Height="45.5px" Width="646.5px">
<Borders>
<Left Color="Black" Width="1" />
<Right Color="Black" Width="1"/>
<Top Color="Black" Width="1"/>
<Bottom Color="Black" Width="1"/>
</Borders>
</Group>
<Text Top="72" Left="60" Style="Standard_Bold">First Name</Text>
<Text Top="72" Left="150" Style="Standard_Bold">Last Name</Text>
<Text Top="72" Left="250" Style="Standard_Bold">SSN</Text>
<xsl:call-template name="ApprovedBeneficiaryList">
<xsl:with-param name="position">1</xsl:with-param>
<xsl:with-param name="linenumber">90</xsl:with-param>
</xsl:call-template>
Template
<!--Approved Beneficiaries List--><xsl:template match="ApprovedBeneficiaries/Row"><xsl:param name="top" /><xsl:param name="left" />
< !-- Rectangle element inserted here... -->
<xsl:element name="Text"><xsl:attribute name="Style">Standard</xsl:attribute>
<xsl:attribute name="Top"><xsl:value-of select="$top"/>
</xsl:attribute><xsl:attribute name="Left"><xsl:value-of select="$left"/>
</xsl:attribute><xsl:value-of select="FirstName"/></xsl:element>
<!-- Rectangle element inserted here... -->
<xsl:element name="Text"><xsl:attribute name="Style">Standard</xsl:attribute>
<xsl:attribute name="Top"><xsl:value-of select="$top"/>
</xsl:attribute><xsl:attribute name="Left"><xsl:value-of select="$left+90"/>
</xsl:attribute><xsl:value-of select="LastName"/></xsl:element>
<!-- Rectangle element inserted here... -->
<xsl:element name="Text"><xsl:attribute name="Style">Standard</xsl:attribute>
<xsl:attribute name="Top">xsl:value-of select="$top"/>
</xsl:attribute><xsl:attribute name="Left"><xsl:value-of select="$left+190"/>
</xsl:attribute><xsl:value-of select="SocialSecurityNumber"/></xsl:element></xsl:template>
Recursive Template Call:
<xsl:template name="ApprovedBeneficiaryList"><xsl:param name="position"/>
<xsl:param name="linenumber"/>
<xsl:if test="$position <= count(//ApprovedBeneficiaries/Row)">
<xsl:apply-templates select="//ApprovedBeneficiaries/Row[position() = $position]">
<xsl:with-param name="top"><xsl:value-of select="$linenumber"/></xsl:with-param>
<xsl:with-param name="left"><xsl:value-of select="60"/></xsl:with-param>
</xsl:apply-templates>
<xsl:call-template name="ApprovedBeneficiaryList">
<xsl:with-param name="position">
<xsl:value-of select="$position+1"/>
</xsl:with-param>
<xsl:with-param name="linenumber">
<xsl:value-of select="$linenumber+15"/>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:template>