clearParameter failing XSLT processor
The clearParamters() is removing the source node set on the Xslt Processor. This is not documented. The option is to change the design of the method or the name of the method and document the correct behaviour.
In the meanwhile as a workaround there are a couple of options:
XsltProcessor: You could set the source via file, if possible in your application. i.e: $saxonXsltProc->setSourceFromFile($sourceXml);
You could use the Xslt30Processor if you are using XSLT 3.0 stylesheet: This class has the option to supply the XdmNode source object directly on the transformToString method.
Please register to edit this issue