You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by xa...@xml.apache.org on 2004/09/05 08:42:37 UTC
[jira] Updated: (XALANJ-1447) NullPointerException while using key() function
The following issue has been updated:
Updater: Brian Minchau (mailto:minchau@ca.ibm.com)
Date: Sat, 4 Sep 2004 11:41 PM
Changes:
description changed from 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. to 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.
environment changed from Operating System: Windows NT/2K
Platform: PC to Operating System: Windows NT/2K
Platform: PC
priority changed to Blocker
Component changed to XPath
Component changed from Xalan
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/XALANJ-1447?page=history
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XALANJ-1447
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XALANJ-1447
Summary: NullPointerException while using key() function
Type: Bug
Status: Open
Priority: Blocker
Project: XalanJ2
Components:
XPath
Versions:
2.4
Assignee: Christine Li
Reporter: Lubo Hartman
Created: Fri, 14 Mar 2003 6:19 PM
Updated: Sat, 4 Sep 2004 11:41 PM
Environment: Operating System: Windows NT/2K
Platform: PC
Description:
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.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org