I found another problem, there was no xsl:template match for <superscript> or <subscript> so I wasn't getting the correct formatting in my PDF output. So I added some statements at the very end of foPara.xsl right before the last </xsl:stylesheet> to fix this: