throw new SAXException(err.toString());
}
if (!_isIdentity) {
boolean hasIdCall = (_translet != null) ? _translet.hasIdCall() : false;
XSLTCDTMManager dtmManager = null;
// Create an internal DOM (not W3C) and get SAX2 input handler
try {
dtmManager = _transformer.getTransformerFactory()
.createNewDTMManagerInstance();
} catch (Exception e) {
throw new SAXException(e);
}
DTMWSFilter wsFilter;
if (_translet != null && _translet instanceof StripFilter) {
wsFilter = new DOMWSFilter(_translet);
} else {
wsFilter = null;
}
// Construct the DTM using the SAX events that come through
_dom = (SAXImpl)dtmManager.getDTM(null, false, wsFilter, true,
false, hasIdCall);
_handler = _dom.getBuilder();
_lexHandler = (LexicalHandler) _handler;
_dtdHandler = (DTDHandler) _handler;