• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applying font template to fo:block

 
Parameswaran Thangavel
Ranch Hand
Posts: 485
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20980
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic