Next in thread → Next in month →

Re: AW: [docbook-apps] Font color

From
Benjamin de Dardel <>
Date
2012-02-02T22:05:51+00:00
ID
Thread
Re: AW: [docbook-apps] Font color
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:] 

            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
Next in thread → Next in month →