]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mowgli/home/xsl/work-packages_index.xsl
ocaml 3.09 transition
[helm.git] / helm / mowgli / home / xsl / work-packages_index.xsl
index ddd9a035f07181e51807c6372bf06ef8469a0261..d13fd454ad23deb3851eb4006aee87880e966524 100644 (file)
@@ -5,17 +5,15 @@
 
 <xsl:import href="common.xsl"/>
 
-<xsl:output method="html"/>
+<xsl:output method="xml"/>
 
 <xsl:template match="/">
  <html>
   <head>
    <title>Work Packages</title>
-   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-   <link rel="stylesheet" href="../../style/mowgli.css" type="text/css"/>
   </head>
   <body>
-   <xsl:apply-templates/>
+    <xsl:apply-templates/>
   </body>
  </html>
 </xsl:template>
   <td valign="top">
    <xsl:if test="$work-package/deliverable">
     <ul>
-     <xsl:variable name="url" select="concat(@file,'.html')"/>
      <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="$url"/>
+       <xsl:with-param name="url" select="concat('../deliverables/',@file,'.html')"/>
       </xsl:apply-templates>
      </xsl:for-each>
     </ul>
@@ -84,7 +81,7 @@
 <xsl:template match="deliverable">
  <xsl:param name="url"/>
  <li>
-  <a href="{$url}#{@id}">
+  <a href="{$url}">
    <xsl:value-of select="@id"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="name"/>