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 select="work-package"/>
37 <xsl:copy-of select="description/*"/>
40 <xsl:template match="work-package">
41 <xsl:variable name="work-package"
42 select="document(concat('../xml/work-packages/',@file,'.xml'))/work-package"/>
45 <xsl:value-of select="$work-package/@number"/>.
46 <a href="{@file}.html">
47 <xsl:value-of select="$work-package/name"/>
52 <xsl:when test="$work-package/description/tasks">
53 <xsl:apply-templates select="$work-package/description/tasks">
54 <xsl:with-param name="url" select="concat(@file,'.html')"/>
55 </xsl:apply-templates>
57 <xsl:otherwise> </xsl:otherwise>
61 <xsl:if test="$work-package/deliverable">
63 <xsl:variable name="url" select="concat(@file,'.html')"/>
64 <xsl:for-each select="$work-package/deliverable[@file]">
65 <xsl:apply-templates select="document(concat('../xml/deliverables/',@file,'.xml'))/deliverable">
66 <xsl:with-param name="url" select="$url"/>
67 </xsl:apply-templates>
75 <xsl:template match="tasks">
76 <xsl:param name="url"/>
79 <xsl:with-param name="url" select="$url"/>
80 </xsl:apply-templates>
84 <xsl:template match="deliverable">
85 <xsl:param name="url"/>
87 <a href="{$url}#{@id}">
88 <xsl:value-of select="@id"/>
89 <xsl:text> </xsl:text>
90 <xsl:value-of select="name"/>
95 <xsl:template match="task">
96 <xsl:param name="url"/>
98 <a href="{$url}#{@id}">
99 <xsl:value-of select="@id"/>
100 <xsl:text> </xsl:text>
101 <xsl:value-of select="name"/>