[ 
http://issues.apache.org/jira/browse/XALANJ-1447?page=comments#action_12315350 
] 

Christine Li commented on XALANJ-1447:
--------------------------------------

This bug has been reported long time ago. In the latest CVS, the configurations 
of those iterators have been fixed during some other bug fixes. The only place 
remaining incorrect is the construction of a new XNodeSet. After a construction 
of a new XNodeSet by passing an iterator, it should always call setRoot() 
method to set the correct DTM Manager. The attached cases idkey64 and idkey68 
still don't work correctly. A new patch will be submitted.

> NullPointerException while using key() function
> -----------------------------------------------
>
>          Key: XALANJ-1447
>          URL: http://issues.apache.org/jira/browse/XALANJ-1447
>      Project: XalanJ2
>         Type: Bug
>   Components: XPath
>     Versions: 2.4
>  Environment: Operating System: Windows NT/2K
> Platform: PC
>     Reporter: Luboš Hartman
>     Assignee: Christine Li
>     Priority: Critical
>  Attachments: FuncKeyIDPatch.txt, FuncKeyPatch.txt, FuncKeyPatch.txt, 
> UCXMLTest.xml, idkey64.xml, idkey64.xsl, idkey65.xml, idkey65.xsl, 
> idkey66.xml, idkey66.xsl, idkey67.xml, idkey67.xsl, idkey68.xml, idkey68.xsl, 
> out.zip, tst.xml, tst.xsl
>
> 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.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to