Daniel Schaedler wrote:
I reduced the template to:
***
<xsl:template match="lettertext/styledtext">
 <xsl:value-of select="text" />
</xsl:template>
***
and I still get the spaces.
I'm also sure that the input for the 'value-of' does not contain any spaces.

When I change the template to:
***
<xsl:template match="lettertext/styledtext">
 <xsl:value-of select="text" />
 <xsl:value-of select="text" />
</xsl:template>
***
Then I get every text doubled without a space between the doubletts - as expected.

That's the reason why I believe it has something to do with the calling of the template itself (?)
quite strange - I don't understand it...

The usual reply is "there is probably an error in the part of the code
or input you didn't show". The most likely reason is that the space
somehow comes from the input. Note that you apply templates to
a lettertext element, while the template matches a styledtext element.
Unless you have another template matching lettertext elements, the
default template is invoked, which usually leads to whitespaces been
passed through by the default template matching text().

Either post the full input and style sheet, or continue the process of
further simplifying both the input and the *whole* style sheet by
yourself.

J.Pietschmann

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

Reply via email to