]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mowgli/home/xsl/consortium.xsl
A new wonderful page that shows the deadlines ordered by date.
[helm.git] / helm / mowgli / home / xsl / consortium.xsl
index 6713ce1fbf4f3cf24b696fa79031bb3961a0ae58..f42274f9b6a9d242b2b40c7214b3fa088b25016b 100644 (file)
@@ -15,7 +15,6 @@
    <link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
   </head>
   <body>
-   <blockquote>
     <xsl:call-template name="head">
      <xsl:with-param name="path_to_top" select="'.'"/>
     </xsl:call-template>
@@ -23,7 +22,6 @@
     <xsl:call-template name="foot">
      <xsl:with-param name="path_to_top" select="'.'"/>
     </xsl:call-template>
-   </blockquote>
   </body>
  </html>
 </xsl:template>
   <xsl:for-each select="site">
    <li>
     <a href="sites/{@file}.html">
-     <xsl:value-of select="document(concat('../xml/sites/',@file,'.xml'))/site/name"/>
+     <xsl:variable name="site" select="document(concat('../xml/sites/',@file,'.xml'))/site"/>
+    <xsl:choose>
+     <xsl:when test="$site/name">
+      <xsl:value-of select="$site/name"/>
+     </xsl:when>
+     <xsl:otherwise>
+      <xsl:value-of select="$site/subsite/name"/>
+     </xsl:otherwise>
+    </xsl:choose>
     </a>
    </li>
   </xsl:for-each>