REx can also generate a parser as a Saxon extension function.
It should be possible, and it should be faster, to use the expression parser as a Saxon extension function and fallback to the XSLT expression parser when the Saxon extension function is not available.