Force Attribute Value Inheritance in XSL-FO

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         to you!!!   

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.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist