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:with-param name="path_to_top" select="'..'"/>
22 <xsl:apply-templates/>
23 <xsl:call-template name="foot">
24 <xsl:with-param name="path_to_top" select="'..'"/>
31 <xsl:template match="work-packages">
32 <h1>Work Packages</h1>
36 <td>Work Package:</td>
38 <td>Deliverables:</td>
42 <xsl:apply-templates select="work-package"/>
45 <xsl:copy-of select="description/*"/>
48 <xsl:template match="work-package">
49 <xsl:variable name="work-package"
50 select="document(concat('../xml/work-packages/',@file,'.xml'))/work-package"/>
53 <xsl:value-of select="$work-package/@number"/>.
54 <a href="{@file}.html">
55 <xsl:value-of select="$work-package/name"/>
60 <xsl:when test="$work-package/description/tasks">
61 <xsl:apply-templates select="$work-package/description/tasks">
62 <xsl:with-param name="url" select="concat(@file,'.html')"/>
63 </xsl:apply-templates>
65 <xsl:otherwise> </xsl:otherwise>
69 <xsl:if test="$work-package/deliverable">
71 <xsl:for-each select="$work-package/deliverable[@file]">
72 <xsl:apply-templates select="document(concat('../xml/deliverables/',@file,'.xml'))/deliverable">
73 <xsl:with-param name="url" select="concat('../deliverables/',@file,'.html')"/>
74 </xsl:apply-templates>
82 <xsl:template match="tasks">
83 <xsl:param name="url"/>
86 <xsl:with-param name="url" select="$url"/>
87 </xsl:apply-templates>
91 <xsl:template match="deliverable">
92 <xsl:param name="url"/>
95 <xsl:value-of select="@id"/>
96 <xsl:text> </xsl:text>
97 <xsl:value-of select="name"/>
102 <xsl:template match="task">
103 <xsl:param name="url"/>
105 <a href="{$url}#{@id}">
106 <xsl:value-of select="@id"/>
107 <xsl:text> </xsl:text>
108 <xsl:value-of select="name"/>