Form control example demo.xsl file - Form control example demo.xsl file - This XSL file is part of the Form Control Example form. It contains the HTML form controls and XSL code examples you can follow to use these controls in your own forms files. - Perceptive Content - Form Designer - Perceptive-Content/Form-Designer/Foundation-26.1/Form-Designer-User-Help/Form-Designer-User-Help/Use-Example-Forms/Form-control/Form-control-example-demo.xsl-file - Foundation 26.1 - Foundation 26.1

Form Designer User Help

Platform
Perceptive Content
Product
Form Designer
Release
Foundation 26.1
License
ft:lastPublication
2026-04-16T22:35:13.118000
ft:locale
en-US

This XSL file is part of the Form Control Example form. It contains the HTML form controls and XSL code examples you can follow to use these controls in your own forms files.

<?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" style="width:100px">Ship To:</td>
                    <td class="fieldcell">
                       <xsl:variable name="ship_to">
                          <xsl:value-of select="SHIP_TO" />
                       </xsl:variable>
                       <select name="cboVendorName" id="cboVendorName" class="fieldcell" style="width:75px" tabindex="1">
                          <xsl:attribute name="value">
                             <xsl:value-of select="SHIP_TO" />
                          </xsl:attribute>
                          <xsl:for-each select="document('Lookups.xml')/lookups/vendors/row">
                             <option>
                                <xsl:attribute name="value">
                                   <xsl:value-of select="value" />
                                </xsl:attribute>
                                <xsl:value-of select="value" />
                             </option>
                          </xsl:for-each>
                       </select>
                    </td>
                 </tr>
                 <tr>
                    <td class="fieldcell" style="width:100px">Ship Date:</td>
                    <td class="fieldcell">
                       <input type="text" name="txtSHIP_DATE" class="fieldcell" style="width:150px">
                          <xsl:attribute name="value">
                             <xsl:value-of select="SHIP_DATE" />
                          </xsl:attribute>
                       </input>
                    </td>
                 </tr>
                 <tr>
                    <td class="fieldcell" style="width:100px">Ship Via:</td>
                    <td class="fieldcell" style="width:275px">
                       <xsl:variable name="ship_via">
                          <xsl:value-of select="SHIP_VIA" />
                       </xsl:variable>
                       <div>
                          <xsl:attribute name="value">
                             <xsl:value-of select="SHIP_VIA" />
                          </xsl:attribute>
                          <xsl:choose>
                             <xsl:when test="$ship_via='FedEx'">
                                <input type="radio" name="rdoSHIP_VIA" checked="true" class="ChecksAndRadios">FedEx</input>
                             </xsl:when>
                             <xsl:otherwise>
                                <input type="radio" name="rdoSHIP_VIA" class="ChecksAndRadios">FedEx</input>
                             </xsl:otherwise>
                          </xsl:choose>
                          <xsl:choose>
                             <xsl:when test="$ship_via='UPS'">
                                <input type="radio" name="rdoSHIP_VIA" checked="true" class="ChecksAndRadios">UPS</input>
                             </xsl:when>
                             <xsl:otherwise>
                                <input type="radio" name="rdoSHIP_VIA" class="ChecksAndRadios">UPS</input>
                             </xsl:otherwise>
                          </xsl:choose>
                          <xsl:choose>
                             <xsl:when test="$ship_via='DHL'">
                                <input type="radio" name="rdoSHIP_VIA" checked="true" class="ChecksAndRadios">DHL</input>
                             </xsl:when>
                             <xsl:otherwise>
                                <input type="radio" name="rdoSHIP_VIA" class="ChecksAndRadios">DHL</input>
                             </xsl:otherwise>
                          </xsl:choose>
                       </div>
                    </td>
                 </tr>
                 <tr>
                    <td class="fieldcell" style="width:100px">Shipping Instructions:</td>
                    <td class="fieldcell">
                       <textarea rows="8" cols="150" class="fieldcellsmaller" style="width:400px" id="txaSHIP_IN" name="txaSHIP_IN">
                         <xsl:value-of select="SHIP_IN" />
                       </textarea>
                    </td>
                 </tr>
                 <tr>
                    <td class="fieldcell" style="width:100px">Payment Received?</td>
                    <td class="fieldcell">
                       <input type="checkbox" name="chkPAYMENT_RECEIVED" class="ChecksAndRadios">
                          <xsl:attribute name="value">
                             <xsl:value-of select="PAYMENT_RECEIVED" />
                          </xsl:attribute>
                       </input>
                    </td>
                 </tr>
              </table>
           </form>
        </body>
     </html>
  </xsl:template>
</xsl:stylesheet>