Re: [xsl] Preserving whitespace between elements

Subject: Re: [xsl] Preserving whitespace between elements
From: Matthew Fonda <mfonda@xxxxxxxxxx>
Date: Fri, 09 Dec 2005 14:32:11 -0800
Haarman, Michael wrote:

I am using the XSL extension in PHP, which uses libxslt ( I have tried using xslt:preserve-space but to no avail. I cannot seem to figure out what is causing this.

xsl:preserve-space will only alter the set of element names specified to xsl:strip-space.

I'm not familiar how PHP handles this, but a glance at this page:

which includes a description of this directive:

Suppress the whitespace stripping (on data files only).

suggests you are using sablotron and not libxslt, per this note:

Check your version and your configuration.



----------------------------------- Mike Haarman, XSL Developer, Internet Broadcasting Systems, Inc.


PHP version 4 used sablo, it is now using libxslt. See

I've tested my stylesheet on several other processors, and it appears to work as expected, it is only failing from PHP. Thanks for the help.

-- Matthew

Current Thread