I am debugging an xslt stylesheet in Oxygen using the xalan processor.
I cannot seem to get the
current-time() or hours-from-time()
functions to work. I get a "could not
find function" error.
As noted by @lavinio and @Alejandro, these two functions were introduced in XPath 2.0, which is not supported by Xalan.
You may pass the current time as a parameter to the XSLT 1.0 transformation.
Do note, that even in XPath 2.0, multiple evaluations of the current-time() during a transformation, return the same value. So this function doesn't give you anything more than what you get by passing the current time as a parameter.
current-time()function.