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="html"/>
10 <xsl:template match="/">
13 <title>Work Packages</title>
14 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
15 <link rel="stylesheet" href="../../style/mowgli.css" type="text/css"/>
18 <xsl:call-template name="head">
19 <xsl:with-param name="path_to_top" select="'..'"/>
21 <xsl:apply-templates/>
22 <xsl:call-template name="foot">
23 <xsl:with-param name="path_to_top" select="'..'"/>
29 <xsl:template match="work-packages">
30 <h1>Work Packages</h1>
34 <td>Work Package:</td>
36 <td>Deliverables:</td>
40 <xsl:apply-templates select="work-package"/>
43 <xsl:copy-of select="description/*"/>
46 <xsl:template match="work-package">
47 <xsl:variable name="work-package"
48 select="document(concat('../xml/work-packages/',@file,'.xml'))/work-package"/>
51 <xsl:value-of select="$work-package/@number"/>.
52 <a href="{@file}.html">
53 <xsl:value-of select="$work-package/name"/>
58 <xsl:when test="$work-package/description/tasks">
59 <xsl:apply-templates select="$work-package/description/tasks">
60 <xsl:with-param name="url" select="concat(@file,'.html')"/>
61 </xsl:apply-templates>
63 <xsl:otherwise> </xsl:otherwise>
67 <xsl:if test="$work-package/deliverable">
69 <xsl:for-each select="$work-package/deliverable[@file]">
70 <xsl:apply-templates select="document(concat('../xml/deliverables/',@file,'.xml'))/deliverable">
71 <xsl:with-param name="url" select="concat('../deliverables/',@file,'.html')"/>
72 </xsl:apply-templates>
80 <xsl:template match="tasks">
81 <xsl:param name="url"/>
84 <xsl:with-param name="url" select="$url"/>
85 </xsl:apply-templates>
89 <xsl:template match="deliverable">
90 <xsl:param name="url"/>
93 <xsl:value-of select="@id"/>
94 <xsl:text> </xsl:text>
95 <xsl:value-of select="name"/>
100 <xsl:template match="task">
101 <xsl:param name="url"/>
103 <a href="{$url}#{@id}">
104 <xsl:value-of select="@id"/>
105 <xsl:text> </xsl:text>
106 <xsl:value-of select="name"/>