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>
26 <xsl:apply-templates/>
30 <xsl:template match="work-package">
31 <xsl:variable name="work-package"
32 select="document(concat('../xml/work-packages/',@file,'.xml'))/work-package"/>
34 <td valign="top"><xsl:value-of select="$work-package/@number"/>.</td>
36 <a href="{@file}.html">
37 <xsl:value-of select="$work-package/name"/>
39 <xsl:apply-templates select="$work-package/description/tasks">
40 <xsl:with-param name="url" select="concat(@file,'.html')"/>
41 </xsl:apply-templates>
46 <xsl:template match="tasks">
47 <xsl:param name="url"/>
50 <xsl:with-param name="url" select="$url"/>
51 </xsl:apply-templates>
55 <xsl:template match="task">
56 <xsl:param name="url"/>
58 <a href="{$url}#{@id}">
59 <xsl:value-of select="@id"/>
60 <xsl:text> </xsl:text>
61 <xsl:value-of select="name"/>