[xep-support] footnotes: reversed text and placement problem

From: CRW150@yahoo.com
Date: Sun Oct 17 2004 - 13:27:35 PDT

  • Next message: Jim Melton: "Re: [xep-support] XEP v4 Desktop - XSL 1.1 support?"

    Hello,
    Still testing the XEP 3.8.4 trial version and have another problem. I
    can do this transformation with Saxon/FOP, and it works fine. But when
    I do it with XEP, I can't get the footnotes to line up even with the
    left page margin--instead they are indented on the left. Also, in my
    template I used "space-before="10pt" on <fo:list-item> in order to add
    a separating space when multiple footnotes appear on one page. That
    works fine in FOP, but when I use it in XEP I get the space between
    footnotes, but then the text in list-item-label is reversed--that is,
    footnote number 23. comes out as .32 or number 1. comes out as .1,
    backward.

    In my XML, the footnotes are inline, like this:

    <p>Text here<note type='e'>a footnote here</note> and more text
    here.</p>

    The template I'm using looks like this:

    <xsl:template match="note[@type='e']">
        <fo:footnote>
            <fo:inline baseline-shift="super" font-size="8pt">
                <xsl:apply-templates select="(.)" mode="enumber"/>
                    <xsl:if test="following::node()[1][self::note]">
                        <fo:inline color="black" baseline-shift="super"
    font-size="8pt">
                            <xsl:text>/</xsl:text>
                        </fo:inline>
                    </xsl:if>
            </fo:inline>
            <fo:footnote-body>
                <fo:list-block start-indent="0in">
                    <fo:list-item space-before="10pt">
                        <fo:list-item-label end-indent="label-end()">
                            <fo:block font-size="10pt" line-height="1em">
                                <xsl:apply-templates select="(.)"
    mode="enumber"/>
                                    <xsl:text>.</xsl:text>
                            </fo:block>
                        </fo:list-item-label>
                        <fo:list-item-body start-indent="2em">
                            <fo:block font-size="10pt" line-height="1em">
                                <xsl:apply-templates/>
                            </fo:block>
                        </fo:list-item-body>
                    </fo:list-item>
                </fo:list-block>
            </fo:footnote-body>
        </fo:footnote>
    </xsl:template>

    In case it matters, other templates related to foonote numbering and
    formatting are these:

    <xsl:template match="note[@type='e']" mode="enumber">
        <xsl:number level="any" count="note[@type='e']"
    from="div[@type='section']"/>
    </xsl:template>

    <xsl:template match="note[@type='e']/p">
        <fo:block font-size="10pt" line-height="1em">
            <xsl:apply-templates/>
        </fo:block>
    </xsl:template>

    I think I've tried everything, and I can't figure out why this works
    fine in FOP but not in XEP. I found this in the xep-support archives:

    "reversely printed labels (as well as any other text not due to
    writing-mode) are usually caused by too narrow blocks causing negative
    character-spacing. In the particular case described that was a bug in
    the code. The bug is fixed and the fix will be published as a part of a
    bugfix release soon."

    If my problem is too narrow blocks, I don't know how to adjust that.
    I've tried using various properties and combinations, but nothing
    works. Now I'm totally confused. Any help will be greatly appreciated.

    Thanks,
    Susan

                    
    _______________________________
    Do you Yahoo!?
    Declare Yourself - Register online to vote today!
    http://vote.yahoo.com
    -------------------
    (*) 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 : Sun Oct 17 2004 - 13:46:46 PDT