if (_encoding.equals(Constants.EMPTYSTRING)) _encoding = null;
if (_encoding.equals(Constants.EMPTYSTRING)) _encoding = null; else { try { OutputStreamWriter writer = new OutputStreamWriter(System.out, _encoding); } catch (java.io.UnsupportedEncodingException e) { ErrorMsg msg = new ErrorMsg(ErrorMsg.UNSUPPORTED_ENCODING, _encoding, this); parser.reportError(Constants.WARNING, msg); } }
    public void parseContents(Parser parser) {	// Ask the parser if it wants this <xsl:output> element	parser.setOutput(this);	// Do nothing if other <xsl:output> element has higher precedence	if (_disabled) return;	String attrib = null;	// Get the output XML version - only version "1.0" should be used	_version = getAttribute("version");	if ((_version == null) || (_version.equals(Constants.EMPTYSTRING))) {	    _version = ONE_DOT_ZERO_STRING;	}	if (!_version.equals(ONE_DOT_ZERO_STRING)) {	    ErrorMsg msg = new ErrorMsg(ErrorMsg.OUTPUT_VERSION_ERR, this);	    parser.reportError(Constants.WARNING, msg);	}	// Get the output method - "xml", "html", "text" or <qname>	_method = getAttribute("method");	if (_method.equals(Constants.EMPTYSTRING)) _method = null;	if (_method != null) _method = _method.toLowerCase();	// Get the output encoding - any value accepted here	_encoding = getAttribute("encoding");	if (_encoding.equals(Constants.EMPTYSTRING)) _encoding = null;	// Should the XML header be omitted - translate to true/false	attrib = getAttribute("omit-xml-declaration");	if ((attrib != null) && (attrib.equals("yes"))) _omitHeader = true;	// Add 'standalone' decaration to output - use text as is	_standalone = getAttribute("standalone");	if (_standalone.equals(Constants.EMPTYSTRING)) _standalone = null;	// Get system/public identifiers for output DOCTYPE declaration	_doctypeSystem = getAttribute("doctype-system");	if (_doctypeSystem.equals(Constants.EMPTYSTRING)) _doctypeSystem = null;	_doctypePublic = getAttribute("doctype-public");	if (_doctypePublic.equals(Constants.EMPTYSTRING)) _doctypePublic = null;	// Names the elements of whose text contents should be output as CDATA	_cdata = getAttribute("cdata-section-elements");	if ((_cdata != null) && (_cdata.equals(Constants.EMPTYSTRING)))	    _cdata = null;	// Get the indent setting - only has effect for xml and html output	attrib = getAttribute("indent");	if ((attrib != null) && (!attrib.equals(EMPTYSTRING))) {	    if (attrib.equals("yes")) _indent = true;	}	else if ((_method != null) && (_method.equals("html"))) {	    _indent = true;	}	// Get the MIME type for the output file - we don't do anythign with it,	// but our client may use it to specify a data transport type, etc.	_mediaType = getAttribute("media-type");	if (_mediaType.equals(Constants.EMPTYSTRING)) _mediaType = null;	// parseChildren(parser); - the element is always empty    }