kirangentlebreeze1987 Posted February 24, 2011 Share Posted February 24, 2011 hello experts i am struggling to load the values in listboxthis is my xml file <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="test.xsl"?><employee><employeeForm name="employeeform"> <field name="enter the id" id="empId" type="text" nodeValue="empid"></field><field name="enter the name" id="empName" type="text" nodeValue="empname"></field><field name="enter the department" id="empDept" type="text" nodeValue="empdept"></field><field name="enter the role" id="empRole" type="text" nodeValue="emprole"></field><field name="known languages" id="empOptions" type="checkbox" nodeValue="empoptions"></field><field name="select location" id="empLoc" type="dropdown" nodeValue="emploc"> <listOptions> <option>Option-1</option> <option>Option-2</option> <option>Option-3</option> </listOptions> </field></employeeForm></employee> this is my piece of code in xslt <select multiple="multiple"> <for-each select="field/listOptions/*"> <option><xsl:value-of select="node()"/></option> </for-each> </select> </xsl:if> i should get the values in listbox one by one like thisoption-1option-2option-3but i am getting the value as option-1 option-2 option-3please help me in solvuing this issue Link to comment Share on other sites More sharing options...
JohnBampton Posted February 25, 2011 Share Posted February 25, 2011 it should be: <xsl:for-each Regards,John Bampton Link to comment Share on other sites More sharing options...
kirangentlebreeze1987 Posted February 25, 2011 Author Share Posted February 25, 2011 it should be:<xsl:for-each Regards,John Bampton thank you john but even then the list box is not getting any values Link to comment Share on other sites More sharing options...
JohnBampton Posted February 25, 2011 Share Posted February 25, 2011 <option><xsl:value-of select="."/></option>post your code Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.