</xsl:apply-templates>
</xsl:template>
- <xsl:template match="figure">
- <xsl:with-param name="chid"/>
- <xsl:variable name="fignum">
- <xsl:number level="any" from="chapter" count="figure"/>
- </xsl:variable>
- <xsl:variable name="figid">doc_chap<xsl:value-of select="$chid"/>_fig<xsl:value-of select="$fignum"/></xsl:variable>
- <br/>
- <a name="{$figid}"/>
- <table cellspacing="0" cellpadding="0" border="0">
- <tr>
- <td class="infohead" bgcolor="#7a5ada">
- <p class="caption">
- <xsl:choose>
- <xsl:when test="@caption">
- Figure <xsl:value-of select="$chid"/>.<xsl:value-of select="$fignum"/>: <xsl:value-of select="@caption"/>
- </xsl:when>
- <xsl:otherwise>
- Figure <xsl:value-of select="$chid"/>.<xsl:value-of select="$fignum"/>
- </xsl:otherwise>
- </xsl:choose>
- </p>
- </td>
- </tr>
- <tr>
- <td align="center" bgcolor="#ddddff">
- <xsl:choose>
- <xsl:when test="@short">
- <img src="{@link}" alt="Fig. {$fignum}: {@short}"/>
- </xsl:when>
- <xsl:otherwise>
- <img src="{@link}" alt="Fig. {$fignum}"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- </table>
- <br/>
- </xsl:template>
-
<!--figure without a caption; just a graphical element-->
<xsl:template match="fig">
<center>