You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Emma Larsson <em...@itsip.se> on 2002/04/18 14:00:36 UTC

Problems with baseline-shift

Hi all,

I'm trying to do the following:

    <xsl:template match="superscript">
        <xsl:if test="string(.)">
            <fo:inline baseline-shift='super'>
                <xsl:apply-templates/>
            </fo:inline>
        </xsl:if>
    </xsl:template>

The XML file can look something like:
<paragraph> blablabla <superscript>test</superscript> blablabla </paragraph>

That is, I'm trying to shift the text to superscript... Like in 1*10^8, with the 8 'hanging' above the rest..

However, it does not work.. Nothing happens. What have I done wrong?

Thanks!
Emma


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Problems with baseline-shift

Posted by Jeremias Maerki <je...@outline.ch>.
I think baseline-shift is not implemented, yet. Try vertical-align
instead. There's an example in docs/examples/footnotes/columns.fo.

Please post this kind of question on the fop-user mailing list in the
future. Thanks!

> I'm trying to do the following:
> 
>     <xsl:template match="superscript">
>         <xsl:if test="string(.)">
>             <fo:inline baseline-shift='super'>
>                 <xsl:apply-templates/>
>             </fo:inline>
>         </xsl:if>
>     </xsl:template>
> 
> The XML file can look something like:
> <paragraph> blablabla <superscript>test</superscript> blablabla </paragraph>
> 
> That is, I'm trying to shift the text to superscript... Like in 1*10^8, with the 8 'hanging' above the rest..
> 
> However, it does not work.. Nothing happens. What have I done wrong?

Cheers,
Jeremias Märki

mailto:jeremias.maerki@outline.ch

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Problems with baseline-shift

Posted by Emma Larsson <em...@itsip.se>.
Thank you.. I'm sorry about posting this question to the wrong list.. It wont happen again!


----- Original Message ----- 
From: "Henrik Holle" <hh...@megatel.de>
To: <fo...@xml.apache.org>
Sent: Thursday, April 18, 2002 2:15 PM
Subject: AW: Problems with baseline-shift


> <fo:inline vertical-align="super"> ...</fo:inline>
> 
> -----Ursprüngliche Nachricht-----
> Von: Emma Larsson [mailto:emma.larsson@itsip.se]
> Gesendet: Donnerstag, 18. April 2002 14:13
> An: fop-dev@xml.apache.org
> Betreff: Re: Problems with baseline-shift
> 
> 
> What element is vertical-align attribute to? I can't find it..
> 
> Thanks for the quick respond!
> 
> /Emma
> 
> ----- Original Message -----
> From: "Etwin van Krimpen" <ev...@ambrac.nl>
> To: <fo...@xml.apache.org>
> Sent: Thursday, April 18, 2002 2:10 PM
> Subject: Re: Problems with baseline-shift
> 
> 
> > Hi,
> >
> > try vertical-align="super".
> >
> > Regards, Etwin
> >
> >
> > ----- Original Message -----
> > From: "Emma Larsson" <em...@itsip.se>
> > To: <fo...@xml.apache.org>
> > Sent: Thursday, April 18, 2002 2:00 PM
> > Subject: Problems with baseline-shift
> >
> >
> > Hi all,
> >
> > I'm trying to do the following:
> >
> >     <xsl:template match="superscript">
> >         <xsl:if test="string(.)">
> >             <fo:inline baseline-shift='super'>
> >                 <xsl:apply-templates/>
> >             </fo:inline>
> >         </xsl:if>
> >     </xsl:template>
> >
> > The XML file can look something like:
> > <paragraph> blablabla <superscript>test</superscript> blablabla
> </paragraph>
> >
> > That is, I'm trying to shift the text to superscript... Like in 1*10^8,
> with
> > the 8 'hanging' above the rest..
> >
> > However, it does not work.. Nothing happens. What have I done wrong?
> >
> > Thanks!
> > Emma
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> > For additional commands, email: fop-dev-help@xml.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> > For additional commands, email: fop-dev-help@xml.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


AW: Problems with baseline-shift

