]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mowgli/home/xsl/consortium.xsl
Initial commit of the XML/XSLT stuff.
[helm.git] / helm / mowgli / home / xsl / consortium.xsl
diff --git a/helm/mowgli/home/xsl/consortium.xsl b/helm/mowgli/home/xsl/consortium.xsl
new file mode 100644 (file)
index 0000000..09ee0d8
--- /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:output method="html"/>
+
+<xsl:template match="/">
+ <html>
+  <head>
+   <title>Consortium</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="consortium">
+ <h1>The Consortium</h1>
+ <p>
+  <xsl:text>The Consortium is made of </xsl:text>
+  <xsl:value-of select="count(site)"/>
+  <xsl:text> sites:</xsl:text>
+ </p>
+ <ul>
+  <xsl:for-each select="site">
+   <li>
+    <a href="sites/{@file}.html">
+     <xsl:value-of select="@file"/>
+    </a>
+   </li>
+  </xsl:for-each>
+ </ul>
+ <xsl:copy-of select="description/*"/>
+</xsl:template>
+
+</xsl:stylesheet>