W3C home > Mailing lists > Public > www-xsl-fo@w3.org > June 2003

Re: Bug in XSLT processors ?

From: Oleg Tkachenko <olegt@multiconn.com>
Date: Wed, 18 Jun 2003 13:12:24 +0200
Message-ID: <3EF04918.5080304@multiconn.com>
To: "Dorfschmid, Jürgen" <j.dorfschmid@msh.de>
CC: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>

Dorfschmid, Jürgen wrote:

> I'm desperately searching for some solution that seems
> to be implementation specific for different XSLT processors.
> 
> I've a XSL stylesheet that contains a single Linefeed character in a 
> CDATA section (no other characters in brackets). This linefeed is not 
> translated into the
> result textfile (using Oracle Parser v2) unless at least
> one other -printable- character stands beside the linefeed. The linefeed 
> is only translated correctly
> if the CDATA contains more than this character.

It's by design. Whitespace-only text nodes are stripped from XSLT stylesheet 
tree by default, unless they are children of xsl:text instruction or some 
ancestor element has xml:space="preserve" attribute.
See XSLT spec for more info.

-- 
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel
Received on Wednesday, 18 June 2003 06:09:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:11 GMT