||Developing, Applying and Optimizing XSLT with Java Servlets|
|Subject:||Don't use XSLTProcessor in multiple threads|
Very bad example of a servlet. The processor may not be used in doGet(), doPost() or service() methods of servlets, because these methods may be called from different threads. You should use the StylesheetRoot.process() instead. Please read the apache docs on this issue. Hope you book is better researched.