nope, I do not need the name ron twice. I followed your suggestion and it worked nicely. One question
This was my output
<option value="0">Administrator</option>
<option value="1">John</option>
<option value="2">Ray</option>
<option value="3" selected="true">Ron</option>
This was the code you suggested
<option value="{position()-1}">
<xsl:if test="@selected='true'><xsl:copy-of select="@selected"/></xsl:if><xsl:value-of select="."/></option>
My question is by testing for that attribute does xsl add that as an attribute when true to the option element? It seems to do that, I just want to see if what I am thinking is actually the case.
Thanks
Ron
|