Share via


Web Parts with XML Content

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

To create a Web Part that contains Extensible Markup Language (XML) content, you can use one of four pairs of properties.

Properties Description
ContentLink and XSL The ContentLink property contains a URL that points to an XML document. The XSL property contains an embedded style sheet the dashboard factory uses to transform the XML into HTML.
ContentLink and XSLLink The ContentLink property contains a URL that points to an XML document. The XSLLink property contains a URL pointing to a style sheet that the dashboard factory uses to transform the XML content into HTML.
Content and XSL The Content property contains embedded XML content. The XSL property contains an embedded style sheet the dashboard factory uses to transform the XML to HTML.
Content and XSLLink The Content property contains embedded XML content. The XSLLink property contains a URL pointing to a style sheet that the dashboard factory uses to transform the XML to HTML.

XML and XSL Encoding Limitations

The following are a few XML and XSL encoding limitations that exist for the Digital Dashboard.

  • Be sure to set the value of the ContentType property to 3, or XML, if your Web Part retrieves XML content through a URL in the ContentLink property. Otherwise, the dashboard factory will not render the XML correctly. If you use the ContentLink property but do not define the ContentType property correctly, the dashboard will temporarily convert that content into a string, causing an XSL error when transforming XML that does not use UTF-16 encoding.
  • You cannot specify an encoding type for Web Parts that store an XSL link in the XSL property, because the dashboard factory passes the XSL through a string.

See Also

Types of Web Parts | Web Parts with Embedded Content | Web Parts with Linked Content