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"/>
19 <xsl:call-template name="head"/>
20 <xsl:apply-templates/>
21 <xsl:call-template name="foot"/>
27 <xsl:template match="work-packages">
28 <h1>Work Packages</h1>
32 <td>Work Package:</td>
34 <td>Deliverables:</td>
38 <xsl:apply-templates select="work-package"/>
41 <xsl:copy-of select="description/*"/>
44 <xsl:template match="work-package">
45 <xsl:variable name="work-package"
46 select="document(concat('../xml/work-packages/',@file,'.xml'))/work-package"/>
49 <xsl:value-of select="$work-package/@number"/>.
50 <a href="{@file}.html">
51 <xsl:value-of select="$work-package/name"/>
56 <xsl:when test="$work-package/description/tasks">
57 <xsl:apply-templates select="$work-package/description/tasks">
58 <xsl:with-param name="url" select="concat(@file,'.html')"/>
59 </xsl:apply-templates>
61 <xsl:otherwise> </xsl:otherwise>
65 <xsl:if test="$work-package/deliverable">
67 <xsl:for-each select="$work-package/deliverable[@file]">
68 <xsl:apply-templates select="document(concat('../xml/deliverables/',@file,'.xml'))/deliverable">
69 <xsl:with-param name="url" select="concat('../deliverables/',@file,'.html')"/>
70 </xsl:apply-templates>
78 <xsl:template match="tasks">
79 <xsl:param name="url"/>
82 <xsl:with-param name="url" select="$url"/>
83 </xsl:apply-templates>
87 <xsl:template match="deliverable">
88 <xsl:param name="url"/>
91 <xsl:value-of select="@id"/>
92 <xsl:text> </xsl:text>
93 <xsl:value-of select="name"/>
98 <xsl:template match="task">
99 <xsl:param name="url"/>
101 <a href="{$url}#{@id}">
102 <xsl:value-of select="@id"/>
103 <xsl:text> </xsl:text>
104 <xsl:value-of select="name"/>