[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Preserving whitespace between elements

Subject: RE: Preserving whitespace between elements
From: "Haarman, Michael" <mhaarman@xxxxxxxxx>
Date: Fri, 9 Dec 2005 16:21:26 -0600
php xsl whitespace
> 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.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.