RE: [xsl] Sub- and Superscript

Subject: RE: [xsl] Sub- and Superscript
From: DPawson@xxxxxxxxxxx
Date: Mon, 23 Apr 2001 14:54:05 +0100

> -----Original Message-----
> From: David Carlisle [mailto:davidc@xxxxxxxxx]
> Sent: 23 April 2001 14:32
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 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


Current Thread