Hi

I use the following template to generate my PDF:
***
  <xsl:template match="lettertext/styledtext">

        <xsl:variable name="weight">
                        <xsl:value-of select="weight" />
                </xsl:variable>
                <xsl:variable name="style">
                        <xsl:value-of select="style" />
                </xsl:variable>
                <xsl:variable name="decoration">
                        <xsl:value-of select="decoration" />
                </xsl:variable>
                
        <xsl:choose>
                <xsl:when test="newline='newline'">
                        <fo:block></fo:block>
<fo:inline font-weight="{$weight}" font-style="{$style}" text-decoration="{$decoration}">
                                <xsl:value-of select="text" />
                        </fo:inline>
                </xsl:when>
                <xsl:otherwise>
<fo:inline font-weight="{$weight}" font-style="{$style}" text-decoration="{$decoration}">
                                <xsl:value-of select="text" />
                        </fo:inline>
                </xsl:otherwise>
        </xsl:choose>
  </xsl:template>
***
It is called several times successively to build a formatted text. But it always inserts a space(" ") between two calls. How can I avoid this space?

I checked the Input. It's correct.

the template itself is called by
****
....
<fo:block space-before="1cm" font-family="{$font}">
  <xsl:apply-templates select="body/lettertext"/>
</fo:block>
...
****

Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to