Search code examples
xsltxsl-fo

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


Solution

  • <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