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:
Click 6 on the web part toolbar and select Modify Shared Web Part to open the web part tool pane.
Point the web part at your XSL code. You have 2 options:
Use the tool pane code editor
Click XSL Editor and enter the code directly into the editor.
Click OK to close the editor.
Click OK to close the tool pane and apply the changes.
Point at a file
Enter a server relative URL in the XSL Link field.
Click OK to close the tool pane and apply the changes.
To view the XML that you will be working with, right-click on the page and select View Source. Then do a search for <!--<?xml version="1.0" encoding="utf-16"?>
.