Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


From: Andrew Sayers <andrew-libreoffice.org@pileofstuff.org>

---
 filter/source/xslt/odf2xhtml/export/common/body.xsl | 2 +-
 filter/source/xslt/odf2xhtml/export/xhtml/body.xsl  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git filter/source/xslt/odf2xhtml/export/common/body.xsl 
filter/source/xslt/odf2xhtml/export/common/body.xsl
index 5aed262..dfb49c0 100644
--- filter/source/xslt/odf2xhtml/export/common/body.xsl
+++ filter/source/xslt/odf2xhtml/export/common/body.xsl
@@ -431,7 +431,7 @@
        <!-- default template for not recognized elements -->
        <xsl:template match="*">
                <xsl:param name="globalData"/>
-               <xsl:message>Using default element rule for ODF element '<xsl:value-of 
select="name()"/>'.</xsl:message>
+               <xsl:if test="$debugEnabled"><xsl:message>Using default element rule for ODF 
element '<xsl:value-of select="name()"/>'.</xsl:message></xsl:if>
 
                <xsl:apply-templates>
                        <xsl:with-param name="globalData" select="$globalData"/>
diff --git filter/source/xslt/odf2xhtml/export/xhtml/body.xsl 
filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
index 5df5cd4..51fb7b6 100644
--- filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
+++ filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
@@ -1537,12 +1537,12 @@
                                                <xsl:value-of select="../svg:title"/>
                                        </xsl:when>
                                        <xsl:otherwise>
-                                               <xsl:message>
+                                               <xsl:if test="$debugEnabled"><xsl:message>
        Accessibility Warning:
                 No alternate text ('svg:title' element) set for
                 image '
                                                        <xsl:value-of select="@xlink:href"/>'!
-                                               </xsl:message>
+                                               </xsl:message></xsl:if>
                                        </xsl:otherwise>
                                </xsl:choose>
                        </xsl:attribute>
-- 
1.8.5.1


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.