System.Xml.Xsl.XsltSettings Class

Specifies the XSLT features to support during execution of the XSLT style sheet.

See Also: XsltSettings Members

Syntax

public sealed class XsltSettings

Remarks

Embedded script blocks and the XSLT document() function are optional features on the System.Xml.Xsl.XslCompiledTransform class. These features are disabled by default. The System.Xml.Xsl.XsltSettings class specifies which of these optional features to support. Features are enabled or disabled using the class properties. The System.Xml.Xsl.XsltSettings object is then passed to the erload:System.Xml.Xsl.XslCompiledTransform.Load method.

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.

Requirements

Namespace: System.Xml.Xsl
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0