xsl-list
[Top] [All Lists]

Re: Preserving whitespace between elements

2005-12-09 15:32:11
Haarman, Michael wrote:

I am using the XSL extension in PHP, which uses libxslt (http://xmlsoft.org/XSLT/). 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:

http://us2.php.net/manual/en/ref.xslt.php

which includes a description of this directive:

XSLT_SABOPT_DISABLE_STRIPPING (integer)
Suppress the whitespace stripping (on data files only).
suggests you are using sablotron and not libxslt, per this note:

http://us2.php.net/manual/en/ref.xslt.php#59398


Check your version and your configuration.


HTH,

Mike


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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

Mike,

PHP version 4 used sablo, it is now using libxslt. See http://us2.php.net/manual/en/ref.xsl.php

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>