Hi Aleksej,
Looks like the getLength() method has the same problem.
Joe
On 9/17/2013 5:01 AM, Aleksej Efimov wrote:
Hi Everyone,
There is a bug [1] in JAXP about transformation of one-item sized node
list:
When the length of nodelist which is passed to a XSLT extension
function is 1, the node gotten from the node list becomes null.
New test illustrates this issue [2]. Full webrev with proposed fix can
be found here: [3].
[1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8024707
[2]
http://cr.openjdk.java.net/~aefimov/8024707/raw_files/new/jdk/test/javax/xml/jaxp/parsers/8024707/XSLT.java
[3] http://cr.openjdk.java.net/~aefimov/8024707/
Best regards,
Aleksej