Class XsltTransformer
has this function

public void setParameter(QName name,
                         XdmValue value)

Is it possible to pass an element? I do not follow this if it is possible.

I see XdmValue : XdmValue(Iterable<XdmItem> items)

But I do not see how to go from XdmNode to be used in setParameter...

Any basic examples taking  say <a>a</a> and passing it as parameter...Link to example?

Thanks So Much