This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Sub- and Superscript
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] Sub- and Superscript
- From: DPawson at rnib dot org dot uk
- Date: Mon, 23 Apr 2001 14:54:05 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> -----Original Message-----
> From: David Carlisle [mailto:davidc@nag.co.uk]
> Sent: 23 April 2001 14:32
> To: xsl-list@lists.mulberrytech.com
> Subject: Re: [xsl] Sub- and Superscript
>
>
>
> > This is really an HTML question though, not an XSL question.
>
> No, your answer was an HTML answer, but the original poster
> was creating XSL-FO not HTML!
>
> I don't think there is a direct way of specifying this in FO.
> One could use an inline table, or for a processor that supports MathML
> (eg passivetex) one could use msubsup from the MathMl namespace.
How about
<xsl:template match="sup">
<fo:inline baseline-shift="10%">
<xsl:apply-templates />
</fo:inline>
</xsl:template>
Works for me.
HTH DaveP
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list