vmassol 2003/02/09 06:57:30
Modified: documentation/docs/skins/jakarta.apache.org/stylesheets
document2html.xsl
Log:
Added support for client side image maps for the <figure> element.
Revision Changes Path
1.27 +29 -1
jakarta-cactus/documentation/docs/skins/jakarta.apache.org/stylesheets/document2html.xsl
Index: document2html.xsl
===================================================================
RCS file:
/home/cvs/jakarta-cactus/documentation/docs/skins/jakarta.apache.org/stylesheets/document2html.xsl,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- document2html.xsl 3 Feb 2003 08:36:05 -0000 1.26
+++ document2html.xsl 9 Feb 2003 14:57:30 -0000 1.27
@@ -605,6 +605,12 @@
<xsl:call-template name="get-base-directory"/>
<xsl:value-of select="@src"/>
</xsl:attribute>
+ <xsl:if test="@usemap">
+ <xsl:attribute name="usemap">
+ <xsl:value-of select="@usemap"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:apply-templates/>
</img>
</xsl:when>
<xsl:otherwise>
@@ -613,12 +619,34 @@
<xsl:call-template name="get-base-directory"/>
<xsl:value-of select="@src"/>
</xsl:attribute>
+ <xsl:if test="@usemap">
+ <xsl:attribute name="usemap">
+ <xsl:value-of select="@usemap"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:apply-templates/>
</img>
</xsl:otherwise>
</xsl:choose>
</p>
</xsl:template>
+ <xsl:template match="figure/map">
+ <map name="{@name}">
+ <xsl:apply-templates/>
+ </map>
+ </xsl:template>
+
+ <xsl:template match="figure/map/area">
+ <area shape="{@shape}" coords="{@coords}">
+ <xsl:attribute name="href">
+ <xsl:call-template name="compute-link-href">
+ <xsl:with-param name="href" select="@href"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ </area>
+ </xsl:template>
+
<xsl:template match="img">
<img alt="{@alt}" border="0" vspace="4" hspace="4">
<xsl:attribute name="src">
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]