Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Are the XSLTProcessor and StylesheetRoot (compiled stylesheet) objects thread-safe?

0
Posted

Are the XSLTProcessor and StylesheetRoot (compiled stylesheet) objects thread-safe?

0

The XSLTProcessor stores running state information, so it is not thread-safe. If you want to use the XSLTProcessor to perform multiple transformations, create a new instance for each transformations or synchronize. If you want to perform multiple serial transformations with a single XSLTProcessor object, call the XSLTProcessor reset() method between each transformation. StylesheetRoot objects, on the other hand, are thread-safe. A single StylesheetRoot object may be called concurrently from multiple threads. For more information, see the next question.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123