IXSLProcessor::setStartMode Method
Performs subsets of a larger XSLT transformation by selecting the XSLT mode to start with. This makes it possible to minimize the amount of XSLT processing.
The default value of the start mode is the empty string, "".
Visual Basic Syntax
objXSLProcessor.setStartMode(mode, namespace)
C/C++ Syntax
HRESULT setStartMode(BSTR mode, BSTR namespace);
Parameters
- mode [in]
- The desired mode as a string. It must be the base name part of the qualified name. (For more information, see http://www.w3.org/TR/WD-xslt#qname and http://www.w3.org/TR/REC-xml-names/.)
- namespace [in, optional]
- The full namespace URI to fully qualify the start mode name.
C/C++ Return Values
- E_FAIL
- Value returned if readyState is READYSTATE_INTERACTIVE.
- E_INVALIDARG
- Value returned if the mode base name contains a colon character or is an invalid name.
Remarks
Using setStartMode is essentially the same as your XSLT style sheet starting with the following rule:
<xsl:template match="/">
<xsl:apply-templates select="*" mode="{mode}"/>
</xsl:template>
See Also
IXSLProcessor Interface