Im trying to compare 2 elements..if they are equal Id like to have the "selected" attribute added to the option tag for the drop down list..the tags are infoscreening and screeningid...heres what I have so far, which doesnt work...
<xsl:element name="select">
<xsl:element name="option"></xsl:element>
<xsl:for-each select="./wholist/who">
<xsl:element name="option">
<xsl:if test="infoscreening = screeningid">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:attribute name="value"><xsl:value-of select="screeningid"/></xsl:attribute>
<xsl:value-of select="name"/>
</xsl:element>
</xsl:for-each>
</xsl:element>
<xsl:element name="select">
<xsl:element name="option"></xsl:element>
<xsl:for-each select="./wholist/who">
<xsl:element name="option">
<xsl:if test="infoscreening = screeningid">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:attribute name="value"><xsl:value-of select="screeningid"/></xsl:attribute>
<xsl:value-of select="name"/>
</xsl:element>
</xsl:for-each>
</xsl:element>