]> granicus.if.org Git - docbook-dsssl/commitdiff
Restore programlisting to use <pre> instead of <div> and instead
authorBob Stayton <bobs@sagehill.net>
Thu, 29 Mar 2012 16:36:20 +0000 (16:36 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 29 Mar 2012 16:36:20 +0000 (16:36 +0000)
wrap callout img elements in <span> to make valid HTML.

xsl/html/callout.xsl
xsl/html/verbatim.xsl

index 702087bd9cfd78beb0fb695bfc88e615de5572c0..556fe8465ac197932035e2759a8b30eb9fcae40d 100644 (file)
   <xsl:choose>
     <xsl:when test="$callout.graphics != 0
                     and $conum &lt;= $callout.graphics.number.limit">
-      <img src="{$callout.graphics.path}{$conum}{$callout.graphics.extension}"
-           alt="{$conum}" border="0"/>
+      <!-- Added span to make valid in XHTML 1 -->
+      <span><img src="{$callout.graphics.path}{$conum}{$callout.graphics.extension}"
+           alt="{$conum}" border="0"/></span>
     </xsl:when>
     <xsl:when test="$callout.unicode != 0
                     and $conum &lt;= $callout.unicode.number.limit">
index 82cdbd1d315c06034771f3d2c337904b65ec54bb..00547b8706bb9996797e6bf194c13fff3d9a53cb 100644 (file)
 
   <xsl:call-template name="anchor"/>
 
-  <xsl:variable name="div.element">
-    <xsl:choose>
-      <xsl:when test="$make.clean.html != 0">div</xsl:when>
-      <xsl:otherwise>pre</xsl:otherwise>
-    </xsl:choose>
-  </xsl:variable>
+  <xsl:variable name="div.element">pre</xsl:variable>
 
   <xsl:if test="$shade.verbatim != 0">
     <xsl:message>