[RESOLVED] Populate form field attributes via XSL?

webmasterbeta

New Member
I'm building an XSL in which I need to be able to put certain XML data (from elements) into form field attributes. Here is my XSL (part of it, at least):

<xsl:for-each select="result/accounts/account">
<xsl:sort select="name" />
<tr>
<td><input type="checkbox" id="@id" value=http://www.webdeveloper.com/forum/archive/index.php/"@id" /></td>
<td><label for="@id"><xsl:value-of select="name" /></label></td>
<td><xsl:value-of select="modDate" /></td>
<td><xsl:value-of select="modBy" /></td>
<td><xsl:value-of select="comments" /></td>
<td>[<a href="javascript:void(0);">edit</a>]</td>
</tr>
</xsl:for-each>


So, my XML file has an element named <id> in each child node that contains the information I need. Based on that, I would like to make that the unique ID of the form field and also set that as the fields value such that my input box is as follows:

...<input type="checkbox" id="10" value="10" />...
...<input type="checkbox" id="11" value="11" />...
... and so on...

How would I go about accomplishing this? Thanks in advance.
 
Top