Compartilhar via


setStartMode Method (Compact 2013)

3/26/2014

Performs subsets of larger Extensible Stylesheet Language Transformations (XSLT) by selecting the XSLT mode with which to start. This minimizes the amount of XSLT processing.

The default value of the start mode is the empty string, "".

Syntax

objXSLProcessor.setStartMode(mode, namespaceURI);
HRESULT setStartMode(
  BSTR mode,
  BSTR namespaceURI
);

Parameters

Script

  • mode
    The desired mode as a string. It must be the base name part of the qualified name. For more information, see the qualified names section of the XSL Transformations (XSLT) Version 1.0 and Namespaces in XML at the World Wide Web Consortium (W3C) Web site.
  • namespaceURI
    (optional) The full namespace Uniform Resource Identifier (URI) to fully qualify the start mode name.

C/C++

  • mode
    [in] The desired mode as a string. It must be the base name part of the qualified name.
  • namespaceURI
    [in, optional] The full namespace URI to fully qualify the start mode name.

Return Values

Script

None.

C/C++

  • 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>

Requirements

Header

msxml2.h,
msxml2.idl

Library

uuid.lib

See Also

Reference

XML DOM Methods