+ <tr>
+ <td valign="top">
+ <xsl:value-of select="$work-package/@number"/>.
+ <a href="{@file}.html">
+ <xsl:value-of select="$work-package/name"/>
+ </a>
+ </td>
+ <td valign="top">
+ <xsl:choose>
+ <xsl:when test="$work-package/description/tasks">
+ <xsl:apply-templates select="$work-package/description/tasks">
+ <xsl:with-param name="url" select="concat(@file,'.html')"/>
+ </xsl:apply-templates>
+ </xsl:when>
+ <xsl:otherwise> </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td valign="top">
+ <xsl:if test="$work-package/deliverable">
+ <ul>
+ <xsl:for-each select="$work-package/deliverable[@file]">
+ <xsl:apply-templates select="document(concat('../xml/deliverables/',@file,'.xml'))/deliverable">
+ <xsl:with-param name="url" select="concat('../deliverables/',@file,'.html')"/>
+ </xsl:apply-templates>
+ </xsl:for-each>
+ </ul>
+ </xsl:if>
+ </td>
+ </tr>
+</xsl:template>
+
+<xsl:template match="tasks">
+ <xsl:param name="url"/>
+ <ul>
+ <xsl:apply-templates>
+ <xsl:with-param name="url" select="$url"/>
+ </xsl:apply-templates>
+ </ul>
+</xsl:template>
+
+<xsl:template match="deliverable">
+ <xsl:param name="url"/>
+ <li>
+ <a href="{$url}">
+ <xsl:value-of select="@id"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="name"/>
+ </a>
+ </li>
+</xsl:template>
+
+<xsl:template match="task">
+ <xsl:param name="url"/>
+ <li>
+ <a href="{$url}#{@id}">
+ <xsl:value-of select="@id"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="name"/>