Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Home » Tip Bank » XML
Language: XSL-FO
Expertise: Intermediate
Jan 2, 2007

Force Attribute Value Inheritance in XSL-FO

To force an XSL-FO attribute to inherit the value of another attribute, use the inherited-property-value:

<fo:block color="blue">
   Hello
   <fo:block color="yellow" background-color="inherited-property-value(color)">
      to you!!!
   </fo:block>
</fo:block>
The idea is that the "Hello" foreground will be blue and the "to you" background will be blue (by inheritance), but the "to you" foreground will be yellow.

Leonard Anghel
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date