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

Re: Line feed in xalan, disappears

Subject: Re: Line feed in xalan, disappears
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 17 Nov 2012 10:47:27 +0000
Re:  Line feed in xalan
On 17/11/2012 10:13, Mansour Al Akeel wrote:
Hello all, I am having an odd issue and has been stuck on it for
some time. I am maintaining one of the existing xslts, that produces
html. The resulting text, is concatenated where there's a line feed
(x0A). for for example if I have in my xml:

<message>I love xslt</message>

and in my xslt: <xsl:value-of select="message" />

Then the results is:

I lovexslt

The result doesn't have space or line feed. The xslt is applied
through the JSTL  <x:transform>.

Thank you all.




I doubt there is enough information there to help.


XSLT doesn't do that so one of these is probably the case but impossible
to say which:

* There is a bug in your XSLT engine

* There is some other code in your XSLT that you haven't shown that
strips the white space.

* Something in the JSTL pipeline is tripping white space on input

* Something in the JSTL pipeline is stripping white space on output.

* Something else is wrong.

Start with a stylesheeet that _just_ does what you showed, if that
doesn't drop the space, gradually add things from your actual stylesheet
until things break....

David

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.