|
populate a drop down from another xml file
I'm wanting to populate a dropdown list of departments since the list is long and may change I'd like the list to be in another file rather than the main xml file. Below is the current xml code but I'd like to replace the "options" with data from the other file.
Any help would be great thanks.
<xsl:template name="SV_departmentnameEditTD"> <td class="ValueText">
<input type="hidden" name="{name}" id="{name}">
<xsl:attribute name="value"><![CDATA[<undefined><nochange>
</nochange></undefined>]]></xsl:attribute>
<select size="1" class="inputTextBox" name="_SV_CTRL_{name}" value="{value}" onchange="updateSvXml('document.forms[0]._SV_CTRL_{name}')">
<option value="{value}"> <xsl:value-of select="value"/> </option>
<option value="dep1">dep1</option>
<option value="dep2">dep2</option>
<option value="dep3">dep3</option>
<option value="dep4">dep4</option>
</select>
</td>
Last edited by thinguy; 11-05-2002 at 09:04 PM..
|