]> granicus.if.org Git - docbook-dsssl/commitdiff
Support emphasis role=bold in FO
authorNorman Walsh <ndw@nwalsh.com>
Thu, 10 Jan 2002 22:23:40 +0000 (22:23 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 10 Jan 2002 22:23:40 +0000 (22:23 +0000)
xsl/fo/inline.xsl

index d0f21671e41f036412d1794c2e188549ee4c5c50..0d89bfa0a3d366b07c06fdb6e34c16f388a3369b 100644 (file)
   </xsl:choose>
 </xsl:template>
 
-
 <xsl:template match="emphasis">
   <xsl:call-template name="inline.italicseq"/>
+  <xsl:choose>
+    <xsl:when test="@role='bold'">
+      <xsl:call-template name="inline.boldseq"/>
+    </xsl:when>
+<!-- what about these?
+    <xsl:when test="@role='underline'">
+      <fo:inline text-decoration="underline">
+        <xsl:call-template name="inline.charseq"/>
+      </fo:inline>
+    </xsl:when>
+    <xsl:when test="@role='strikethrough'">
+      <fo:inline text-decoration="line-through">
+        <xsl:call-template name="inline.charseq"/>
+      </fo:inline>
+    </xsl:when>
+-->
+    <xsl:otherwise>
+      <xsl:call-template name="inline.italicseq"/>
+    </xsl:otherwise>
+  </xsl:choose>
 </xsl:template>
 
 <xsl:template match="foreignphrase">