I want to execute xslt transform and handle all errors, if possible. But this piece of code
transformer = factory.newTransformer(xslt);
doesn't throws an exception, but prints following to console:
Неизвестный ИД системы; Номер строки 7; Номер столбца 40; org.apache.xml.utils.WrappedRuntimeException: Переменная site_name не найдена
(in English this means Unknown ID system line number 7, column number 40; org.apache.xml.utils.WrappedRuntimeException: site_name variable was not found)
How can I force newTransformer throw an exception or collect these errors after function is done? Haven't found any valuable info on the net...