This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes xsl-fo superscript and subscript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xsl-fo superscript and subscript" Watch "xsl-fo superscript and subscript" New topic

xsl-fo superscript and subscript

Ranjithkumar Periyasamy

Joined: Jul 11, 2004
Posts: 2
How to get superscript and subscript in xsl-fo for pdf generation.
some on help me
Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
Its depends on FOP Processor, for Apache FOP you can try vertical-align="super" in fo:inline or baseline-shift="super" in fo:inline...
let us know the output...
Kartik Shah
Ranch Hand

Joined: Dec 07, 2000
Posts: 102
vertical-align="super" works
baseline-shift="super" does not work. Though the link
Apache FOP Compliance Pagesays it is implemented for super and sub.

I also added font-size in inline so that the superscript is small.


Kartik Shah
SCJP, SCDJWS, IBM Certified Websphere & XML, PMP & Six Sigma -
I agree. Here's the link:
subject: xsl-fo superscript and subscript
It's not a secret anymore!