<config css="dash.css">
    <title>Jim Fuller's Dashboard</title>
    <section column="c1" title="UWE sites">
        <monitor>
            <website>
                <title>xmldb</title>
                <url>http://www.cems.uwe.ac.uk/xmlwiki/index.xq</url>
            </website>
            <website>
                <title>studentsOnline</title>
                <url>http://www.cems.uwe.ac.uk/studentsonline</url>
            </website>
            <website>
                <title>Webmail</title>
                <url>https://owa.uwe.ac.uk/Exchange/</url>
            </website>
        </monitor>
    </section>
    <section column="c2" title="Time in Bristol">
        <datetime>
            <format>EE dd/MM HH:mm</format>
        </datetime>
    </section>
    <section column="c2" title="IBM and HP">
        <compare>
            <graph width="300" height="150"/>
            <company>ibm.com</company>
            <company>hp.com</company>
        </compare>
    </section>
    <section column="c1" title="Commerical Sites">
        <monitor>
            <website>
                <title>Webcomposite</title>
                <url>http://www.webcomposite.com</url>
            </website>
            <website>
                <title>IBM</title>
                <url>http://www.ibm.com</url>
            </website>
            <website>
                <title>Google</title>
                <url>http://www.google.co.uk/search?q=xquery</url>
            </website>
            <website>
                <title>Bad</title>
                <url>xxx</url>
            </website>
        </monitor>
    </section>
    <section column="c3" title="Expenditure">
        <googleSS>
            <id>pZDPqHJcLzxKntsQv2tuIMQ</id>
            <xsl>
                <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
                    <xsl:template match="table">
                        <table>
                            <xsl:apply-templates select="row"/>
                        </table>
                    </xsl:template>
                    <xsl:template match="row">
                        <tr>
                            <td> £<xsl:value-of select="Net_Income"/>
                            </td>
                            <td>
                                <xsl:variable name="amt">
                                    <xsl:value-of select=" (number(Net_Income) div 10000) * 100"/>
                                </xsl:variable>
                                <img alt="Status" src="http://chart.apis.google.com/chart?chf=bg,s,F7F5E6&amp;chco=4D89F9,C6D9FD&amp;chs=150x30&amp;cht=bhs&amp;chl=0|10000&amp;chd=t:{$amt}"/>
                            </td>
                            <td>
                                <xsl:value-of select="Status"/>
                            </td>
                        </tr>
                    </xsl:template>
                </xsl:stylesheet>
            </xsl>
        </googleSS>
    </section>
    <section column="c2" title="Overpaid executives">
        <SQL>
            <username>cwstudent</username>
            <password>cwstudent</password>
            <database>jdbc:mysql://stocks.cems.uwe.ac.uk/Emp</database>
            <query>select ename,sal from emp where sal &gt; 2000 order by sal desc</query>
            <xsl>
                <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
                    <xsl:template match="table">
                        <table border="1">
                            <xsl:apply-templates select="row"/>
                        </table>
                    </xsl:template>
                    <xsl:template match="row">
                        <tr>
                            <td>
                                <xsl:value-of select="ename"/>
                            </td>
                            <td>
                                <xsl:value-of select="sal"/>
                            </td>
                        </tr>
                    </xsl:template>
                </xsl:stylesheet>
            </xsl>
        </SQL>
    </section>
    <section column="c3" title="Weekly Timesheets">
        <excelSS>
            <uri>/db/Wiki/dashboard/MSOFFICE-timesheet.xml</uri>
            <xsl>
                <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
                    <xsl:template match="table">
                        <table>
                            <xsl:apply-templates select="row"/>
                        </table>
                    </xsl:template>
                    <xsl:template match="row">
                        <tr>
                            <td>
                                <xsl:value-of select="First_Name"/>
                            </td>
                            <td>
                                <xsl:value-of select="Last_Name"/>
                            </td>
                            <td>
                                <xsl:variable name="hours">
                                    <xsl:value-of select=" number((Hours) div 40)  * 100"/>
                                </xsl:variable>
                                <xsl:choose>
                                    <xsl:when test="$hours lt 100">
                                        <img alt="hours" src="http://chart.apis.google.com/chart?chf=bg,s,F7F5E6&amp;chco=4D89F9,C6D9FD&amp;chs=150x30&amp;cht=bhs&amp;chl=0|40&amp;chd=t:{$hours}"/>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <img alt="hours" src="http://chart.apis.google.com/chart?chf=bg,s,F7F5E6&amp;chco=FF5858,C6D9FD&amp;chs=150x30&amp;cht=bhs&amp;chl=0|40&amp;chd=t:{$hours}"/>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </td>
                        </tr>
                    </xsl:template>
                </xsl:stylesheet>
            </xsl>
        </excelSS>
    </section>
    <section column="c1" title="Staff Status">
        <googleSS>
            <id>pOc-ldAPJfBsRdFj6qV1XZg</id>
            <xsl>
                <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
                    <xsl:template match="table">
                        <table border="1">
                            <xsl:apply-templates select="row"/>
                        </table>
                    </xsl:template>
                    <xsl:template match="row">
                        <tr>
                            <td>
                                <xsl:value-of select="Name"/>
                            </td>
                            <td>
                                <xsl:value-of select="Status"/>
                            </td>
                        </tr>
                    </xsl:template>
                </xsl:stylesheet>
            </xsl>
        </googleSS>
    </section>
</config>