]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mowgli/home/xsl/minutes.xsl
ocaml 3.09 transition
[helm.git] / helm / mowgli / home / xsl / minutes.xsl
index 26a01e014df0e5de58c31412f538a75f19eae83f..0270a159d9fe72aa14a58885a2fad184ff1f4c69 100644 (file)
     <xsl:when test="slides">
      <xsl:for-each select="slides">
       <xsl:text>[</xsl:text>
-      <a href="../../misc/{@file}">
+      <xsl:variable name="location">
+       <xsl:choose>
+        <xsl:when test="@format = 'HTML'">
+         <xsl:value-of select="concat('../slides/',@file)"/>
+        </xsl:when>
+        <xsl:otherwise>
+         <xsl:value-of select="concat('../../misc/',@file)"/>
+        </xsl:otherwise>
+       </xsl:choose>
+      </xsl:variable>
+      <a href="{$location}">
        <xsl:text>Get the slides</xsl:text>
        <xsl:if test="text()">
         <xsl:text> </xsl:text>