<xsl:text>): </xsl:text>
<xsl:if test="@media = 'slides'">
<xsl:choose>
- <xsl:when test="@slides">
- <xsl:text>[</xsl:text>
- <a href="../../misc/{@slides}">
- <xsl:text>Get the slides</xsl:text>
- </a>
- <xsl:text>]</xsl:text>
+ <xsl:when test="slides">
+ <xsl:for-each select="slides">
+ <xsl:text>[</xsl:text>
+ <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>
+ <xsl:value-of select="text()"/>
+ </xsl:if>
+ </a>
+ <xsl:text>]</xsl:text>
+ </xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:text>[slides unavailable]</xsl:text>
</xsl:if>
</dt>
<dd>
- <xsl:copy-of select="*|text()"/>
+ <xsl:copy-of select="description/*|description/text()"/>
</dd>
</xsl:template>