Microsoft XML SDK 2.6 - XML Reference

IXSLTemplate::stylesheet Method

IXSLTemplate::get_stylesheet Method

Returns the XSL style sheet to compile into an XSL template.

Visual Basic Syntax

Set objXMLDOMNode = objXSLTemplate.stylesheet

C/C++ Syntax

HRESULT get_stylesheet(IXMLDOMNode** stylesheet);

Parameters

stylesheet [out]
The node that represents an XSLT 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 not 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 processor objects.

The processor objects created by this template take a "snapshot" of the current style sheet and always use the same style sheet, so they are isolated from changes to this stylesheet property. The only way to update the processor to the new style sheet is to create a new processor (this satisfies the ASP scenarios shown in the IXSLTemplate example).



IXSLTemplate::put_stylesheet Method

Provides the XSL style sheet to compile into an XSL template. 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 processor objects.

The processor objects created by this template take a "snapshot" of the current style sheet and always use the same style sheet, so they are isolated from changes to this stylesheet property. The only way to update the processor to the new style sheet is to create a new processor (this satisfies the ASP scenarios shown in the XSLTemplate example).

Visual Basic Syntax

objXSLTemplate.stylesheet = objXMLDOMNode

C/C++ Syntax

HRESULT putref_stylesheet(IXMLDOMNode* stylesheet);

Parameters

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

C/C++ Return Value

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

See Also

IXSLTemplate Interface