RE: [docbook-apps] How to get emphasis with both Bold and Italic, in FO?

From
Mauritz Jeanson <>
Date
2006-12-15T21:28:32+00:00
ID
000701c7208f$ffc521f0$71ea1a51@D7MZ171J
Thread
RE: [docbook-apps] How to get emphasis with both Bold and Italic, in FO?
> -----Original Message-----
> From: Marshall Schor
> 
> I have some text I'd like to see as both bold and italic, e.g. 
> "bold-italic". 
> I know <emphasis role="bold">, and <emphasis role="italic"> doesn't 
> exist, but is the default
> 
> How do I do that in FO?


You can do it by using

 <emphasis role="bold-italic">bold and italic text</emphasis>

in your XML source and by putting the following template 

 <xsl:template match="emphasis[@role='bold-italic']">
   <fo:inline font-weight="bold" font-style="italic">
     <xsl:apply-templates/>
   </fo:inline>
 </xsl:template>

in your customization layer.

The standard template that processes emphasis (in inline.xsl) is actually a
little more complicated, but this may very well be all you need.

/MJ