The Project Statement XML web part allows you to pull data from multiple columns in the Project Statement and render it accordingly, including using conditional formatting and performing calculations. This is done by means of XSL. The Project Statement Costs and Project Statement Dates web parts are working examples of the Project Statement XML web part.

In order to use this web part you need to be proficient in XSL. If you have written code for the SharePoint XML web part it is very similar.

Click here to learn how to add web parts. All web parts share basic modification functionality - click here to learn about this.

To add code to the Project Statement XML web part:

  1. Click 6 on the web part toolbar and select Modify Shared Web Part to open the web part tool pane.

  2. Point the web part at your XSL code. You have 2 options:

Use the tool pane code editor

    1. Click XSL Editor and enter the code directly into the editor.

    2. Click OK to close the editor.

    3. Click OK to close the tool pane and apply the changes.

    4. Here is a simple example to get you started. This should be pasted into the XSL Editor ... dialog and when saved it will display the name of the project site.

      <?xml version="1.0" encoding="UTF-8" ?>
      <xsl:stylesheet version="1.0" xmlns:xsl="">
        <xsl:template match="/">
        <xsl:apply-templates select="Data" />

      <xsl:template match="Data">
        <table width="100%" cellpadding="1" cellspacing="0" border="0">
            <td width="100%" align="Center" valign="top">
              <xsl:value-of select="Field[@name='Title']/Html"/>

Point at a file

    1. Enter a server relative URL in the XSL Link field.

    2. Click OK to close the tool pane and apply the changes.

Was this article useful?

Back to Top