XslCompiledTransform.Load Method (XmlReader)
Compiles the style sheet contained in the XmlReader.
Assembly: System.Xml (in System.Xml.dll)
The 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 XmlReader through all its children. This enables you to use a portion of a document as the style sheet. After the Load method completes, the XmlReader is positioned on the next node after the end of the style sheet. If the end of the document is reached, the XmlReader is positioned at the end of file (EOF).
This method has the following behavior:
An XmlUrlResolver with no user credentials is used to process any xsl:import or xsl:include elements.
The document() function is disabled.
Embedded scripts are not supported.
The following example loads a style sheet contained in an XmlReader object.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.