I'm trying to write a Saxon extension function that would receive an element node as input and process the element subtree.
What would be the best way to process the input element?
Can I e.g. transform the input from SequenceIterator to a SAX event stream in order to process it?

best regards,