pReader = transformer.getTransformedXMLReader();
}
if (logDir != null) {
File tmpFile = File.createTempFile("jaxmexs", ".xsd", new File(logDir));
fos = new FileOutputStream(tmpFile);
LoggingContentHandler lch = new LoggingContentHandler(fos);
lch.setParent(pReader);
pReader = lch;
String msg = "Read from " + pSource.getPublicId() + ", " + pSource.getSystemId() + " at " + new Date();
lch.comment(msg.toCharArray(), 0, msg.length());
}
pReader.setContentHandler(pHandler);
LocatorImpl loc = new LocatorImpl();
loc.setSystemId(pSource.getSystemId());
loc.setPublicId(pSource.getPublicId());