RE: [xep-support] Empty fo:inline generates white space?

From: Peter Drivas (peter.drivas@gexinc.com)
Date: Mon Mar 10 2003 - 06:16:43 PST

  • Next message: David Tolpin: "Re: [xep-support] Empty fo:inline generates white space?"

    Hi Els,

    Thanks, but I do use indent="no" with my <xsl:output>. I think this has
    something to do with the way I have to handle footnotes. The footnotes in
    this document can contain footnotes. Since a <fo:footnote> can't have
    another <fo:footnote> as a child, I have to put a <fo:inline> where I want
    the superscript to be in the text and leave the <fo:inline> that's part of
    <fo:footnote> as blank. The xsl:fo looks like (indented for readability,
    some formatting left out):

    <fo:flow>
      ...
      <fo:block>
            Stuff
                    <fo:footnote>
                            <fo:inline baseline-shift="super" font-size="8pt" >1</fo:inline>
                            <fo:footnote-body>
                                    <fo:list-block>
                                            <fo:list-item>
                                                    <fo:list-item-label>
                                                            <fo:block>1<fo:block>
                                                    </fo:list-item-label>
                                                    <fo:list-item-body>
                                                            <fo:block>Footnote 1 <fo:inline baseline-shift="super"
    font-size="8pt">2</fo:inline></fo:block>
                                                    </fo:list-item-body>
                                            </fo:list-item>
                                    </fo:list-block>
                            </fo:footnote-body>
                    </fo:footnote>
                    <fo:footnote>
                            <fo:inline/> <------ Here's the blank fo:inline
                            <fo:footnote-body>
                                    <fo:list-block>
                                            <fo:list-item>
                                                    <fo:list-item-label>
                                                            <fo:block>2<fo:block>
                                                    </fo:list-item-label>
                                                    <fo:list-item-body>
                                                            <fo:block>Footnote 2 ("inner" footnote)</fo:block>
                                                    </fo:list-item-body>
                                            </fo:list-item>
                                    </fo:list-block>
                            </fo:footnote-body>
                    </fo:footnote>
            end of stuff.
      </fo:block>
      ...
    </fo:flow>

    I'm not sure what I can do to remove the extra space. I have to have the
    <fo:inline/> or it's flagged as an error by the renderer.

    Thanks,
    Peter

    > -----Original Message-----
    > From: owner-xep-support@www.renderx.com
    > [mailto:owner-xep-support@www.renderx.com]On Behalf Of Els van Trigt
    > Sent: Monday, March 10, 2003 3:10 AM
    > To: xep-support@renderx.com
    > Subject: RE: [xep-support] Empty fo:inline generates white space?
    >
    >
    > Peter,
    >
    > I had a similar problem last week and this helped me out:
    > In your stylesheet that generates the .fo, set the output to
    > 'indent="no"':
    >
    > <xsl:output indent="no"/>
    >
    > Els
    >
    > -----Original Message-----
    > From: owner-xep-support@www.renderx.com
    > [mailto:owner-xep-support@www.renderx.com]On Behalf Of Peter Drivas
    > Sent: Friday, March 07, 2003 11:15 PM
    > To: xep-support@renderx.com
    > Subject: [xep-support] Empty fo:inline generates white space?
    >
    >
    > Hi,
    >
    > I have an empty <fo:inline> as part of a footnote that I create.
    > It appears
    > that it is generating a whitespace. Is there some way to prevent this? I
    > know that white-space-collapse does not work on inlines, so I'm hoping
    > there's an attribute that I'm missing.
    >
    > Thanks,
    > Peter
    >
    >
    >
    > -------------------
    > (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    > in the body of the message to majordomo@renderx.com from the address
    > you are subscribed from.
    > (*) By using the Service, you expressly agree to these Terms of Service
    > http://www.renderx.com/tos.html
    >
    > -------------------
    > (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    > in the body of the message to majordomo@renderx.com from the address
    > you are subscribed from.
    > (*) By using the Service, you expressly agree to these Terms of
    > Service http://www.renderx.com/tos.html
    >
    >

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



    This archive was generated by hypermail 2.1.5 : Mon Mar 10 2003 - 06:10:49 PST