Hello i have a node that may or may not have a value i want to write out that value if it does and not if it doesnt
here is my page so far i bolded the area in question
Thanks
here is my page so far i bolded the area in question
Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <head> <script language="javascript"> function termed(){ alert("This is a Termed Client"); } function hra(){ alert("This is an HRA Client"); } function fsa(){ alert("This is an FSA Client"); } function lfsa(){ alert("This is an LFSA Client"); } </script> </head> <body> <h2>ClientList</h2> <table border="1"> <tr bgcolor="#9acd32"> <th align="left">Company</th> <th align="left">Control</th> <th align="left">Company</th> <th align="left">Control</th> </tr> <xsl:for-each select="clientlist/Table/line"> <tr> <xsl:for-each select="Cell"> <td><a onclick[B]="<xsl:if test="script"><xsl:value-of select="script" /></xsl:if>" [/B] href="{@HRef}"> <xsl:value-of select="Data"/></a></td> </xsl:for-each> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet>
Comment