Thanks a lot. It works fine.

Regards,
Benjamin


Le 31/01/2012 14:25, Dominic Weiss a écrit :

Hi,

try:

<xsl:template match="*[@role='red']" priority="10">

<fo:inline color="red"><xsl:apply-imports/></fo:inline>

</xsl:template>

Have a look here:

http://www.w3schools.com/xslfo/prop_color.asp

Greetings

Dominic Weiss

*Von:*Benjamin DE DARDEL [mailto:benjamin.dedar...@gmail.com]
*Gesendet:* Dienstag, 31. Januar 2012 14:04
*An:* docbook-apps
*Betreff:* [docbook-apps] Font color

Hi all,

I wonder if there is a way to set color easily for some part of my text ?

For exemple :
<emphasis role="???">My Colored Text</emphasis>

As I expect that it's not so easy, does some of you have ever customized pdf stylesheets to do that ?

Regards,
Benjamin


Reply via email to