[xep-support] sub-list wierdness

From: Chris Cosentino <ccosenti@cisco.com>
Date: Fri Apr 29 2005 - 07:38:55 PDT

Hi Folks,

Been banging my head off the wall for a while with this one...

The following works as it should:

<xsl:template match="substep">
        <fo:list-item>
            <fo:list-item-label provisional-distance-between-starts=".43in" provisional-label-separation=".1in" end-indent="label-end()">
                <fo:block xsl:use-attribute-sets="helvetica10ptSpaced">
                    <xsl:number level="any" count="substep" from="substeps" format="a. "/>
                </fo:block>
            </fo:list-item-label>
            <fo:list-item-body start-indent="body-start()">
                <fo:block>
                    <xsl:apply-templates/>
                </fo:block>
            </fo:list-item-body>
        </fo:list-item>
    </xsl:template>

However, almost the almost identical code below causes my sublists to
be rendered as:

.a
.b
.c

instead of

a.
b.
c.

Here's the code:

    <xsl:template match="sublistli">
        <fo:list-item>
            <fo:list-item-label provisional-distance-between-starts=".43in" provisional-label-separation=".1in" end-indent="label-end()">
                <!-- start-indent="2.0in" end-indent="2.15in" -->
                <xsl:choose>
                    <xsl:when test="../@sublisttype='ordered'">
                        <fo:block xsl:use-attribute-sets="helvetica10ptSpaced">
                            <xsl:number level="any" count="sublistli" from="sublist" format="a. "/>
                        </fo:block>
                    </xsl:when>
                    <xsl:otherwise>
                        <fo:block font-size="11pt">&#x2013;&#x2002; </fo:block>
                    </xsl:otherwise>
                </xsl:choose>
            </fo:list-item-label>

            <fo:list-item-body start-indent="body-start()">
                <fo:block>
                    <xsl:apply-templates/>
                </fo:block>
            </fo:list-item-body>
        </fo:list-item>
    </xsl:template>

I'm not sure where to tweak thinks so the periods appear on the right
side of the letter (i.e. "a." instead of ".a"). Something is squishing
it so it wraps backwards.

Any ideas?

Thanks,
Chris Cosentino
Cisco Systems Inc.
-------------------
(*) 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
Received on Fri Apr 29 07:58:15 2005

This archive was generated by hypermail 2.1.8 : Fri Apr 29 2005 - 07:58:16 PDT