> At any rate, these days I happen to be on the "saxon" side, and I'm trying to understand the documentation from "Controller.setParameter()" which says that a java Date type parameter is translated to a xs:dateTime XPath.  But now I'm guessing that this documentation preceded the aforementioned tribulations on dates and so is no longer current.  Too bad as would be a useful shortcut. 
 
OK, I overlooked the JavaDoc there. I was referring to http://www.saxonica.com/documentation/extensibility/function-result.html
 
I'll try and get them into line with each other and with the code.
 
Michael Kay