Jump to content

<xsl:value-of


jle

Recommended Posts

Hi All,I had the following xsl code as defined :<xsl:value-of select="chart/wx_name"/> <xsl:if test="wx_name = 'All Endpoints'" > <td align="right" nowrap="" class="caption"><a href="compression_by_endpoint.htm">Compression by Endpoint</a> </td> </xsl:if>So my logic is if wx_name is "All Endpoints" then href will be display but it didn't work.href didn't display no matter what value of wx_nameCould you please help. Below is the sample of xml data.Thanks,JPXML file:.........................................<chart><wx_name> All Endpoints</wx_name></chart>

Link to comment
Share on other sites

value-of works though, right? In that case, you should adjust your test to actually match the element:

 test="chart/wx_name = 'All Endpoints'" >

as right now, you're matching a wx_name that would be a sibling to chart, not a child element.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...