]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mowgli/home/xsl/work-packages_index.xsl
Work-packages DTD improved (tasks now have an identifier and a name).
[helm.git] / helm / mowgli / home / xsl / work-packages_index.xsl
index a9a711be261e479450508e5f2d024c5492ea2495..d3e8b89742d5270a25ce6f296054160cd127f933 100644 (file)
  <xsl:variable name="work-package"
                select="document(concat('../xml/work-packages/',@file,'.xml'))/work-package"/>
  <tr>
-  <td><xsl:value-of select="$work-package/@number"/>.</td>
+  <td valign="top"><xsl:value-of select="$work-package/@number"/>.</td>
   <td>
    <a href="{@file}.html">
     <xsl:value-of select="$work-package/name"/>
    </a>
+   <xsl:apply-templates select="$work-package/description/tasks">
+    <xsl:with-param name="url" select="concat(@file,'.html')"/>
+   </xsl:apply-templates>
   </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="task">
+ <xsl:param name="url"/>
+ <li>
+  <a href="{$url}#{@id}">
+   <xsl:value-of select="@id"/>
+   <xsl:text> </xsl:text>
+   <xsl:value-of select="name"/>
+  </a>
+ </li>
+</xsl:template>
+
 </xsl:stylesheet>