XsltSettings Class
Specifies the XSLT features to support during execution of the XSLT style sheet.
Assembly: System.Xml (in System.Xml.dll)
The XsltSettings type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | XsltSettings() | Initializes a new instance of the XsltSettings class with default settings. |
![]() | XsltSettings(Boolean, Boolean) | Initializes a new instance of the XsltSettings class with the specified settings. |
| Name | Description | |
|---|---|---|
![]() ![]() | Default | Gets an XsltSettings object with default settings. Support for the XSLT document() function and embedded script blocks is disabled. |
![]() | EnableDocumentFunction | Gets or sets a value indicating whether to enable support for the XSLT document() function. |
![]() | EnableScript | Gets or sets a value indicating whether to enable support for embedded script blocks. |
![]() ![]() | TrustedXslt | Gets an XsltSettings object that enables support for the XSLT document() function and embedded script blocks. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Embedded script blocks and the XSLT document() function are optional features on the XslCompiledTransform class. These features are disabled by default. The XsltSettings class specifies which of these optional features to support. Features are enabled or disabled using the class properties. The XsltSettings object is then passed to the XslCompiledTransform::Load method.
Security Note |
|---|
XSLT style sheets can include references to other files and embedded script blocks. A malicious user can exploit this by supplying you with data or style sheets that when executed can cause your system to process until the computer runs low on resources. Do not enable scripting or the document() function unless the style sheet comes from a trusted source. If you cannot verify the source of the style sheet, or if the style sheet does not come from a trusted source, use the default XSLT settings. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
