]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mowgli/home/xsl/work-packages_index.xsl
The Work-Packages index page is no more a static HTML page, but it is
[helm.git] / helm / mowgli / home / xsl / work-packages_index.xsl
diff --git a/helm/mowgli/home/xsl/work-packages_index.xsl b/helm/mowgli/home/xsl/work-packages_index.xsl
new file mode 100644 (file)
index 0000000..e75e08e
--- /dev/null
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:import href="common.xsl"/>
+
+<xsl:output method="html"/>
+
+<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/>
+  </body>
+ </html>
+</xsl:template>
+
+<xsl:template match="work-packages">
+ <h1>Work Packages</h1>
+ <ol>
+  <xsl:apply-templates/>
+ </ol>
+</xsl:template>
+
+<xsl:template match="work-package">
+ <xsl:variable name="work-package"
+               select="document(concat('../xml/work-packages/',@file,'.xml'))/work-package"/>
+ <li value="{$work-package/@number + 1}">
+  <a href="{@file}.html">
+   <xsl:value-of select="@file"/>
+  </a>
+ </li>
+</xsl:template>
+
+</xsl:stylesheet>