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=14149>.
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=14149

function-available throws NPE with extension function

           Summary: function-available throws NPE with extension function
           Product: XalanJ2
           Version: CurrentCVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.extensions
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


function-available throws a NullPointerException if the function name is an 
extension function. This problem only happens on Xalan. XSLTC works correctly.

Example:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
    xmlns:math="http://exslt.org/math";
    exclude-result-prefixes="math">
    
<xsl:template match="/">
   <xsl:value-of select="function-available('math:lowest')"/>
</xsl:template>

</xsl:stylesheet>

Reply via email to