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:apply-templates/>
23 <xsl:template match="work-packages">
24 <h1>Work Packages</h1>
28 <td>Work Package:</td>
30 <td>Deliverables:</td>
34 <xsl:apply-templates/>
39 <xsl:template match="work-package">
40 <xsl:variable name="work-package"
41 select="document(concat('../xml/work-packages/',@file,'.xml'))/work-package"/>
44 <xsl:value-of select="$work-package/@number"/>.
45 <a href="{@file}.html">
46 <xsl:value-of select="$work-package/name"/>
51 <xsl:when test="$work-package/description/tasks">
52 <xsl:apply-templates select="$work-package/description/tasks">
53 <xsl:with-param name="url" select="concat(@file,'.html')"/>
54 </xsl:apply-templates>
56 <xsl:otherwise> </xsl:otherwise>
60 <xsl:if test="$work-package/deliverable">
62 <xsl:variable name="url" select="concat(@file,'.html')"/>
63 <xsl:for-each select="$work-package/deliverable[@file]">
64 <xsl:apply-templates select="document(concat('../xml/deliverables/',@file,'.xml'))/deliverable">
65 <xsl:with-param name="url" select="$url"/>
66 </xsl:apply-templates>
74 <xsl:template match="tasks">
75 <xsl:param name="url"/>
78 <xsl:with-param name="url" select="$url"/>
79 </xsl:apply-templates>
83 <xsl:template match="deliverable">
84 <xsl:param name="url"/>
86 <a href="{$url}#{@id}">
87 <xsl:value-of select="@id"/>
88 <xsl:text> </xsl:text>
89 <xsl:value-of select="name"/>
94 <xsl:template match="task">
95 <xsl:param name="url"/>
97 <a href="{$url}#{@id}">
98 <xsl:value-of select="@id"/>
99 <xsl:text> </xsl:text>
100 <xsl:value-of select="name"/>