Thanks for reporting it. I've logged it and provided an initial explanation here:

Please monitor that bug entry for any follow-up (use the Watch button)

I'm going to treat this as a bug in the EXSLT extension function concerned: the calling mechanism has changed the way an empty sequence is handled, and I don't propose to change that.

Michael Kay

On 29 Apr 2013, at 21:19, Gerben Abbink wrote:

I have this XSLT Stylesheet:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
    <xsl:template match="//element">
            <xsl:value-of select="date:difference('whatever', @non-existing)"/>

and this XML file:


When i run this under SaxonPE9-5-0-1J i get an java.lang.NullPointerException.

I don't get a NullPointerException when i run it under SaxonPE9-4-0-7J.

I use my own software. I use a temporary license key.

Any ideas? Is this a bug in SaxonPE9-5-0-1J?

- Gerben Abbink
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
saxon-help mailing list archived at