Posted by Henrik Holle <hh...@megatel.de>.
<fo:inline vertical-align="super"> ...</fo:inline>

-----Ursprüngliche Nachricht-----
Von: Emma Larsson [mailto:emma.larsson@itsip.se]
Gesendet: Donnerstag, 18. April 2002 14:13
An: fop-dev@xml.apache.org
Betreff: Re: Problems with baseline-shift


What element is vertical-align attribute to? I can't find it..

Thanks for the quick respond!

/Emma

----- Original Message -----
From: "Etwin van Krimpen" <ev...@ambrac.nl>
To: <fo...@xml.apache.org>
Sent: Thursday, April 18, 2002 2:10 PM
Subject: Re: Problems with baseline-shift


> Hi,
>
> try vertical-align="super".
>
> Regards, Etwin
>
>
> ----- Original Message -----
> From: "Emma Larsson" <em...@itsip.se>
> To: <fo...@xml.apache.org>
> Sent: Thursday, April 18, 2002 2:00 PM
> Subject: Problems with baseline-shift
>
>
> Hi all,
>
> I'm trying to do the following:
>
>     <xsl:template match="superscript">
>         <xsl:if test="string(.)">
>             <fo:inline baseline-shift='super'>
>                 <xsl:apply-templates/>
>             </fo:inline>
>         </xsl:if>
>     </xsl:template>
>
> The XML file can look something like:
> <paragraph> blablabla <superscript>test</superscript> blablabla
</paragraph>
>
> That is, I'm trying to shift the text to superscript... Like in 1*10^8,
with
> the 8 'hanging' above the rest..
>
> However, it does not work.. Nothing happens. What have I done wrong?
>
> Thanks!
> Emma
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Problems with baseline-shift

Posted by Emma Larsson <em...@itsip.se>.
What element is vertical-align attribute to? I can't find it.. 

Thanks for the quick respond!

/Emma

----- Original Message ----- 
From: "Etwin van Krimpen" <ev...@ambrac.nl>
To: <fo...@xml.apache.org>
Sent: Thursday, April 18, 2002 2:10 PM
Subject: Re: Problems with baseline-shift


> Hi,
> 
> try vertical-align="super".
> 
> Regards, Etwin
> 
> 
> ----- Original Message -----
> From: "Emma Larsson" <em...@itsip.se>
> To: <fo...@xml.apache.org>
> Sent: Thursday, April 18, 2002 2:00 PM
> Subject: Problems with baseline-shift
> 
> 
> Hi all,
> 
> I'm trying to do the following:
> 
>     <xsl:template match="superscript">
>         <xsl:if test="string(.)">
>             <fo:inline baseline-shift='super'>
>                 <xsl:apply-templates/>
>             </fo:inline>
>         </xsl:if>
>     </xsl:template>
> 
> The XML file can look something like:
> <paragraph> blablabla <superscript>test</superscript> blablabla </paragraph>
> 
> That is, I'm trying to shift the text to superscript... Like in 1*10^8, with
> the 8 'hanging' above the rest..
> 
> However, it does not work.. Nothing happens. What have I done wrong?
> 
> Thanks!
> Emma
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Problems with baseline-shift

Posted by Etwin van Krimpen <ev...@ambrac.nl>.
Hi,

try vertical-align="super".

Regards, Etwin


----- Original Message -----
From: "Emma Larsson" <em...@itsip.se>
To: <fo...@xml.apache.org>
Sent: Thursday, April 18, 2002 2:00 PM
Subject: Problems with baseline-shift


Hi all,

I'm trying to do the following:

    <xsl:template match="superscript">
        <xsl:if test="string(.)">
            <fo:inline baseline-shift='super'>
                <xsl:apply-templates/>
            </fo:inline>
        </xsl:if>
    </xsl:template>

The XML file can look something like:
<paragraph> blablabla <superscript>test</superscript> blablabla </paragraph>

That is, I'm trying to shift the text to superscript... Like in 1*10^8, with
the 8 'hanging' above the rest..

However, it does not work.. Nothing happens. What have I done wrong?

Thanks!
Emma


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org