Reputation: 3
This is the bottom part of the current HTML output that gets created:
<p style="margin-top: 0px; margin-bottom: 0px;">Agreed and accepted,</p>
<p style="margin-top: 0px; margin-bottom: 0px;"> </p>
<table width="200" border="0" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<td>
<p style="margin-top: 0px; margin-bottom: 0px;"> </p>
<p style="margin-top: 0px; margin-bottom: 0px;"> </p>
<p style="margin-top: 0px; margin-bottom: 0px;">__________________________________________________</p>
</td>
<td>
<p style="margin-top: 0px; margin-bottom: 0px;"> </p>
<p style="margin-top: 0px; margin-bottom: 0px;"> </p>
<p style="margin-top: 0px; margin-bottom: 0px;">________________________________________</p>
</td>
</tr>
<tr>
<td>FirstName LastName</td>
<td>Date</td>
</tr>
</tbody>
</table>
I need the XSLT to add data variable values for the eSigIPAddress and eSigDate just after the FirstName LastName Date fields similar to below:
<p style="margin-top: 0px; margin-bottom: 0px;">Agreed and accepted,</p>
<p style="margin-top: 0px; margin-bottom: 0px;"> </p>
<table width="200" border="0" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<td>
<p style="margin-top: 0px; margin-bottom: 0px;"> </p>
<p style="margin-top: 0px; margin-bottom: 0px;"> </p>
<p style="margin-top: 0px; margin-bottom: 0px;">__________________________________________________</p>
</td>
<td>
<p style="margin-top: 0px; margin-bottom: 0px;"> </p>
<p style="margin-top: 0px; margin-bottom: 0px;"> </p>
<p style="margin-top: 0px; margin-bottom: 0px;">________________________________________</p>
</td>
</tr>
<tr>
<td>FirstName LastName</td>
<td>Date</td>
<td>$eSigIPAddress</td>
<td>$eSigDate</td>
</tr>
</tbody>
</table>
Upvotes: 0
Views: 28
Reputation: 25
Try the below:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/table/tbody/tr/td">
<xsl:copy>
<xsl:apply-templates select="@*|Date"/>
</xsl:copy>
<td>$eSigIPAddress</td>
<td>$eSigDate</td>
</xsl:template>
</xsl:stylesheet>
Upvotes: 1