[PATCH 13/17] XHTML export: silence an unhelpful warning
andrew-libreoffice.org at pileofstuff.org
andrew-libreoffice.org at pileofstuff.org
Thu Aug 14 14:53:53 PDT 2014
From: Andrew Sayers <andrew-libreoffice.org at 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
More information about the LibreOffice
mailing list