Xslt.CallTemplate Method (XmlQualifiedName, XmlReader, IResultDocumentHandler)Xslt.CallTemplate Method (XmlQualifiedName, XmlReader, IResultDocumentHandler)Xslt::CallTemplate Method (XmlQualifiedName^, XmlReader^, IResultDocumentHandler^)

Calls the specified named template using the specified input document and outputs result documents using an object implementing the IResultDocumentHandlerIResultDocumentHandlerIResultDocumentHandler interface.

Syntax

Public Sub CallTemplate( _
    initialTemplateName As System.Xml.XmlQualifiedName, _
    input As System.Xml.XmlReader, _
    resultDocumentHandler As IResultDocumentHandler _
)
public void CallTemplate(
    System.Xml.XmlQualifiedName initialTemplateName,
    System.Xml.XmlReader input,
    IResultDocumentHandler resultDocumentHandler
)
public:
void CallTemplate(
    System.Xml::XmlQualifiedName^ initialTemplateName, 
    System.Xml::XmlReader^ input, 
    IResultDocumentHandler^ resultDocumentHandler
)
 

Exceptions

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

Remarks

This method is suitable for use with multiple result documents.