]> granicus.if.org Git - docbook-dsssl/commitdiff
Replaced <font> with <span> and/or inline styles. This fixes the problem with <span...
authorMauritz Jeanson <mj@johanneberg.com>
Thu, 26 Jul 2007 21:42:04 +0000 (21:42 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Thu, 26 Jul 2007 21:42:04 +0000 (21:42 +0000)
in XHTML (and <font> is deprecated anyway). Closes bug #1715774.

xsl/html/docbook.xsl
xsl/html/highlight.xsl

index 8a170ab19ba194fac1f070a374c0b465e0da783b..ee71c2b7dd65ab808d4a2e9be6dfd34f7e067305 100644 (file)
@@ -98,7 +98,7 @@
     <xsl:text>, but no template matches.</xsl:text>
   </xsl:message>
 
-  <font color="red">
+  <span style="color: red">
     <xsl:text>&lt;</xsl:text>
     <xsl:value-of select="name(.)"/>
     <xsl:text>&gt;</xsl:text>
     <xsl:text>&lt;/</xsl:text>
     <xsl:value-of select="name(.)"/>
     <xsl:text>&gt;</xsl:text>
-  </font>
+  </span>
 </xsl:template>
 
 <xsl:template match="text()">
index 598bc34b18796a36e984571764df9caf2e35a5bf..f6ece17776274db0a108e6033d72ccad397371de 100644 (file)
 </xsl:template>\r
 \r
 <xsl:template match='xslthl:string'>\r
-  <b class="hl-string"><i><font color='red'><xsl:apply-templates/></font></i></b>\r
+  <b class="hl-string"><i style="color:red"><xsl:apply-templates/></i></b>\r
 </xsl:template>\r
 \r
 <xsl:template match='xslthl:comment'>\r
-  <i class="hl-comment"><font color='silver'><xsl:apply-templates/></font></i>\r
+  <i class="hl-comment" style="color: silver"><xsl:apply-templates/></i>\r
 </xsl:template>\r
 \r
 <xsl:template match='xslthl:tag'>\r
-  <b class="hl-tag"><font color='blue'><xsl:apply-templates/></font></b>\r
+  <b class="hl-tag" style="color: blue"><xsl:apply-templates/></b>\r
 </xsl:template>\r
 \r
 <xsl:template match='xslthl:attribute'>\r
-  <span class="hl-attribute"><font color='blue'><xsl:apply-templates/></font></span>\r
+  <span class="hl-attribute" style="color: blue"><xsl:apply-templates/></span>\r
 </xsl:template>\r
 \r
 <xsl:template match='xslthl:value'>\r
-  <span class="hl-value"><font color='blue'><xsl:apply-templates/></font></span>\r
+  <span class="hl-value" style="color: blue"><xsl:apply-templates/></span>\r
 </xsl:template>\r
 \r
 <xsl:template match='xslthl:html'>\r
-  <b><i><font color='red'><xsl:apply-templates/></font></i></b>\r
+  <b><i style="color: red"><xsl:apply-templates/></i></b>\r
 </xsl:template>\r
 \r
 <xsl:template match='xslthl:xslt'>\r
-  <b><font color='blue'><xsl:apply-templates/></font></b>\r
+  <b style="color: blue"><xsl:apply-templates/></b>\r
 </xsl:template>\r
 \r
 <xsl:template match='xslthl:section'>\r
   <b><xsl:apply-templates/></b>\r
 </xsl:template>\r
 \r
-\r
 </xsl:stylesheet>\r
 \r