On 25 May 2005, at 20:24, Alan wrote:
I found blog entry about extending Saxon with user defined
methods:
http://www.betaversion.org/~pier/wiki/display/pier/Saxon+Extension
I'd expected to see Saxon using XPathFunction and
XPathFunctionResolver already.
Is there a standardization of extension functions for XSLT and
I'm not finding it?
Nope, there isn't... That's why I wrote that page. As Michael pointed
out correctly, the XPath API is not that great when it comes to
typing the arguments to pass to the functions, so, at the end of the
day, it's pretty useless in "slightly more complex" cases.
He'll be able to expand on it in a much better way that I am capable
of...
But to tell you the truth, I encountered some problems going down the
"standards" way, and ultimately, I changed all my functions to be
proper SAXON ones, and forgot about JAXP 1.3, as it's insufficient in
declaring how parameters should be passed from XPath/XSLT to Java.
Pier
smime.p7s
Description: S/MIME cryptographic signature
|