Transform Method (IXPathNavigable, XsltArgumentList, XmlWriter, XmlResolver)

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
Available since 2.0
Return to top
© 2015 Microsoft