IHTMLXSLElement Object

Microsoft FrontPage Visual Basic

IHTMLXSLElement Object

IHTMLXSLElement

Represents an Extensible Stylesheet Language (XSL) element for an XSL Data View Web Part. The IHTMLXSLElement object provides access to a limited number of properties and methods related to the XSL element. For access to all properties and methods, use the FPHTMLXSLElement object.

This object is supported only by Web pages or sites that are based on Microsoft Windows SharePoint Services.

Using the IHTMLXSLElement Object

Use the all property for the FPHTMLXSLWebPartElement object to return an IHTMLElementCollection collection that represents a collection of all the elements for an XSL Data View Web Part. Then use the tags method to return an IHTMLElementCollection collection that represents all of the XSL elements of the specified type (for example, "xsl-template", "xsl-outside-if", "xsl-value-of", etc.) in a Data View Web Part. The following example returns the first xsl:template element in the first Web Part in the active document. This example assumes that the first Web Part in the active document is a Data View Web Part.

    Dim objWebPart As FPHTMLXSLWebPartElement
Dim objXSLElement As IHTMLXSLElement

Set objWebPart = ActiveDocument.WebParts.Item(0)
Set objXSLElement = objWebPart.all.tags("xsl-template").Item(0)