]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mowgli/home/xsl/work-package.xsl
- more uniform layout
[helm.git] / helm / mowgli / home / xsl / work-package.xsl
index b6bc9347f817c1ee01d9fa5d10819da187ed5d06..22486f4a1825322a91dc23476c1cb3860bfed885 100644 (file)
    <link rel="stylesheet" href="../../style/mowgli.css" type="text/css"/>
   </head>
   <body>
-   <xsl:apply-templates/>
+   <blockquote>
+    <xsl:call-template name="head"/>
+    <xsl:apply-templates/>
+    <xsl:call-template name="foot"/>
+   </blockquote>
   </body>
  </html>
 </xsl:template>
  <h2>Objectives:</h2>
  <xsl:copy-of select="objectives/*"/>
  <h2>Description:</h2>
- <xsl:copy-of select="description/*"/>
+ <xsl:apply-templates select="description/*"/>
  <h2>Deliverables:</h2>
  <ul>
   <xsl:for-each select="deliverable">
    <li>
     <xsl:choose>
      <xsl:when test="@file">
-      <a href="../deliverables/{@file}.html">
-       <xsl:value-of select="@file"/>
-      </a>
+      <xsl:variable name="deliverable"
+                    select="document(concat('../xml/deliverables/',@file,'.xml'))/deliverable"/>
+      <a name="{$deliverable/@id}"/>
+      <xsl:value-of select="$deliverable/@id"/>
+      <xsl:text> </xsl:text>
+      <xsl:value-of select="$deliverable/name"/>
      </xsl:when>
      <xsl:otherwise>
       <xsl:value-of select="."/>
   </xsl:for-each>
  </ul>
  <h2>Milestones and Expected Results:</h2>
- <xsl:copy-of select="milestone/*"/>
+ <xsl:copy-of select="milestones/*"/>
+</xsl:template>
+
+<xsl:template match="tasks">
+ <dl>
+  <xsl:apply-templates/>
+ </dl>
+</xsl:template>
+
+<xsl:template match="task">
+ <dt>
+  <a name="{@id}"/>
+  <xsl:value-of select="@id"/>
+  <xsl:text> </xsl:text>
+  <xsl:value-of select="name"/>
+ </dt>
+ <dd>
+  <xsl:copy-of select="*"/>
+ </dd>
+</xsl:template>
+
+<xsl:template name="p|ul|dl">
+ <xsl:copy-of select="."/>
 </xsl:template>
 
 </xsl:stylesheet>