Naveen
Naveen

Reputation: 791

fop xsl display superscript ordinal

How to display superscript ordinal in xsl, i cant find any thing related on internet.

I want to display dates 1, 2, 3, 4 as :

enter image description here

Upvotes: 1

Views: 36

Answers (1)

Siebe Jongebloed
Siebe Jongebloed

Reputation: 4870

<fo:inline baseline-shift="33%" font-size="58.3%">
  <!-- here your st, nd, rd or th -->
</fo:inline>

See here why 58.3% for @font-size

Upvotes: 2

Related Questions