I am not clear on how to write XPath functions
(in Java, not in XSLT) that depend on the dynamic
context in Saxon. I have successfully implemented
a number of node-related functions that are specific
to my app but because the context node has to be
passed in, the expressions end up looking like:
rather than the more readable:
Does Saxon 8.x support passing the dynamic context
into a user function? I know that the saxon: exten-
sion functions must have that capability but are
there hooks in userland? If so, is there an example
somewhere on the list archive or elsewhere?
It would be great if it could be done in 8.1.1 since
I'm using XmlBeans but I can partition into multiple
deployment units if I have to.