Subject:Compare Text Field Author:Shoeb Ahmed Date:06 Dec 2006 10:23 PM
From Shoeb
I have some text nodes( DATA ) which is to be compared. There are seven differnt values in the the DATA . viz "Aerospace, Wings, Cockpit, GPS, Sattelite, Delta, Octaware" . This data is displayed in the List Box. My requirement is 'GPS' to be selected. But when i am using the code shown below , eavery value is selected .
Look forward for your anticipation.
Subject:Compare Text Field Author:James Durning Date:07 Dec 2006 11:04 AM Originally Posted: 07 Dec 2006 11:03 AM
Your test should depend on the node you are testing; no need to reference the variable again in the if, otherwise you'll be testing a different node:
<xsl:for-each select="$defaultProgramNames/ProgramNames/programname">
<OPTION value="{.}">
<xsl:if test="test() = 'GPS'">