<th> <a href="javascript:void(0)"> <xsl:attribute name="onclick"> <xsl:value-of select="concat('alert("',@ID,'")')"/> </xsl:attribute> <xsl:value-of select="@ID"/> </a> </th>