<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>