This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Applying font template to  fo:block" Watch "Applying font template to  fo:block" New topic
Author

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
Sheriff

Joined: Oct 14, 2005
Posts: 19727
    
  10

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Applying font template to fo:block
 
It's not a secret anymore!