Compiles the XSLT style sheet contained in the System.Xml.XmlReader. The System.Xml.XmlResolver resolves any XSLT import or include elements and the XSLT settings determine the permissions for the style sheet.
- stylesheet
The System.Xml.XmlReader containing the style sheet.
- settings
The System.Xml.Xsl.XsltSettings to apply to the style sheet. If this is null, the XsltSettings.Default setting is applied.
- stylesheetResolver
The System.Xml.XmlResolver used to resolve any style sheets referenced in XSLT import and include elements. If this is null, external resources are not resolved.
The System.Xml.Xsl.XslCompiledTransform class supports the XSLT 1.0 syntax. The XSLT style sheet must use the http://www.w3.org/1999/XSL/Transform namespace.
The style sheet loads from the current node of the System.Xml.XmlReader through all its children. This enables you to use a portion of a document as the style sheet. After the XslCompiledTransform.Load(System.Xml.XmlReader) method completes, the System.Xml.XmlReader is positioned on the next node after the end of the style sheet. If the end of the document is reached, the System.Xml.XmlReader is positioned at the end of file (EOF).