I need to take a list of userIds and translate them into a select list of userIds in an html select list. The end-user will need to be able to select the users in the table and click on a button next to the select list. My main problem is putting the buttons in the xsl because I do not understand what the template should be.
My XML:
<?xml version="1.0" encoding="UTF-8" ?>
<taskManagerRole xmlns="<response xmlns="">
<role>
<role>
<roleId>ee_qualitycontrol</roleId>
<roleName>Performs teamworks process modeling functions</roleName>
</role>
</role>
<currentTaskManagerUsers>
<users>
<user>
<userId>billj</userId>
<firstName>Bill</firstName>
<lastName>Johnson</lastName>
</user>
<user>
<userId>suer</userId>
<firstName>Sue</firstName>
<lastName>Richards</lastName>
</user>
</users>
</currentTaskManagerUsers>
This is my XSL:
<xsl:template match="currentTaskManagerUsers">
<select name="roleAvailable_Select" size="16" style="width:260">
<xsl:for-each select="users/user">
<option>
<xsl:value-of select="userId"/>
</option>
</xsl:for-each>
</select>
</xsl:template>
<xsl:template name="troy">
<td valign="middle" align="center"><br></br>
<input style="width=85px" class="button" name="addB" type="submit" value="Add" />
<br></br><br></br>
<input style="width=85px" class="button" name="removeB" type="submit" value="Remove" /> <br></br>
</td>
</xsl:template>
My XML:
<?xml version="1.0" encoding="UTF-8" ?>
<taskManagerRole xmlns="<response xmlns="">
<role>
<role>
<roleId>ee_qualitycontrol</roleId>
<roleName>Performs teamworks process modeling functions</roleName>
</role>
</role>
<currentTaskManagerUsers>
<users>
<user>
<userId>billj</userId>
<firstName>Bill</firstName>
<lastName>Johnson</lastName>
</user>
<user>
<userId>suer</userId>
<firstName>Sue</firstName>
<lastName>Richards</lastName>
</user>
</users>
</currentTaskManagerUsers>
This is my XSL:
<xsl:template match="currentTaskManagerUsers">
<select name="roleAvailable_Select" size="16" style="width:260">
<xsl:for-each select="users/user">
<option>
<xsl:value-of select="userId"/>
</option>
</xsl:for-each>
</select>
</xsl:template>
<xsl:template name="troy">
<td valign="middle" align="center"><br></br>
<input style="width=85px" class="button" name="addB" type="submit" value="Add" />
<br></br><br></br>
<input style="width=85px" class="button" name="removeB" type="submit" value="Remove" /> <br></br>
</td>
</xsl:template>