+++ /dev/null
-<?xml version="1.0"?>
-
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-<xsl:import href="common.xsl"/>
-
-<xsl:output method="xml"/>
-
-<xsl:template match="/">
- <html>
- <head>
- <title>
- <xsl:text>Work Package </xsl:text>
- <xsl:value-of select="work-package/@number"/>
- <xsl:text>: </xsl:text>
- <xsl:value-of select="work-package/name"/>
- </title>
- </head>
- <body>
- <xsl:apply-templates/>
- </body>
- </html>
-</xsl:template>
-
-<xsl:template match="work-package">
- <h1>
- <xsl:text>Work Package </xsl:text>
- <xsl:value-of select="number"/>
- <xsl:text>: </xsl:text>
- <xsl:value-of select="name"/>
- </h1>
- <h2>
- Begin: <xsl:value-of select="begin"/>    
- End: <xsl:value-of select="end"/>
- </h2>
- <h2>
- <xsl:text>Work Package Leader: </xsl:text>
- <a href="../people/{leader/@file}.html">
- <xsl:call-template name="person-name">
- <xsl:with-param name="file" select="leader/@file"/>
- </xsl:call-template>
- </a>
- </h2>
- <h2>Contribution of Each Site (in Man Monthes):</h2>
- <span style="margin-left: 1cm">
- <table>
- <tr>
- <xsl:for-each select="person-month">
- <td>
- <a href="../sites/{@participant}.html">
- <xsl:value-of select="@participant"/>
- </a>
- </td>
- </xsl:for-each>
- </tr>
- <tr>
- <xsl:for-each select="person-month">
- <td align="center"><xsl:value-of select="@number"/></td>
- </xsl:for-each>
- </tr>
- </table>
- </span>
- <h2>Objectives:</h2>
- <xsl:copy-of select="objectives/*"/>
- <h2>Description:</h2>
- <xsl:apply-templates select="description/*"/>
- <h2>Deliverables:</h2>
- <ul>
- <xsl:for-each select="deliverable">
- <li>
- <xsl:choose>
- <xsl:when test="@file">
- <a href="../deliverables/{@file}.html">
- <xsl:variable name="deliverable"
- select="document(concat('../xml/deliverables/',@file,'.xml'))/deliverable"/>
- <xsl:value-of select="$deliverable/@id"/>
- <xsl:text> </xsl:text>
- <xsl:value-of select="$deliverable/name"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </li>
- </xsl:for-each>
- </ul>
- <h2>Milestones and Expected Results:</h2>
- <xsl:copy-of select="milestones/*"/>
-</xsl:template>
-
-<xsl:template match="tasks">
- <dl>
- <xsl:apply-templates/>
- </dl>
-</xsl:template>
-
-<xsl:template match="task">
- <dt>
- <a name="{@id}"/>
- <xsl:value-of select="@id"/>
- <xsl:text> </xsl:text>
- <xsl:value-of select="name"/>
- </dt>
- <dd>
- <xsl:copy-of select="*"/>
- </dd>
-</xsl:template>
-
-<xsl:template name="p|ul|dl">
- <xsl:copy-of select="."/>
-</xsl:template>
-
-</xsl:stylesheet>