Ejemplo n.º 1
0
        void Transform(XPathNavigator input, XsltArgumentList args, Stream output, XmlResolver resolver)
#endif
        {
            XslOutput xslOutput = (XslOutput)s.Outputs[String.Empty];

            Transform(input, args, new StreamWriter(output, xslOutput.Encoding), resolver);
        }
Ejemplo n.º 2
0
        /// <summary>Transforms the XML data in the <see cref="T:System.Xml.XPath.XPathNavigator" /> using the specified <paramref name="args" /> and outputs the result to a <see cref="T:System.IO.Stream" />.</summary>
        /// <param name="input">An <see cref="T:System.Xml.XPath.XPathNavigator" /> containing the data to be transformed. </param>
        /// <param name="args">An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transformation. </param>
        /// <param name="output">The stream to which you want to output. </param>
        /// <param name="resolver">The <see cref="T:System.Xml.XmlResolver" /> used to resolve the XSLT document() function. If this is null, the document() function is not resolved.The <see cref="T:System.Xml.XmlResolver" /> is not cached after the <see cref="M:System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.XPathNavigator,System.Xml.Xsl.XsltArgumentList,System.IO.Stream,System.Xml.XmlResolver)" /> method completes. </param>
        /// <exception cref="T:System.InvalidOperationException">There was an error processing the XSLT transformation. Note: This is a change in behavior from earlier versions. An <see cref="T:System.Xml.Xsl.XsltException" /> is thrown if you are using Microsoft .NET Framework version 1.1 or earlier.</exception>
        public void Transform(XPathNavigator input, XsltArgumentList args, Stream output, XmlResolver resolver)
        {
            XslOutput xslOutput = (XslOutput)this.s.Outputs[string.Empty];

            this.Transform(input, args, new StreamWriter(output, xslOutput.Encoding), resolver);
        }
        private void Transform(XPathNavigator input, XsltArgumentList args, Stream output)
        {
            XslOutput xslOutput = (XslOutput)this.s.Outputs[string.Empty];

            this.Transform(input, args, new StreamWriter(output, xslOutput.Encoding));
        }