aspose file tools
The moose likes XML and Related Technologies and the fly likes Applying font template to  fo:block Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Applying font template to  fo:block" Watch "Applying font template to  fo:block" New topic

Applying font template to fo:block

Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
Hi all
I wrote a XSL to give me the PDF doc.
in which i had a lot of sections having heading, sub-heading.
i am using common font styles for all my heading in the document. but i felt this is difficult to maintain if i need to change the font style.

Is there any way i can declare the font in one place and use it where ever i want, something like CSS in HTML,, whats in XSL???
Paul Clapham

Joined: Oct 14, 2005
Posts: 19357

You mean you wrote an XSL-FO document? I had a quick look at the fo:block element and I don't see any way to provide a reference to a font element, instead of hard-coding the font information as you are now doing.

But if you wrote something -- say an XSLT document -- that generated the XSL-FO document, you could easily have that something put the font information into the fo:block elements in whatever way you preferred.
I agree. Here's the link:
subject: Applying font template to fo:block