[Fwd: [xep-support] Text compressed in table cells]

Chris Cosentino ccosenti at cisco.com
Wed Oct 20 12:58:11 PDT 2004


Thanks!

That did it. I googled some code and made some changes:

    <xsl:template name="fixurl">
        <xsl:param name="string"/>
        <xsl:choose>
            <xsl:when test="contains($string, '/')">
                <xsl:value-of select="concat(substring-before ($string, '/'), '/&#x200B;')"/>
                <xsl:choose>
                    <xsl:when test="contains(substring-after ($string, '/'), '/')">
                        <!-- If the left over string still contains matches go recursive! -->
                        <xsl:call-template name="fixurl">
                            <xsl:with-param name="string" select="substring-after($string, '/')"/>
                        </xsl:call-template>
                    </xsl:when>
                    <xsl:otherwise>
                        <!-- If not simply return the rest of the string -->
                        <xsl:value-of select="substring-after ($string, '/')"/>
                    </xsl:otherwise>
                </xsl:choose>
            </xsl:when>
            <xsl:otherwise>
                <xsl:value-of select="$string"/>
            </xsl:otherwise>
        </xsl:choose>
    </xsl:template>

-Chris

Wednesday, October 20, 2004, 7:51:30 AM, ashot at zenteq.am wrote:
AD> Hi Chris,

AD> This is a property of our formatter: it does not break words. If you
AD> want to enable a break between letters, intersperse them with zero-width
AD> spaces: &#x200B;
AD>          text&#x200B;text......&#x200B;..........

AD> Two .fo and resulting .pdf files are attached - with
AD> zero-width space and without it.

AD> Best regards
AD> Ashot Darbinyan
AD> RenderX

AD> -------- Original Message --------
AD> Subject: [xep-support] Text compressed in table cells
AD> Date: Tue, 19 Oct 2004 12:43:23 -0400
AD> From: Chris Cosentino <ccosenti at cisco.com>
AD> Reply-To: xep-support at renderx.com
AD> Organization: Cisco Systems, Inc.
AD> To: xep-support at renderx.com

AD> On a few occasions we have a long string of text that gets compressed
AD> (letters overwrite each other) when in a table cell.

AD> These are long, "solid" strings of text. For example, URLs.

AD> Is there some method to get these to line break, for instance, on any
AD> "/" in the URL, so that the text is not compressed?

AD> Thanks,


-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at 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



More information about the Xep-support mailing list