if ((_doctypePublic != null) && (_doctypeSystem != null))
if (_doctypeSystem != null)
    protected void transferOutputSettings(TransletOutputHandler output) {	// It is an error if this method is called with anything else than	// the translet post-processor (TextOutput)	if (!(output instanceof TextOutput)) return;	TextOutput handler = (TextOutput)output;	// Transfer the output method setting	if (_method != null) {	    // Transfer all settings relevant to XML output	    if (_method.equals("xml")) {		handler.setType(TextOutput.XML);		handler.setCdataElements(_cdata);		if (_version != null) handler.setVersion(_version);		if (_standalone != null) handler.setStandalone(_standalone);		if (_omitHeader) handler.omitHeader(true);		if (_indent) handler.setIndent(_indent);		if ((_doctypePublic != null) && (_doctypeSystem != null))		    handler.setDoctype(_doctypeSystem, _doctypePublic);	    }	    // Transfer all output settings relevant to HTML output	    else if (_method.equals("html")) {		handler.setType(TextOutput.HTML);		if (_indent)		    handler.setIndent(_indent);		else		    handler.setIndent(true);		if ((_doctypePublic != null) && (_doctypeSystem != null))		    handler.setDoctype(_doctypeSystem, _doctypePublic);		if (_mediaType != null) handler.setMediaType(_mediaType);	    }	    else if (_method.equals("text")) {		handler.setType(TextOutput.TEXT);	    }	    else {		handler.setType(TextOutput.QNAME);	    }	}	else {	    handler.setCdataElements(_cdata);	    if (_version != null) handler.setVersion(_version);	    if (_standalone != null) handler.setStandalone(_standalone);	    if (_omitHeader) handler.omitHeader(true);	    if (_indent) handler.setIndent(_indent);	    if ((_doctypePublic != null) && (_doctypeSystem != null))		handler.setDoctype(_doctypeSystem, _doctypePublic);	}    }