forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r374405 - /forrest/trunk/main/webapp/skins/common/xslt/fo/document-to-fo.xsl
Date Thu, 02 Feb 2006 15:19:31 GMT
Author: rgardler
Date: Thu Feb  2 07:19:23 2006
New Revision: 374405

URL: http://svn.apache.org/viewcvs?rev=374405&view=rev
Log:
make the printing of image alt text optional

Modified:
    forrest/trunk/main/webapp/skins/common/xslt/fo/document-to-fo.xsl

Modified: forrest/trunk/main/webapp/skins/common/xslt/fo/document-to-fo.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/common/xslt/fo/document-to-fo.xsl?rev=374405&r1=374404&r2=374405&view=diff
==============================================================================
--- forrest/trunk/main/webapp/skins/common/xslt/fo/document-to-fo.xsl (original)
+++ forrest/trunk/main/webapp/skins/common/xslt/fo/document-to-fo.xsl Thu Feb  2 07:19:23
2006
@@ -800,8 +800,10 @@
         </xsl:if>
       </fo:external-graphic>
       <!-- alt text -->
-      <xsl:if test="normalize-space(@alt)!=''">
-          <fo:block><xsl:value-of select="@alt"/></fo:block>
+      <xsl:if test="//skinconfig/pdf/show-image-alt-text='true'">
+        <xsl:if test="normalize-space(@alt)!=''">
+            <fo:block><xsl:value-of select="@alt"/></fo:block>
+        </xsl:if>
       </xsl:if>
     </fo:block>
   </xsl:template>



Mime
View raw message