Xslt.CallTemplate Method (string, string, XmlReader, IResultDocumentHandler)Xslt.CallTemplate Method (String, String, XmlReader, IResultDocumentHandler)Xslt::CallTemplate Method (String^, String^, XmlReader^, IResultDocumentHandler^)
Calls the specified named template with the specified initial context node and outputs all result documents
using object implementing the IResultDocumentHandlerIResultDocumentHandlerIResultDocumentHandler interface.
Syntax
Public Sub CallTemplate( _ initialTemplateLocalName As String, _ initialTemplateNamespace As String, _ input As System.Xml.XmlReader, _ resultDocumentHandler As IResultDocumentHandler _ )
public void CallTemplate( string initialTemplateLocalName, string initialTemplateNamespace, System.Xml.XmlReader input, IResultDocumentHandler resultDocumentHandler )
public: void CallTemplate( String^ initialTemplateLocalName, String^ initialTemplateNamespace, System.Xml::XmlReader^ input, IResultDocumentHandler^ resultDocumentHandler )
Parameters
- initialTemplateLocalName
Type: System.StringSystem.StringSystem::String^
The local name of the initial template.
- initialTemplateNamespace
Type: System.StringSystem.StringSystem::String^
The namespace URI of the initial template.
- input
Type: System.Xml.XmlReaderSystem.Xml.XmlReaderSystem.Xml::XmlReader^
The XmlReaderXmlReaderXmlReader containing the input document.
- resultDocumentHandler
Type: XmlPrime.IResultDocumentHandlerXmlPrime.IResultDocumentHandlerXmlPrime::IResultDocumentHandler^
The result document handler.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
initialTemplateLocalName, initialTemplateNamespace,
input or resultDocumentHandler is null
a null reference (Nothing in Visual Basic)
nullptr .
|
XdmExceptionXdmExceptionXdmException | Raised if a non-recoverable error is encountered. |
Remarks
This method is suitable for use with multiple result documents.