You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/10/31 22:50:52 UTC

DO NOT REPLY [Bug 14149] New: - function-available throws NPE with extension function

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: xalan-dev@xml.apache.org
        ReportedBy: mkwan@ca.ibm.com


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>