XsltOptions Class

The limits of the XSLT transformations of a browsing context (see BrowsingContextOptions.Xslt): the transformations of XsltProcessor and of the XML documents whose xml-stylesheet processing instruction references an XSLT stylesheet. They stop the stylesheets that do not end, or that build too large a result.

public sealed class XsltOptions : IEquatable<XsltOptions>

Remarks

A transformation that exceeds a limit fails: XsltProcessor throws a DomException whose name is OperationError, and the navigation to an XML document shows the XML document. A transformation run by a script also stops when the script engine interrupts the script (e.g. its timeout): the script is terminated.

Implements

Constructors

NameDescription
XsltOptions()

XsltOptions()

XsltOptions.cs
public XsltOptions()

No documentation is available.

Properties

NameDescription
DefaultGets the default limits.
MaxOutputNodesGets or sets the maximum number of nodes a transformation creates, in its result and in the result tree fragments of its variables. The default is 2,000,000.
MaxStepsGets or sets the maximum number of steps of a transformation: the instructions it instantiates, the expressions it evaluates, the patterns it matches and the nodes it copies. The default is 100,000,000.
TimeoutGets or sets the maximum duration of a transformation, or null for no limit. The default is 10 seconds. The duration is checked between the steps of the transformation.

Gets the default limits.

public static XsltOptions Default { get; }

Property value

XsltOptions

MaxOutputNodes

XsltOptions.cs

Gets or sets the maximum number of nodes a transformation creates, in its result and in the result tree fragments of its variables. The default is 2,000,000.

public long MaxOutputNodes { get; init; }

Property value

long

Gets or sets the maximum number of steps of a transformation: the instructions it instantiates, the expressions it evaluates, the patterns it matches and the nodes it copies. The default is 100,000,000.

public long MaxSteps { get; init; }

Property value

long

Gets or sets the maximum duration of a transformation, or null for no limit. The default is 10 seconds. The duration is checked between the steps of the transformation.

public TimeSpan? Timeout { get; init; }

Property value

TimeSpan?

Methods

NameDescription
Equals(XsltOptions?)
Equals(object?)
GetHashCode()
ToString()

Equals overloads

Equals(XsltOptions?)

public bool Equals(XsltOptions? other)
Parameters
other XsltOptions?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(XsltOptions?, XsltOptions?)
operator !=(XsltOptions?, XsltOptions?)

operator ==(XsltOptions?, XsltOptions?)

public static bool operator ==(XsltOptions? left, XsltOptions? right)

Parameters

left XsltOptions?
right XsltOptions?

Returns

bool

No documentation is available.

operator !=(XsltOptions?, XsltOptions?)

public static bool operator !=(XsltOptions? left, XsltOptions? right)

Parameters

left XsltOptions?
right XsltOptions?

Returns

bool

No documentation is available.