Xslt.ApplyTemplates Method (XmlQualifiedName, DynamicContextSettings, Stream)Xslt.ApplyTemplates Method (XmlQualifiedName, DynamicContextSettings, Stream)Xslt::ApplyTemplates Method (XmlQualifiedName^, DynamicContextSettings^, Stream^)

Applies template rules with the specified initial mode using the specified initial dynamic context settings and outputs the result to a StreamStreamStream.

Syntax

Public Sub ApplyTemplates( _
    initialMode As System.Xml.XmlQualifiedName, _
    settings As DynamicContextSettings, _
    resultDocument As System.IO.Stream _
)
public void ApplyTemplates(
    System.Xml.XmlQualifiedName initialMode,
    DynamicContextSettings settings,
    System.IO.Stream resultDocument
)
public:
void ApplyTemplates(
    System.Xml::XmlQualifiedName^ initialMode, 
    DynamicContextSettings^ settings, 
    System.IO::Stream^ resultDocument
)
 

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException initialMode, settings or resultDocument is null a null reference (Nothing in Visual Basic) nullptr.
XdmExceptionXdmExceptionXdmExceptionRaised if a non-recoverable error is encountered.

Remarks

The default mode may be specified by passing EmptyEmptyEmpty for initialMode.

This method is unsuitable for use with multiple result documents.