This is a possible fix for #2209 . Not very elegant, but I think it covers all cases without introducing surprises.
The cases are
System property (javax.xml.transform.TransformerFactory) is not set before initialization of XsltFn - no change to the behavior
System property is set to one of the values in XsltFn::SAXON - the saxon version detection is run only for the specified class value, the system property won't be set (not even to the same value)
System property is set to some unknown value - no change to the behavior
This is a possible fix for #2209 . Not very elegant, but I think it covers all cases without introducing surprises.
The cases are
javax.xml.transform.TransformerFactory
) is not set before initialization ofXsltFn
- no change to the behaviorXsltFn::SAXON
- the saxon version detection is run only for the specified class value, the system property won't be set (not even to the same value)