Andreas L Delmelle wrote:
On Feb 21, 2007, at 22:54, Daniel Schaedler wrote:
Hi,
The explanation is probably that you have no explicit matching template
for text() nodes (note: text(), not your text nodes). In the first case,
a linefeed or space in between two text-nodes in your source XML will
invoke the built-in template rule:
<xsl:template match="text()">
<xsl:value-of select="." />
</xsl:template>
When using default/initial values for white-space-treatment,
white-space-collapse and linefeed-treatment, these will all be
normalized into space characters by FOP.
Very quick way to check this is to try adding the following to your
stylesheet:
<xsl:template match="text()" />
You are absolutely right :-)
I wasn't aware that linebreaks and spaces do matter in my XML.
This solved my problems - thank you!!
Daniel
HTH!
Cheers,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]