I have this XSLT Stylesheet:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:date="http://exslt.org/dates-and-times"
    extension-element-prefixes="date">
    <xsl:template match="//element">
            <xsl:value-of select="date:difference('whatever', @non-existing)"/>
    </xsl:template>
</xsl:stylesheet>

and this XML file:

<root>
    <element/>
</root>

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