}
private final Document processDocType(final Document doc) {
if (!_outDocType)
return doc;
final DocType dt = doc.getDocType();
if (dt == null)
return doc;
final String sysid = dt.getSystemId();
if (sysid != null && sysid.length() > 0)
_tfmr.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, sysid);
final String pubid = dt.getPublicId();
if (pubid != null && pubid.length() > 0)
_tfmr.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, pubid);
return doc;
}