private void CacheOuptutProps(XsltOutput output) {
this.output = output;
this.isXmlOutput = this.output.Method == XsltOutput.OutputMethod.Xml;
this.isHtmlOutput = this.output.Method == XsltOutput.OutputMethod.Html;
this.cdataElements = this.output.CDataElements;
this.indentOutput = this.output.Indent;
this.outputDoctype = this.output.DoctypeSystem != null || (this.isHtmlOutput && this.output.DoctypePublic != null);
this.outputXmlDecl = this.isXmlOutput && ! this.output.OmitXmlDeclaration && ! this.omitXmlDeclCalled;
}