xsl translate or lower-case shows up js error



I am getting this error Unknown method.-->translate(STATUS<--,'abcdefghijlkmnopqrstuvwxyz','ABCDEFGHIJLKMNOPQRSTUVWXYZ')='ERROR']


When I am using following line



<td width="7" height="17"><xsl:if test="translate(STATUS,'abcdefghijlkmnopqrstuvwxyz','ABCDEFGHIJLKMNOPQRSTUVWXYZ')='ERROR'"><img src="../../../Images/Error.png" alt="" /></xsl:if></td>


In the below following block



<xsl:stylesheet xmlns:xsl="http://ift.tt/Ufb1Ps">
<xsl:template>
<table id='tblEntries' index='0' class="GridText" style="table-layout:fixed;width=100%">
<xsl:for-each select="SERVICES-OBJECT/ITEM" >
<tr id='trEntries' onmouseover="this.style.cursor='default'">

<td width="7" height="17"><xsl:if test="translate(STATUS,'abcdefghijlkmnopqrstuvwxyz','ABCDEFGHIJLKMNOPQRSTUVWXYZ')='ERROR'"><img src="../../../Images/Error.png" alt="" /></xsl:if></td>

</tr>
</xsl:for-each>
</table>
</xsl:template>


I tried XSLT try editor with a similar sample it works without errors on the same browser. Should some xsl namespaces be included for the first to make it work?


No comments:

Post a Comment