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

NullPointerException while using key() function

           Summary: NullPointerException while using key() function
           Product: XalanJ2
           Version: 2.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Xalan
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have the stylesheet containing:
<xsl:key name="bt-data" match="//bt:data" use="@id" />
<xsl:key name="uc-attribute" match="//uc:attribute" use="@name" />

If I use this keys this way:
<xsl:value-of select="key('bt-data', key('uc-
attribute', 'list1.0.A003')/@data)" />

NullPointerException is thrown. If an element is found by key uc-attribute, the 
exception is thrown. If no element is found by key uc-attribute, no exception 
is thrown. This problem occurs in Xalan version 2.4.0, 2.4.1 and 2.5.D1. 
Versions 2.2.0 and 2.3.1 works fine.

Reply via email to