3 <xsl:stylesheet version="1.0"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
6 <xsl:import href="common.xsl"/>
8 <xsl:output method="xml"/>
10 <xsl:template match="/">
14 <xsl:text>Work Package </xsl:text>
15 <xsl:value-of select="work-package/@number"/>
16 <xsl:text>: </xsl:text>
17 <xsl:value-of select="work-package/name"/>
21 <xsl:apply-templates/>
26 <xsl:template match="work-package">
28 <xsl:text>Work Package </xsl:text>
29 <xsl:value-of select="number"/>
30 <xsl:text>: </xsl:text>
31 <xsl:value-of select="name"/>
34 Begin: <xsl:value-of select="begin"/>    
35 End: <xsl:value-of select="end"/>
38 <xsl:text>Work Package Leader: </xsl:text>
39 <a href="../people/{leader/@file}.html">
40 <xsl:call-template name="person-name">
41 <xsl:with-param name="file" select="leader/@file"/>
45 <h2>Contribution of Each Site (in Man Monthes):</h2>
46 <span style="margin-left: 1cm">
49 <xsl:for-each select="person-month">
51 <a href="../sites/{@participant}.html">
52 <xsl:value-of select="@participant"/>
58 <xsl:for-each select="person-month">
59 <td align="center"><xsl:value-of select="@number"/></td>
65 <xsl:copy-of select="objectives/*"/>
67 <xsl:apply-templates select="description/*"/>
68 <h2>Deliverables:</h2>
70 <xsl:for-each select="deliverable">
73 <xsl:when test="@file">
74 <a href="../deliverables/{@file}.html">
75 <xsl:variable name="deliverable"
76 select="document(concat('../xml/deliverables/',@file,'.xml'))/deliverable"/>
77 <xsl:value-of select="$deliverable/@id"/>
78 <xsl:text> </xsl:text>
79 <xsl:value-of select="$deliverable/name"/>
83 <xsl:value-of select="."/>
89 <h2>Milestones and Expected Results:</h2>
90 <xsl:copy-of select="milestones/*"/>
93 <xsl:template match="tasks">
95 <xsl:apply-templates/>
99 <xsl:template match="task">
102 <xsl:value-of select="@id"/>
103 <xsl:text> </xsl:text>
104 <xsl:value-of select="name"/>
107 <xsl:copy-of select="*"/>
111 <xsl:template name="p|ul|dl">
112 <xsl:copy-of select="."/>