You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2015/03/07 14:12:04 UTC

svn commit: r1664844 - /jmeter/trunk/xdocs/stylesheets/website-style.xsl

Author: fschumacher
Date: Sat Mar  7 13:12:04 2015
New Revision: 1664844

URL: http://svn.apache.org/r1664844
Log:
Add alt-texts to images in screenshots and figures

Modified:
    jmeter/trunk/xdocs/stylesheets/website-style.xsl

Modified: jmeter/trunk/xdocs/stylesheets/website-style.xsl
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/stylesheets/website-style.xsl?rev=1664844&r1=1664843&r2=1664844&view=diff
==============================================================================
--- jmeter/trunk/xdocs/stylesheets/website-style.xsl (original)
+++ jmeter/trunk/xdocs/stylesheets/website-style.xsl Sat Mar  7 13:12:04 2015
@@ -215,8 +215,9 @@
     <xsl:param name="image" />
     <xsl:param name="width" />
     <xsl:param name="height" />
+    <xsl:param name="alt" />
     <xsl:variable name="name" select="concat($srcdir, '/', $image)" />
-    <a href="{$name}"><img src="{$name}" width="{$width}" height="{$height}" /></a>
+    <a href="{$name}"><img src="{$name}" width="{$width}" height="{$height}" alt="{$alt}" /></a>
   </xsl:template>
 
   <!-- Process a menu for the navigation bar -->
@@ -358,6 +359,7 @@
             <xsl:with-param name="image" select="@screenshot" />
             <xsl:with-param name="width" select="@width" />
             <xsl:with-param name="height" select="@height" />
+            <xsl:with-param name="alt" select="concat('Screenshot for ', @name)" />
           </xsl:call-template>
         </div>
       </xsl:if>
@@ -453,6 +455,7 @@
         <xsl:with-param name="image" select="@image" />
         <xsl:with-param name="width" select="@width" />
         <xsl:with-param name="height" select="@height" />
+        <xsl:with-param name="alt" select="text()"/>
       </xsl:call-template>
       <figcaption>
         <xsl:apply-templates />