Xslt.ApplyTemplates Method (IXPathNavigable, IResultDocumentHandler)Xslt.ApplyTemplates Method (IXPathNavigable, IResultDocumentHandler)Xslt::ApplyTemplates Method (IXPathNavigable^, IResultDocumentHandler^)

Applies default mode template rules to the specified context node and outputs result documents using an object implementing the IResultDocumentHandlerIResultDocumentHandlerIResultDocumentHandler interface.

Syntax

Public Sub ApplyTemplates( _
    contextNode As System.Xml.XPath.IXPathNavigable, _
    resultDocumentHandler As IResultDocumentHandler _
)
public void ApplyTemplates(
    System.Xml.XPath.IXPathNavigable contextNode,
    IResultDocumentHandler resultDocumentHandler
)
public:
void ApplyTemplates(
    System.Xml.XPath::IXPathNavigable^ contextNode, 
    IResultDocumentHandler^ resultDocumentHandler
)
 

Parameters

contextNode

Type: System.Xml.XPath.IXPathNavigableSystem.Xml.XPath.IXPathNavigableSystem.Xml.XPath::IXPathNavigable^

The initial context node for the stylesheet.

resultDocumentHandler

Type: XmlPrime.IResultDocumentHandlerXmlPrime.IResultDocumentHandlerXmlPrime::IResultDocumentHandler^

The result document handler.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException contextNode or resultDocumentHandler is null a null reference (Nothing in Visual Basic) nullptr.
XdmExceptionXdmExceptionXdmExceptionRaised if a non-recoverable error is encountered.

Remarks

The initial mode is the default mode (#default).

This method is suitable for use with multiple result documents.