Microsoft XML SDK 2.6 - XML Reference

IXSLProcessor::stylesheet Method

Provides the XSL style sheet that is to be compiled into the XSL template.

Visual Basic Syntax

Set objXMLDOMNode = objXSLProcessor.stylesheet

C/C++ Syntax

HRESULT get_stylesheet (IXMLDOMNode** stylesheet);

Parameters

stylesheet [out]
The node that represents an XSL style sheet. This must be a free-threaded document object.

C/C++ Return Values

E_FAIL
Value returned if the document is not a valid style sheet or if the document is free-threaded.

Remarks

The style sheet document is made read-only, while the style sheet belongs to the template or any associated processor. The read-only flag is removed when the style sheet is released from all templates and/or processing objects.

The processor objects created by this template take a "snapshot" of the current style sheet and always use that same style sheet, so they are actually isolated from changes to the stylesheet property. The only way to update the processor to the new style sheet is to create a new processor.

See Also

IXSLProcessor Interface