]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/consortium.xsl
Initial commit of the XML/XSLT stuff.
[helm.git] / helm / mowgli / home / xsl / consortium.xsl
1 <?xml version="1.0"?>
2
3 <xsl:stylesheet version="1.0"
4                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5
6 <xsl:output method="html"/>
7
8 <xsl:template match="/">
9  <html>
10   <head>
11    <title>Consortium</title>
12    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
13    <link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
14   </head>
15   <body>
16    <xsl:apply-templates/>
17   </body>
18  </html>
19 </xsl:template>
20
21 <xsl:template match="consortium">
22  <h1>The Consortium</h1>
23  <p>
24   <xsl:text>The Consortium is made of </xsl:text>
25   <xsl:value-of select="count(site)"/>
26   <xsl:text> sites:</xsl:text>
27  </p>
28  <ul>
29   <xsl:for-each select="site">
30    <li>
31     <a href="sites/{@file}.html">
32      <xsl:value-of select="@file"/>
33     </a>
34    </li>
35   </xsl:for-each>
36  </ul>
37  <xsl:copy-of select="description/*"/>
38 </xsl:template>
39
40 </xsl:stylesheet>