I'm glad this is working for you. As for the "Select One", you can either add an addition user to your datasource or you can revise the xslt to include that option. The previous would create a name of "Select One,," in the dropdown assuming you leave the project and number attributes empty. That looks ugly so I'd suggest revising the xslt, however you'll need to work a little for this one
. You have all the info you need to edit the xslt file.
Your goal is xml that looks like:
<users>
<item text="Select One" value="0"></item>
<item text="John Smith, ICT, 07000000001" value="07000000001"></item>
<item text="Anne Jones, ICT, 07000000002" value="07000000002"></item>
<item text="Jack Scott, ICT, 07000000003" value="07000000003"></item>
<item text="Jane Lewis, ICT, 07000000004" value="07000000004"></item>
</users>
The first item is always the default item in an html <select>. I chose a value of 0 but you can use what ever you like. I have found that an empty value (value="") can be inconsistent when performing validation on a dropdownlists.
Ok now in the xslt file ....
1 <users>
2 <xsl:for-each select="mob_numbers/mob_number">
3 <item>
4 <xsl:attribute name="text">
5 <xsl:value-of select ="@user"/>, <xsl:value-of select ="@project"/>, <xsl:value-of select ="@number"/>
6 </xsl:attribute>
7 <xsl:attribute name="value">
8 <xsl:value-of select ="@number"/>
9 </xsl:attribute>
10 </item>
11 </xsl:for-each>
12 </users>
This is the bulk of where things are happening. You want the "Select One" to appear as the first item. You can see the root of the final xml data in line 1 <users> and the repeat group starting on line 2 <xsl:for-each>. The "Select One" item will be entered between these two lines.
Hint: Since you are not transforming any data from your original xml source to create the "Select One" item option, you just hard code it.
Can't do all the work for you
. If you have any problems or I did not explain things well don't hesitate to let me know.