{
  final void parseOutput(Node node, NamedNodeMap attrs)    throws TransformerConfigurationException  {    output = node;    String method = getAttribute(attrs, "method");    if ("xml".equals(method) || method == null)      {        outputMethod = OUTPUT_XML;      }    else if ("html".equals(method))      {        outputMethod = OUTPUT_HTML;      }    else if ("text".equals(method))      {        outputMethod = OUTPUT_TEXT;      }    else      {        String msg = "unsupported output method: " + method;        DOMSourceLocator l = new DOMSourceLocator(node);        throw new TransformerConfigurationException(msg, l);      }    outputPublicId = getAttribute(attrs, "public-id");    outputSystemId = getAttribute(attrs, "system-id");    outputEncoding = getAttribute(attrs, "encoding");    String indent = getAttribute(attrs, "indent");    if (indent != null)      {        outputIndent = "yes".equals(indent);      }    outputVersion = getAttribute(attrs, "version");    String omitXmlDecl = getAttribute(attrs, "omit-xml-declaration");    if (omitXmlDecl != null)      {        outputOmitXmlDeclaration = "yes".equals(omitXmlDecl);      }    String standalone = getAttribute(attrs, "standalone");    if (standalone != null)      {        outputStandalone = "yes".equals(standalone);      }    outputMediaType = getAttribute(attrs, "media-type");    String cdataSectionElements =      getAttribute(attrs, "cdata-section-elements");    if (cdataSectionElements != null)      {        StringTokenizer st = new StringTokenizer(cdataSectionElements, " ");        while (st.hasMoreTokens())          {            outputCdataSectionElements.add(st.nextToken());          }      }  }