diff --git a/doc/src/sgml/stylesheet-html-common.xsl b/doc/src/sgml/stylesheet-html-common.xsl
index 9df2782ce4..ca5cce35f5 100644
--- a/doc/src/sgml/stylesheet-html-common.xsl
+++ b/doc/src/sgml/stylesheet-html-common.xsl
@@ -55,6 +55,9 @@
   </span>
 </xsl:template>
 
+<xsl:template match="comment()">
+  <xsl:comment><xsl:value-of select="." /></xsl:comment>
+</xsl:template>
 
 <!-- table of contents configuration -->
 
