DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7375>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7375 XSLTC function-available(...) fails when it shouldn't Summary: XSLTC function-available(...) fails when it shouldn't Product: XalanJ2 Version: 2.3 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Xalan-Xsltc AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I couldn't find a test of function-available(...) in CVS, does one exist? XSLT ---- <?xml version='1.0'?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsltcMath="http://xml.apache.org/xalan/xsltc/java/java.lang.Math"> <xsl:output method="text" indent="no"/> <xsl:template match="/"> function-available('xsltcMath:sin') does <xsl:if test="not(function-available ('xsltcMath:sin'))">*not* </xsl:if>succeed xsltcMath:sin(1.2) returns <xsl:value-of select="xsltcMath:sin(1.2)"/> </xsl:template> </xsl:stylesheet> XML --- <?xml version="1.0"?> <div/> OUTPUT ------ function-available('xsltcMath:sin') does *not* succeed xsltcMath:sin(1.2) returns 0.9320390859672263 EXPECTED -------- function-available('xsltcMath:sin') does succeed xsltcMath:sin(1.2) returns 0.9320390859672263
