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 [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|Other |Medium ------- Additional Comments From [EMAIL PROTECTED] 2002-03-25 13:20 ------- I verified this problem using John's example. I also tried the following variation, in which Xalan produced the correct results and XSLTC could not compile the stylesheet. <?xml version='1.0'?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="http://xml.apache.org/xslt/java"> <!-- xmlns:xsltcMath="http://xml.apache.org/xalan/xsltc/java/java.lang.Math"> --> <xsl:output method="text" indent="no"/> <xsl:template match="/"> function-available('java:java.lang.Math.sin') does <xsl:if test="not(function-available ('java:java.lang.Math.sin'))">*not* </xsl:if>succeed java:java.lang.Math.sin(1.2) returns <xsl:value-of select="java:java.lang.Math.sin(1.2)"/> </xsl:template> <!-- function-available('xsltcMath:sin') does <xsl:if test="not(function-available --> <!-- xsltcMath:sin(1.2) returns <xsl:value-of select="xsltcMath:sin(1.2)"/> --> </xsl:stylesheet> Running xalan on bug7375 function-available('java:java.lang.Math.sin') does succeed java:java.lang.Math.sin(1.2) returns 0.9320390859672263 Running XSLTC with Xerces Parser on bug7375 Compiler error(s): Cannot find class 'java'. Cannot find external method 'lang.Math.sin' (must be static and public). Translet error(s): Cannot find class 'bug7375'.
