else if (name.equals("old-output")) { if (value instanceof Boolean) { _oldOutputSystem = ((Boolean) value).booleanValue(); return; } else if (value instanceof String) { _oldOutputSystem = ((String) value).equalsIgnoreCase("true"); return; } }
    public void setAttribute(String name, Object value) 	throws IllegalArgumentException     { 	// Set the default translet name (ie. class name), which will be used	// for translets that cannot be given a name from their system-id.	if (name.equals("translet-name") && value instanceof String) {	    _defaultTransletName = (String) value;	    return;	}	else if (name.equals("debug")) {	    if (value instanceof Boolean) {		_debug = ((Boolean) value).booleanValue();		return;	    }	    else if (value instanceof String) {		_debug = ((String) value).equalsIgnoreCase("true");		return;	    }	}	else if (name.equals("disable-inlining")) {	    if (value instanceof Boolean) {		_disableInlining = ((Boolean) value).booleanValue();		return;	    }	    else if (value instanceof String) {		_disableInlining = ((String) value).equalsIgnoreCase("true");		return;	    }	}	else if (name.equals("old-output")) {	    if (value instanceof Boolean) {		_oldOutputSystem = ((Boolean) value).booleanValue();		return;	    }	    else if (value instanceof String) {		_oldOutputSystem = ((String) value).equalsIgnoreCase("true");		return;	    }	}	else if (name.equals("indent-number")) {	    if (value instanceof String) {		try {		    _indentNumber = Integer.parseInt((String) value);		    return;		}		catch (NumberFormatException e) {		    // Falls through		}	    }	    else if (value instanceof Integer) {		_indentNumber = ((Integer) value).intValue();		return;	    }	}	// Throw an exception for all other attributes	final ErrorMsg err 	    = new ErrorMsg(ErrorMsg.JAXP_INVALID_ATTR_ERR, name);	throw new IllegalArgumentException(err.toString());    }