posted 24 years ago
You probably found the answer you were looking for by now, but perhaps this will help someone. In order to include form elements and assign them a name or value dynaically from the XML source, you must use the xsl:element tag, then assign attributes to that element. This should generate an HTML form element of type checkbox with the name "employeeId" with the value of the "employee_id" found in the XML document:
<xsl:element name="input">
<xsl:attribute name="type">checkbox</xsl:attribute>
<xsl:attribute name="name">employeeId</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of select="employee_id" />
</xsl:attribute>
</xsl:element>
Hope this helps!
Bill