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.
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="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:apply-templates select="Data" />
</xsl:template>
<xsl:template match="Data">
<table width="100%" cellpadding="1" cellspacing="0" border="0">
<tr>
<td width="100%" align="Center" valign="top">
<h1>
<xsl:value-of select="Field[@name='Title']/Html"/>
</h1>
</td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>
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.