This XSL file is part of the Row Management Example form. It contains an HTML table and XSL code examples you can follow to use repeating rows in your own forms with Perceptive Content. Refer to Row management example files to view the entire set of form files that comprise this example.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/page">
<html>
<head>
<link href="FormStylesheet.css" rel="stylesheet" type="text/css" />
<title>Form</title>
</head>
<body>
<form name="frmForm">
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td class="fieldcell" colspan="4">
<img src="Perceptive.jpg" />
<br />
<br />
</td>
</tr>
<tr>
<td class="fieldcell" nowrap="true" style="width:100px">Vendor ID:</td>
<td class="fieldcell">
<input type="text" id="txtVendorCode" name="txtVendorCode" class="fieldcell" style="width:150px">
<xsl:attribute name="value">
<xsl:value-of select="VendorCode" />
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td class="fieldcell" style="width:100px">Vendor Name:</td>
<td class="fieldcell">
<input type="text" name="txtVendorName" class="fieldcell" style="width:150px">
<xsl:attribute name="value">
<xsl:value-of select="VendorName" />
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td class="fieldcell" style="width:100px">Vendor Address:</td>
<td class="fieldcell">
<input type="text" name="txtVendorAddress" class="fieldcell" style="width:150px">
<xsl:attribute name="value">
<xsl:value-of select="VendorAddress" />
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td class="fieldcell" style="width:100px">Vendor City:</td>
<td class="fieldcell">
<input type="text" name="txtVendorCity" class="fieldcell" style="width:150px">
<xsl:attribute name="value">
<xsl:value-of select="VendorCity" />
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td class="fieldcell" style="width:100px">Vendor State:</td>
<td class="fieldcell">
<input type="text" name="txtVendorState" class="fieldcell" style="width:150px">
<xsl:attribute name="value">
<xsl:value-of select="VendorState" />
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td class="fieldcell" style="width:100px">Vendor Zip Code:</td>
<td class="fieldcell">
<input type="text" name="txtVendorZipCode" class="fieldcell" style="width:150px">
<xsl:attribute name="value">
<xsl:value-of select="VendorZipCode" />
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td class="fieldcell" style="width:134px" nowrap="true">Invoice Date (MM/DD/YYYY):</td>
<td class="fieldcell">
<input type="text" name="txtInvoiceDate" class="fieldcell" maxlength="10" style="width:150px">
<xsl:attribute name="value">
<xsl:value-of select="InvoiceDate" />
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td class="fieldcell" style="width:100px">Invoice Number:</td>
<td class="fieldcell">
<input type="text" name="txtInvoiceNumber" class="fieldcell" maxlength="15" style="width:150px">
<xsl:attribute name="value">
<xsl:value-of select="InvoiceNumber" />
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td class="fieldcell" style="width:100px">Purchase Order:</td>
<td class="fieldcell">
<input type="text" name="txtPONumber" class="fieldcell" maxlength="30" style="width:150px">
<xsl:attribute name="value">
<xsl:value-of select="PONumber" />
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td class="fieldcell" style="width: 100px">Project:</td>
<td>
<input type="text" id="txtProject" name="txtProject" class="fieldcell" style="width:150px">
<xsl:attribute name="value">
<xsl:value-of select="Project" />
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td class="fieldcell" style="width:100px">Invoice Amount:</td>
<td class="fieldcell">
<input type="text" name="txtVendorTotalAmt" id="txtVendorTotalAmt" class="amount" style="width:150px;text-align:right">
<xsl:attribute name="value">
<xsl:value-of select="TotalAmount" />
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td class="fieldcell" colspan="2">
<hr style="width:400px" />
</td>
</tr>
</table>
<table style="width:auto">
<thead>
<tr>
<td class="fieldcell">Item Code</td>
<td class="fieldcell">Description</td>
<td class="fieldcell">Unit Price</td>
<td class="fieldcell">Quantity</td>
</tr>
</thead>
<tbody>
<xsl:for-each select="LineItemDetailsBlock/accountInfo">
<tr repeat="row" delete="row">
<td class="fieldcell" nowrap="true" style="width:auto">
<input type="text" name="txtItemCode" id="txtItemCode" class="fieldcell" style="width:75px">
<xsl:attribute name="value">
<xsl:value-of select="ItemCode" />
</xsl:attribute>
</input>
</td>
<td class="fieldcell" nowrap="true" style="width:auto">
<input type="text" id="txtDescription" name="txtDescription" class="fieldcell" style="width:75px">
<xsl:attribute name="value">
<xsl:value-of select="Description" />
</xsl:attribute>
</input>
</td>
<td class="fieldcell" nowrap="true" style="width:auto">
<input type="text" id="txtUnitPrice" name="txtUnitPrice" class="fieldcell" style="width:75px; text-align:right;">
<xsl:attribute name="value">
<xsl:value-of select="UnitPrice" />
</xsl:attribute>
</input>
</td>
<td class="fieldcell" valign="middle">
<input type="text" name="txtQuantity" class="amount" style="width:75px; text-align:right;">
<xsl:attribute name="value">
<xsl:value-of select="Quantity" />
</xsl:attribute>
</input>
</td>
</tr>
</xsl:for-each>
</tbody>
<tfoot>
<tr>
<td class="fieldcell" colspan="5">
<hr style="width:400px" />
</td>
</tr>
<tr>
<td colspan="5">
<input type="button" value="Add Section" class="green" repeat="row" />
<input type="button" value="Delete Section" class="red" delete="row" />
</td>
</tr>
</tfoot>
</table>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>