You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Christine Li (JIRA)" <xa...@xml.apache.org> on 2005/07/08 23:15:12 UTC

[jira] Updated: (XALANJ-1447) NullPointerException while using key() function

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

Christine Li updated XALANJ-1447:
---------------------------------

    Attachment: Bug1447FuncKey.txt

> 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: Bug1447FuncKey.txt, 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org