Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

XslCompiledTransform.Transform Method (IXPathNavigable, XsltArgumentList, XmlWriter, XmlResolver)

.NET Framework 4.6 and 4.5

Executes the transform by using the input document that is specified by the IXPathNavigable object and outputs the results to an XmlWriter. The XsltArgumentList provides additional run-time arguments and the XmlResolver resolves the XSLT document() function.

Namespace:  System.Xml.Xsl
Assembly:  System.Xml (in System.Xml.dll)

public void Transform(
	IXPathNavigable input,
	XsltArgumentList arguments,
	XmlWriter results,
	XmlResolver documentResolver


Type: System.Xml.XPath.IXPathNavigable

The document to transform that is specified by the IXPathNavigable object.

Type: System.Xml.Xsl.XsltArgumentList

Argument list as XsltArgumentList.

Type: System.Xml.XmlWriter

The XmlWriter to which you want to output.

If the style sheet contains an xsl:output element, you should create the XmlWriter by using the XmlWriterSettings object that is returned from the OutputSettings property. This ensures that the XmlWriter has the correct output settings.

Type: System.Xml.XmlResolver

The XmlResolver used to resolve the XSLT document() function. If this is null, the document() function is not resolved.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft